-
Notifications
You must be signed in to change notification settings - Fork 14
File transfer Debug
lethanhtung01011980 edited this page Dec 12, 2019
·
6 revisions
- For 32-bit Windows
- use non-interactive echo commands to write out the binary file in its hex value equivalents
- Then use debug.exe to assemble the written text file into a binary file
- There is a 64k byte size limit to the files that can be created by debug.exe
To make nc.exe smaller
- Location: /usr/share/windows-binaries/nc.exe
- upx -9 nc.exe
- debug.exe is used by exe2bat
- locate exe2bat
- /usr/share/windows-binaries/exe2bat.exe
- wine /usr/share/windows-binaries/exe2bat.exe nc.exe nc.txt
- head nc.txt
- To copy content of the above file in a non-interactive remote shell
- To execute and download a file