Skip to content

Commit

Permalink
send terminate message
Browse files Browse the repository at this point in the history
  • Loading branch information
landaire committed Sep 8, 2024
1 parent 992d921 commit f4098eb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions collat_payload/post_exploit.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,13 @@ void post_exploit_spawn_ssh_server(SOCKET sock) {
//ResumeThread(thread_handle);
sprintf(cur_msg, "Remote thread HANDLE: %p\n", thread_handle);
send(sock, cur_msg, strlen(cur_msg), 0);

sprintf(cur_msg, "Collat payload is done! See the payload server instructions for how to connect\n");
send(sock, cur_msg, strlen(cur_msg), 0);

// Close the socket so the other side knows we're done
shutdown(sock, SD_BOTH);
closesocket(sock);
}

// Put your own code in here!
Expand Down

0 comments on commit f4098eb

Please sign in to comment.