mirror of
https://github.com/nmap/nmap.git
synced 2026-10-08 21:36:20 +00:00
This commit is contained in:
parent
d66dd69df2
commit
0e7f11673c
24 changed files with 50 additions and 50 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue