From be89acce39a9aa89b730cbabb7e5cff8207091b2 Mon Sep 17 00:00:00 2001 From: nnposter Date: Fri, 4 Feb 2022 02:27:15 +0000 Subject: [PATCH] Do not include whitespace in the size string --- scripts/http-ls.nse | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/http-ls.nse b/scripts/http-ls.nse index d756e4894..07fba7648 100644 --- a/scripts/http-ls.nse +++ b/scripts/http-ls.nse @@ -138,7 +138,7 @@ local function list_files(host, port, url, output, maxdepth, basedir) end local patterns = { - '<[Aa] [Hh][Rr][Ee][Ff]="([^"]+)">[^<]+ *<[Tt][Dd][^>]*> *([0-9]+-[A-Za-z0-9]+-[0-9]+ [0-9]+:[0-9]+) *<[Tt][Dd][^>]*> *([^<]+)', + '<[Aa] [Hh][Rr][Ee][Ff]="([^"]+)">[^<]+ *<[Tt][Dd][^>]*> *([0-9]+-[A-Za-z0-9]+-[0-9]+ [0-9]+:[0-9]+) *<[Tt][Dd][^>]*> *([^<]-) *', '<[Aa] [Hh][Rr][Ee][Ff]="([^"]+)">[^<]+ *([0-9]+-[A-Za-z0-9]+-[0-9]+ [0-9]+:[0-9]+) *([^ \r\n]+)', } for _, pattern in ipairs(patterns) do