iagox86 / dnscat2

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

Download not working #168

Open Curfewat6 opened 2 years ago

Curfewat6 commented 2 years ago

I was trying to download a txt file from a kali linux system to a kali linux system. After running the command, the file was not downloaded to the server.

Here is the command and output on the server:

command (kali) 1> download /home/kali/Desktop/creds.txt /home/kali/dnsdownload

Attempting to download /home/kali/Desktop/creds.txt to /home/kali/dnsdownload command (kali) 1> Received a response that we have no record of sending: COMMAND_DOWNLOAD :: {:is_request=>false, :request_id=>16, :command_id=>3, :data=>"username\npassword\n"} 00000000 80 10 00 03 75 73 65 72 6E 61 6D 65 0A 70 61 73 ....username.pas 00000010 73 77 6F 72 64 0A sword.

On my client, i got the following output:

Got a command: COMMAND_DOWNLOAD [request] :: request_id: 0x100 :: filename: /home/kali/Desktop/creds.txt Response: COMMAND_DOWNLOAD [response] :: request_id: 0x010 :: data: 0x12 bytes [[ ERROR ]] :: DNS: RCODE_NAME_ERROR