awww, platfom =/= platform

git-svn-id: file:///home/svn/framework3/trunk@11583 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Jonathan Cran 2011-01-16 05:23:57 +00:00
parent 3b7253aa8b
commit e8bf4118b1
14 changed files with 14 additions and 14 deletions

View File

@ -51,7 +51,7 @@ end
# Create Filename info to be appended to downloaded files
filenameinfo = "_" + ::Time.now.strftime("%Y%m%d.%M%S")
unsupported if client.platfom !~ /win32|win64/i
unsupported if client.platform !~ /win32|win64/i
# Create a directory for the logs
logs = ::File.join(Msf::Config.log_directory, 'scripts','domain_admins')

View File

@ -150,7 +150,7 @@ enbl = nil
}
unsupported if client.platfom !~ /win32|win64/i
unsupported if client.platform !~ /win32|win64/i
if enbl
message

View File

@ -140,7 +140,7 @@ check_update = false
raise Rex::Script::Completed
end
}
unsupported if client.platfom !~ /win32|win64/i
unsupported if client.platform !~ /win32|win64/i
prefetch_local = ::File.join(Msf::Config.data_directory, "prefetch.exe")
if !(::File.exist?(prefetch_local))

View File

@ -147,7 +147,7 @@ end
}
unsupported if client.platfom !~ /win32|win64/i
unsupported if client.platform !~ /win32|win64/i
print_status("Meterpreter session running as #{session.sys.config.getuid}")
if help == 0 && commands.length != 0
abuse(session,targets,commands,username,password,delay)

View File

@ -72,7 +72,7 @@ logs = ::File.join(Msf::Config.log_directory, 'scripts','scraper', host + "_" +
# Create the log directory
::FileUtils.mkdir_p(logs)
unsupported if client.platfom !~ /win32|win64/i
unsupported if client.platform !~ /win32|win64/i
begin
tmp = client.fs.file.expand_path("%TEMP%")

View File

@ -35,7 +35,7 @@ def unsupported
print_error("This version of Meterpreter is not supported with this Script!")
raise Rex::Script::Completed
end
unsupported if client.platfom !~ /win32|win64/i
unsupported if client.platform !~ /win32|win64/i
os = client.sys.config.sysinfo['OS']
targets.each do |t|

View File

@ -71,7 +71,7 @@ def unsupported
end
unsupported if client.platfom !~ /win32|win64/i
unsupported if client.platform !~ /win32|win64/i
# Get arguments
basedir = args[0] || "C:\\"
filter = args[1] || "office"

View File

@ -46,7 +46,7 @@ def unsupported
print_error("This version of Meterpreter is not supported with this Script!")
raise Rex::Script::Completed
end
unsupported if client.platfom !~ /win32|win64/i
unsupported if client.platform !~ /win32|win64/i
#
# Option parsing
#

View File

@ -86,7 +86,7 @@ def unsupported
print_error("This version of Meterpreter is not supported with this Script!")
raise Rex::Script::Completed
end
unsupported if client.platfom !~ /win32|win64/i
unsupported if client.platform !~ /win32|win64/i
#parsing of Options
file = ""
cmdopt = nil

View File

@ -22,7 +22,7 @@ def unsupported
print_error("This version of Meterpreter is not supported with this Script!")
raise Rex::Script::Completed
end
unsupported if client.platfom !~ /win32|win64/i
unsupported if client.platform !~ /win32|win64/i
# Spawn calculator
pid = client.sys.process.execute("calc.exe", nil, {'Hidden' => 'true'}).pid

View File

@ -79,7 +79,7 @@ def unsupported
print_error("This version of Meterpreter is not supported with this Script!")
raise Rex::Script::Completed
end
unsupported if client.platfom !~ /win32|win64/i
unsupported if client.platform !~ /win32|win64/i
#
# Create the raw payload

View File

@ -145,7 +145,7 @@ def unsupported
print_error("This version of Meterpreter is not supported with this Script!")
raise Rex::Script::Completed
end
unsupported if client.platfom !~ /win32|win64/i
unsupported if client.platform !~ /win32|win64/i
################## MAIN ##################

View File

@ -561,7 +561,7 @@ def unsupported
print_error("This version of Meterpreter is not supported with this Script!")
raise Rex::Script::Completed
end
unsupported if client.platfom !~ /win32|win64/i
unsupported if client.platform !~ /win32|win64/i
################## MAIN ##################

View File

@ -126,7 +126,7 @@ end
raise RuntimeError, "Empty command list"
end
}
unsupported if client.platfom !~ /win32|win64/i
unsupported if client.platform !~ /win32|win64/i
if outfile == nil
print_status wmicexec(session,commands)