awww, platfom =/= platform
git-svn-id: file:///home/svn/framework3/trunk@11583 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
3b7253aa8b
commit
e8bf4118b1
|
@ -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')
|
||||
|
|
|
@ -150,7 +150,7 @@ enbl = nil
|
|||
|
||||
}
|
||||
|
||||
unsupported if client.platfom !~ /win32|win64/i
|
||||
unsupported if client.platform !~ /win32|win64/i
|
||||
|
||||
if enbl
|
||||
message
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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%")
|
||||
|
|
|
@ -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|
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
#
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 ##################
|
||||
|
||||
|
|
|
@ -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 ##################
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue