mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 14:11:29 +00:00
Change calls in these forms:
socket:connect(host.ip, port.number) socket:connect(host.ip, port.number, port.protocol) to this: socket:connect(host, port) connect can take host and port tables now, and the default protocol is taken from the port table if possible.
This commit is contained in:
@@ -54,7 +54,7 @@ action = function( host, port )
|
||||
for username in usernames do
|
||||
for password in passwords do
|
||||
|
||||
try( socket:connect(host.ip, port.number, "tcp") )
|
||||
try( socket:connect(host, port) )
|
||||
response = try( mysql.receiveGreeting( socket ) )
|
||||
|
||||
stdnse.print_debug( "Trying %s/%s ...", username, password )
|
||||
|
||||
Reference in New Issue
Block a user