🥷
Offensive Security
  • Shells and stuffs
    • Bind Shell
    • Reverse Shell
    • TTY Shell
    • File Transfer
    • Handmade Network Scan
  • Services enumeration
    • DNS Enumeration
    • SMB Enumeration
    • NFS Enumeration
  • Linux Privilege Escalation
    • Useful Tools
    • Hijack X11 session
    • Linux capabilities
    • LXC membership
  • Windows Privilege Escalation
    • Useful Tools
  • Password Attacks
    • Build Wordlist
    • Network Service Attacks
    • Password Cracking
  • Active Directory
    • AD CS
  • OSINT
    • Google Dorks
Powered by GitBook
On this page
  • Python
  • Echo
  • Sh
  • Bash
  • Perl
  • From within VI
  1. Shells and stuffs

TTY Shell

From non-tty-shell, there are certain commands that cannot be used.

Python

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

Echo

echo 'os.system('/bin/bash')'

Sh

/bin/sh -i

Bash

/bin/bash -i

Perl

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

From within VI

:!bash
PreviousReverse ShellNextFile Transfer

Last updated 2 years ago