handle better certain options that may use = sign

git-svn-id: file:///home/svn/framework3/trunk@14186 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Carlos Perez 2011-11-08 03:22:54 +00:00
parent 77a3edbb4f
commit 28c2408fdd
1 changed files with 3 additions and 3 deletions

View File

@ -124,7 +124,7 @@ class Metasploit3 < Msf::Post
print_status("Cleanup Meterpreter RC File: #{clean_rc}")
report_note(:host => host,
:type => "host.persistance.cleuanup",
:type => "host.persistance.cleanup",
:data => {
:local_id => session.sid,
:stype => session.type,
@ -179,7 +179,7 @@ class Metasploit3 < Msf::Post
pay.datastore['LPORT'] = lport
if not opts.empty?
opts.split(",").each do |o|
opt,val = o.split("=")
opt,val = o.split("=", 2)
pay.datastore[opt] = val
end
end
@ -238,7 +238,7 @@ class Metasploit3 < Msf::Post
return tempvbs
end
# Method for checking if a listner for a given IP and port is present
# Method for checking if a listener for a given IP and port is present
# will return true if a conflict exists and false if none is found
#-------------------------------------------------------------------------------
def check_for_listner(lhost,lport)