Skip to content

Spawning TTY Shell

TheGetch edited this page May 14, 2021 · 2 revisions

Spawning TTY Shell

Spawning TTY Shell

Python:

python -c 'import pty; pty.spawn("/bin/bash")'
python3 -c 'import pty; pty.spawn("/bin/bash")'

Bash:

echo os.system('/bin/bash')  
/bin/sh -i  

Perl:

perl -e 'exec "/bin/sh";'  
perl: exec "/bin/sh";  

From within vi:

:!bash

or

:set shell=/bin/bash:shell  

From within nmap

!sh

_Sidebar

1. Recon

Ping Sweep

CIDR to IP

2. Enumeration

Services

05. HTTP (80,443,8080,8443,etc.)

3. Exploitation

4. Post Exploiation

5. High Value Information

Hashes

6. Reporting

7. Random Notes/Useful Tidbits

Clone this wiki locally