From c4f93b87d5d09565213ffd52384d4f2ce1c165ea Mon Sep 17 00:00:00 2001 From: Shikata Date: Mon, 11 Jan 2021 12:37:37 +0200 Subject: [PATCH] Remove redundant lua -e from File Write and File Read categories in nmap --- _gtfobins/nmap.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_gtfobins/nmap.md b/_gtfobins/nmap.md index ba93dde..6a76161 100644 --- a/_gtfobins/nmap.md +++ b/_gtfobins/nmap.md @@ -85,7 +85,7 @@ functions: file-write: - code: | 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 - description: The payload appears inside the regular nmap output. code: | @@ -94,7 +94,7 @@ functions: file-read: - code: | 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 sudo: - description: Input echo is disabled.