วันพฤหัสบดีที่ 23 พฤษภาคม พ.ศ. 2562

Spawning Shells CTF-Cheatsheet


Spawning Shells


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

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

#sh
   /bin/sh -i

#bash
   /bin/bash -i

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

#VI
   :!bash

Trick: https://github.com/bad-hombres/supertty
https://blog.ropnop.com/upgrading-simple-shells-to-fully-interactive-ttys/

ไม่มีความคิดเห็น:

แสดงความคิดเห็น