mirror of
https://github.com/nmap/nmap.git
synced 2026-08-27 03:48:14 +00:00
o [NSE] Re-enabled support for guessing the username in addition to password
that was incorrectly removed from the metasploit-xmlrpc-brute in previous commit. [Patrik]
This commit is contained in:
parent
8ec7da89c8
commit
1aa3e7c456
2 changed files with 5 additions and 2 deletions
|
|
@ -1,5 +1,9 @@
|
|||
# Nmap Changelog ($Id$); -*-text-*-
|
||||
|
||||
o [NSE] Re-enabled support for guessing the username in addition to password
|
||||
that was incorrectly removed from the metasploit-xmlrpc-brute in previous
|
||||
commit. [Patrik]
|
||||
|
||||
o [NSE] Added the script metasploit-xmlrpc-brute that performs password
|
||||
auditing against the Metasploit XMLRPC service. [Vlatko Kosturjak]
|
||||
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ Driver =
|
|||
end,
|
||||
|
||||
login = function( self, username, password )
|
||||
local xmlreq='<?xml version="1.0" ?><methodCall><methodName>auth.login</methodName><params><param><value><string>msf</string></value></param><param><value><string>'..password.."</string></value></param></params></methodCall>\n"..string.char(0)
|
||||
local xmlreq='<?xml version="1.0" ?><methodCall><methodName>auth.login</methodName><params><param><value><string>'..username..'</string></value></param><param><value><string>'..password.."</string></value></param></params></methodCall>\n"..string.char(0)
|
||||
local status, err = self.socket:send(xmlreq)
|
||||
|
||||
if ( not ( status ) ) then
|
||||
|
|
@ -88,7 +88,6 @@ action = function(host, port)
|
|||
local engine = brute.Engine:new(Driver, host, port, opts)
|
||||
engine.options.script_name = SCRIPT_NAME
|
||||
engine.options.firstonly = true
|
||||
engine.options.passonly = true
|
||||
status, result = engine:start()
|
||||
return result
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue