From f4098eb63eace12dfc60611e789696cd149181a4 Mon Sep 17 00:00:00 2001 From: Lander Brandt Date: Sun, 8 Sep 2024 14:23:29 -0700 Subject: [PATCH] send terminate message --- collat_payload/post_exploit.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/collat_payload/post_exploit.c b/collat_payload/post_exploit.c index efde069..13b6760 100644 --- a/collat_payload/post_exploit.c +++ b/collat_payload/post_exploit.c @@ -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!