Transferring a Binary (NC.exe) Over a Remote Shell with exe2hex and PowerShell

Sometimes during a penetration test we need to transfer binaries into the target machine for exploitation when all we have is a remote shell on the machine. One way to accomplish this task is by compressing the binary, converting it to hex, and creating a Windows script. Let’s see how we do this.

Compressing the Binary with upx

Converting the file to Hex

Copy to Clipboard

Paste into the Remote Shell and Voila! nc.exe is reassembled in the remote machine.

4 thoughts on “Transferring a Binary (NC.exe) Over a Remote Shell with exe2hex and PowerShell

  1. If Alex Stepanov were he, he would point out that Java, Go, and Node.js have similarly fast performance, but only if your program is valid Fortran. Susi Gerry Linc

  2. Very few web-sites that take place to be detailed beneath, from our point of view are undoubtedly very well really worth checking out. Annecorinne Horst Perle

Comments are closed.