Skip to content

Commit

Permalink
Add nmap file-read via -iL optio
Browse files Browse the repository at this point in the history
Co-authored-by: Andrea Cardaci <[email protected]>
  • Loading branch information
ouuan and cyrus-and authored Dec 23, 2023
1 parent 0f32942 commit 41fdcdd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions _gtfobins/nmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ functions:
TF=$(mktemp)
echo 'local f=io.open("file_to_read", "rb"); print(f:read("*a")); io.close(f);' > $TF
nmap --script=$TF
- description: The file is actually parsed as a list of hosts/networks, lines are leaked through error messages.
code: |
nmap -iL file_to_read
sudo:
- description: Input echo is disabled.
code: |
Expand Down

0 comments on commit 41fdcdd

Please sign in to comment.