mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 06:19:27 +01:00
Remove redundant lua -e from File Write and File Read categories in nmap
This commit is contained in:
parent
db40142ea7
commit
c4f93b87d5
@ -85,7 +85,7 @@ functions:
|
|||||||
file-write:
|
file-write:
|
||||||
- code: |
|
- code: |
|
||||||
TF=$(mktemp)
|
TF=$(mktemp)
|
||||||
echo 'lua -e 'local f=io.open("file_to_write", "wb"); f:write("data"); io.close(f);' > $TF
|
echo 'local f=io.open("file_to_write", "wb"); f:write("data"); io.close(f);' > $TF
|
||||||
nmap --script=$TF
|
nmap --script=$TF
|
||||||
- description: The payload appears inside the regular nmap output.
|
- description: The payload appears inside the regular nmap output.
|
||||||
code: |
|
code: |
|
||||||
@ -94,7 +94,7 @@ functions:
|
|||||||
file-read:
|
file-read:
|
||||||
- code: |
|
- code: |
|
||||||
TF=$(mktemp)
|
TF=$(mktemp)
|
||||||
echo 'lua -e 'local f=io.open("file_to_read", "rb"); print(f:read("*a")); io.close(f);' > $TF
|
echo 'local f=io.open("file_to_read", "rb"); print(f:read("*a")); io.close(f);' > $TF
|
||||||
nmap --script=$TF
|
nmap --script=$TF
|
||||||
sudo:
|
sudo:
|
||||||
- description: Input echo is disabled.
|
- description: Input echo is disabled.
|
||||||
|
Loading…
Reference in New Issue
Block a user