Script did not check for proper Meterpreter Platform

git-svn-id: file:///home/svn/framework3/trunk@10813 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Carlos Perez 2010-10-25 02:05:28 +00:00
parent 85e7c799f7
commit f77cdd1513
1 changed files with 10 additions and 0 deletions

View File

@ -55,6 +55,12 @@ def usage
raise Rex::Script::Completed
end
# Wrong Meterpreter Version Message Function
#-------------------------------------------------------------------------------
def wrong_meter_version(meter = meter_type)
print_error("#{meter} version of Meterpreter is not supported with this Script!")
raise Rex::Script::Completed
end
#
# Default parameters
#
@ -296,6 +302,10 @@ downloaded = nil
end
}
# Check for Version of Meterpreter
wrong_meter_version(meter_type) if meter_type !~ /win32|win64/i
if not rhost or not username
print_status("You must specify a hostname (-H) and username (-u)")
raise Rex::Script::Completed