mirror of
https://github.com/nmap/nmap.git
synced 2025-12-14 19:59:02 +00:00
Adjusted link patterns to exclude leading and trailing whitespace in
the link extractor parsing function
This commit is contained in:
@@ -223,11 +223,11 @@ LinkExtractor = {
|
||||
parse = function(self)
|
||||
local links = {}
|
||||
local patterns = {
|
||||
'[hH][rR][eE][fF]%s*=%s*[\'"](%s*[^"^\']+%s*)[\'"]',
|
||||
'[hH][rR][eE][fF]%s*=%s*[\'"]%s*([^"^\']-)%s*[\'"]',
|
||||
'[hH][rR][eE][fF]%s*=%s*([^\'\"][^%s>]+)',
|
||||
'[sS][rR][cC]%s*=%s*[\'"](%s*[^"^\']+%s*)[\'"]',
|
||||
'[sS][rR][cC]%s*=%s*[\'"]%s*([^"^\']-)%s*[\'"]',
|
||||
'[sS][rR][cC]%s*=%s*([^\'\"][^%s>]+)',
|
||||
'[aA][cC][tT][iI][oO][nN]%s*=%s*[\'"](%s*[^"^\']+%s*)[\'"]',
|
||||
'[aA][cC][tT][iI][oO][nN]%s*=%s*[\'"]%s*([^"^\']+%s*)[\'"]',
|
||||
}
|
||||
|
||||
local base_hrefs = {
|
||||
|
||||
Reference in New Issue
Block a user