mirror of
https://github.com/nmap/nmap.git
synced 2026-08-27 03:48:14 +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:
parent
bfffa53616
commit
3c89e089fc
55 changed files with 63 additions and 63 deletions
|
|
@ -82,7 +82,7 @@ action = function( host, port )
|
|||
--
|
||||
for username, password in pairs(users) do
|
||||
|
||||
try( socket:connect(host.ip, port.number, "tcp") )
|
||||
try( socket:connect(host, port) )
|
||||
|
||||
response = try( mysql.receiveGreeting( socket ) )
|
||||
status, response = mysql.loginRequest( socket, { authversion = "post41", charset = response.charset }, username, password, response.salt )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue