pwny.cc
Search…
Home
WEB ATTACKS
Misc
OAuth
Open Redirect
Command Injection
Local File Inclusion (LFI)
Insecure File Upload
Insecure Direct Object Reference (IDOR)
SQL Injection (SQLi)
Cross-Site Scripting (XSS)
Server Side Request Forgery (SSRF)
Server Side Template Injection (SSTI)
XML External Entity (XXE)
SHELLS
Misc
Web Shells
Reverse Shells
Obfuscated Shells
SO
Linux
Windows
OTHER
Sandbox Escape
Cracking
Powered By
GitBook
Misc
Python shell beautifier
1
python
-
c
'import pty; pty.spawn("/bin/bash")'
Copied!
Upgrade Full TTY - PTY Module
1
$ python -c
'import pty; pty.spawn("/bin/bash")'
2
[email protected]
:$ ^Z
#(background)
3
4
[email protected]
:$ stty -a
|
head
-n1
|
cut
-d
';'
-f
2
-3
|
cut
-b2-
|
sed
's/; /\n/'
#(get ROWS and COLS)
5
[email protected]
:$ stty raw -echo
;
fg
6
7
[email protected]
:$ reset
8
[email protected]
:$ stty rows
${ROWS}
cols
${COLS}
9
[email protected]
:$
export
TERM
=
xterm
#(or xterm-color or xterm-256color)
Copied!
WEB ATTACKS - Previous
XML External Entity (XXE)
Next - SHELLS
Web Shells
Last modified
8mo ago
Copy link
Contents
Python shell beautifier
Upgrade Full TTY - PTY Module