mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 21:21:31 +00:00
This commit is contained in:
@@ -78,7 +78,7 @@ Driver = {
|
||||
return false,brute.Error:new(response)
|
||||
end
|
||||
stdnse.debug1( "Trying %s ...", pass)
|
||||
local auth_string = bin.pack("H","0000018d00000000") .. pass .. bin.pack("H","00504e5f5155454d4500"); -- old authentication method
|
||||
local auth_string = stdnse.fromhex("0000018d00000000") .. pass .. stdnse.fromhex("00504e5f5155454d4500"); -- old authentication method
|
||||
local err
|
||||
status, err = self.socket:send(bin.pack("c",string.len(auth_string)-3) .. auth_string) --send initial auth
|
||||
status, response = self.socket:receive_bytes(0)
|
||||
|
||||
Reference in New Issue
Block a user