From d356e635a4fd895ef131c39a87c8d5bb6b9e2439 Mon Sep 17 00:00:00 2001 From: nnposter Date: Thu, 27 Aug 2026 02:31:09 +0000 Subject: [PATCH] Cosmetic code cleanup --- scripts/http-config-backup.nse | 80 ++++++++++++++++------------------ 1 file changed, 37 insertions(+), 43 deletions(-) diff --git a/scripts/http-config-backup.nse b/scripts/http-config-backup.nse index b72e63466..c1f05ce2d 100644 --- a/scripts/http-config-backup.nse +++ b/scripts/http-config-backup.nse @@ -42,7 +42,7 @@ And for each of these file applies the following transformations (using This script is inspired by the CMSploit program by Feross Aboukhadijeh: http://www.feross.org/cmsploit/. -]]; +]] --- -- @usage @@ -67,12 +67,12 @@ http://www.feross.org/cmsploit/. -- @args http-config-backup.save directory to save all the valid config files found -- -author = "Riccardo Cecolin"; -license = "Same as Nmap--See https://nmap.org/book/man-legal.html"; -categories = { "auth", "intrusive" }; +author = "Riccardo Cecolin" +license = "Same as Nmap--See https://nmap.org/book/man-legal.html" +categories = { "auth", "intrusive" } -portrule = shortport.http; +portrule = shortport.http local function make_grep(pattern) return function(s) @@ -80,8 +80,8 @@ local function make_grep(pattern) end end -local grep_php = make_grep("<%?php"); -local grep_cgipath = make_grep("CGIPath"); +local grep_php = make_grep("<%?php") +local grep_cgipath = make_grep("CGIPath") local function check_htaccess(s) return s:find("