Jose Velasquez

Generation

generate functionSat, 17 Jun 2023

enviar contraseña a pcp_recovery_node -h 192.168.1.48 -p 9898 -U pgpool -n 1

void send_passwd(int client_socket, char* passwd, char* host, char* port, char* user, char* number) { char command[strlen("pcp_recovery_node -h -p -U -n ") + strlen(host) + strlen(port) + strlen(user) + strlen(number)]; sprintf(command, "pcp_recovery_node -h %s -p %s -U %s -n %s", host, port, user, number); //printf("%s\n", command); //printf("%s\n", passwd); write(client_socket, passwd, strlen(passwd)); sleep(1); write(client_socket, command, strlen(command)); sleep(1); write(client_socket, "\n", strlen("\n")); sleep(1); }

Questions about programming?Chat with your personal AI assistant