参考文章:
1、https://howucan.gr/scripts-tools/2368-exe2hex-inline-file-transfer-using-in-built-windows-tools-debug-exe-or-powershell
2、https://github.com/g0tmi1k/exe2hex
安装:
exe2hex只需要Python 3的功能(Expect是Telnet和WinEXE功能的可选)。
需在$PATH变量中添加一个文件夹exe2hex即可:
$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
$ curl https://raw.githubusercontent.com/g0tmi1k/exe2hex/master/exe2hex.py > /usr/local/bin/exe2hex
$ chmod 0755 /usr/local/bin/exe2hex
root@kali:~# apt install -y exe2hexbat
github页面有相对详细的介绍。