iagox86 / dnscat2

BSD 3-Clause "New" or "Revised" License
3.4k stars 599 forks source link

Upload not working #162

Open muditp2012 opened 3 years ago

muditp2012 commented 3 years ago

I was trying to upload a file from linux system to windows system and got following error:

command (els-DB) 1> upload /home/kali//prodump64.exe c:\Windows\Temp\procdump64.exe Something bad just happened! You will likely want to report this to https://github.com/iagox86/dnscat2/issues

<Errno::ENOENT: No such file or directory @ rb_sysopen - /home/kali/ecptxv2/prodump64.exe>

/home/kali/ecptxv2/dnscat2/server/drivers/driver_command_commands.rb:199:in read' /home/kali/ecptxv2/dnscat2/server/drivers/driver_command_commands.rb:199:inblock in _register_commands' /home/kali/ecptxv2/dnscat2/server/libs/commander.rb:132:in feed' /home/kali/ecptxv2/dnscat2/server/drivers/driver_command.rb:81:inblock in initialize' /home/kali/ecptxv2/dnscat2/server/libs/swindow.rb:319:in _incoming' /home/kali/ecptxv2/dnscat2/server/libs/swindow.rb:105:inblock (3 levels) in ' /home/kali/ecptxv2/dnscat2/server/libs/swindow.rb:80:in loop' /home/kali/ecptxv2/dnscat2/server/libs/swindow.rb:80:inblock (2 levels) in ' /home/kali/ecptxv2/dnscat2/server/libs/swindow.rb:70:in _catch_suspend' /home/kali/ecptxv2/dnscat2/server/libs/swindow.rb:79:inblock in '

janedoe-lab commented 2 years ago

@muditp2012, you want to use forward slashes instead of backslashes in the windows path