mirror of
https://github.com/nmap/nmap.git
synced 2025-12-11 10:19:03 +00:00
Separator "," in backorifice-brute.nse instead of ";"
This commit is contained in:
@@ -8,7 +8,7 @@ the script against).
|
|||||||
-- @usage
|
-- @usage
|
||||||
-- nmap -sU --script backorifice-brute <host> --script-args backorifice-brute.ports=<ports>
|
-- nmap -sU --script backorifice-brute <host> --script-args backorifice-brute.ports=<ports>
|
||||||
--
|
--
|
||||||
-- @arg backorifice-brute.ports (mandatory) List of UDP ports to run the script against separated with ";" ex. "U:31337;25252;151-222", "U:1024-1512"
|
-- @arg backorifice-brute.ports (mandatory) List of UDP ports to run the script against separated with "," ex. "U:31337,25252,151-222", "U:1024-1512"
|
||||||
--
|
--
|
||||||
-- This script uses the brute library to perform password guessing. A
|
-- This script uses the brute library to perform password guessing. A
|
||||||
-- successful password guess is stored in the nmap registry, under the
|
-- successful password guess is stored in the nmap registry, under the
|
||||||
@@ -53,7 +53,7 @@ portrule = function(host, port)
|
|||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
return port.protocol == "udp" and stdnse.in_port_range(port, ports:gsub(";",",") ) and
|
return port.protocol == "udp" and stdnse.in_port_range(port, ports:gsub(",",",") ) and
|
||||||
not(shortport.port_is_excluded(port.number,port.protocol))
|
not(shortport.port_is_excluded(port.number,port.protocol))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user