mirror of
https://github.com/nmap/nmap.git
synced 2026-09-01 07:52:57 +00:00
Use BruteSocket in a bunch of brute scripts
This commit is contained in:
parent
4c1d93405a
commit
8ee963caee
47 changed files with 65 additions and 65 deletions
|
|
@ -43,15 +43,15 @@ end
|
|||
Session = {
|
||||
|
||||
--- Creates a new session object
|
||||
new = function(self, o)
|
||||
new = function(self, socket)
|
||||
|
||||
o = o or {}
|
||||
local o = {}
|
||||
setmetatable(o, self)
|
||||
self.__index = self
|
||||
|
||||
o.username = nmap.registry.args["omp2.username"]
|
||||
o.password = nmap.registry.args["omp2.password"]
|
||||
o.socket = nmap.new_socket()
|
||||
o.socket = socket or nmap.new_socket()
|
||||
|
||||
return o
|
||||
end,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue