İçeriğe geç

Spawning a TTY Shell

Shell Spawning

  • Python : 
    python -c 'import pty; pty.spawn("/bin/sh")'
  • Echo : 
    echo os.system('/bin/bash')
    
  • sh : 
    /bin/sh -i
  • Perl : 
    perl —e 'exec "/bin/sh";' atau exec "/bin/sh";
  • Ruby : 
    exec "/bin/sh"
  • lua : 
    os.execute('/bin/sh')
  • From within IRB : 
    exec "/bin/sh"
  • From within vi : 
    :!bash atau :set shell=/bin/bash:shell
  • From within nmap : 
    !sh

     

python -c 'import pty; pty.spawn("/bin/sh")'
echo os.system('/bin/bash')
/bin/sh -i
perl -e 'exec "/bin/sh";'
perl: exec "/bin/sh";
ruby: exec "/bin/sh"
lua: os.execute('/bin/sh')

**(From within IRB)
exec "/bin/sh"

**(From within vi)
:!bash

**(From within vi)
:set shell=/bin/bash:shell

**(From within nmap)
!sh
Tarih:GüvenlikLinux