iagox86 / dnscat2

BSD 3-Clause "New" or "Revised" License
3.43k stars 601 forks source link

Disconnects upon sending command #102

Open xenc0d3r opened 8 years ago

xenc0d3r commented 8 years ago

Hello and thank you for your great project dnscat2. Both in linux and windows the program malfunctions after sending a simple command like notepad.exe or whoami then disconnects.

ON LINUX FOR INSTANCE

Response: COMMAND_EXEC [response] :: request_id: 0x0001 :: session_id: 0x4dcb \ Peer verified with pre-shared secret!

Session established! [[ WARNING ]] :: exec driver shut down; killing process 2323 [[ ERROR ]] :: DNS: RCODE_NAME_ERROR [[ ERROR ]] :: DNS: RCODE_SERVER_FAILURE [[ ERROR ]] :: DNS: RCODE_SERVER_FAILURE [[ ERROR ]] :: DNS: RCODE_SERVER_FAILURE [[ ERROR ]] :: DNS: RCODE_SERVER_FAILURE [[ ERROR ]] :: DNS: RCODE_SERVER_FAILURE [[ ERROR ]] :: DNS: RCODE_SERVER_FAILURE [[ ERROR ]] :: DNS: RCODE_SERVER_FAILURE [[ ERROR ]] :: DNS: RCODE_SERVER_FAILURE [[ ERROR ]] :: DNS: RCODE_SERVER_FAILURE [[ ERROR ]] :: DNS: RCODE_SERVER_FAILURE [[ ERROR ]] :: DNS: RCODE_SERVER_FAILURE [[ ERROR ]] :: DNS: RCODE_SERVER_FAILURE [[ ERROR ]] :: DNS: RCODE_SERVER_FAILURE [[ ERROR ]] :: DNS: RCODE_SERVER_FAILURE [[ ERROR ]] :: DNS: RCODE_SERVER_FAILURE [[ ERROR ]] :: DNS: RCODE_SERVER_FAILURE [[ ERROR ]] :: DNS: RCODE_SERVER_FAILURE [[ ERROR ]] :: DNS: RCODE_SERVER_FAILURE [[ ERROR ]] :: DNS: RCODE_SERVER_FAILURE [[ ERROR ]] :: DNS: RCODE_SERVER_FAILURE [[ ERROR ]] :: The server hasn't returned a valid response in the last 20 attempts.. closing session. [[ FATAL ]] :: There are no active sessions left! Goodbye! [[ WARNING ]] :: Terminating

AND ON WINDOWS CLIENT THE OUTPUT IS:

\ Peer verified with pre-shared secret!

Session established! Got a command: COMMAND_SHELL [request] :: request_id: 0x0001 :: name: shell Attempting to load the program: cmd.exe Successfully created the process!

Response: COMMAND_SHELL [response] :: request_id: 0x0001 :: session_id: 0x0493

\ Peer verified with pre-shared secret!

[[ ERROR ]] :: The server hasn't returned a valid response in the last 20 attempts.. closing session. [[ WARNING ]] :: exec driver shut down; killing process 5292 Got a command: COMMAND_SHELL [request] :: request_id: 0x0002 :: name: shell Attempting to load the program: cmd.exe Successfully created the process!

Response: COMMAND_SHELL [response] :: request_id: 0x0002 :: session_id: 0x03af

\ Peer verified with pre-shared secret!

Session established! Got a command: COMMAND_EXEC [request] :: request_id: 0x0003 :: name: notepad.exe :: command: notepad.exe Attempting to load the program: notepad.exe Successfully created the process!

Unrecoverable error in ..\libs\select_group.c(151): Tried to add same pipe to select_group more than once (or choose a poor i dentifier).

This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.