Exclude python meterpreter, doesn't seem to work
parent
6a3172268e
commit
c744b14a8a
|
@ -95,14 +95,24 @@ class Metasploit3 < Msf::Post
|
||||||
thread_num = datastore['THREADS']
|
thread_num = datastore['THREADS']
|
||||||
proto = datastore['PROTOCOL']
|
proto = datastore['PROTOCOL']
|
||||||
|
|
||||||
|
unless client.type == "meterpreter"
|
||||||
|
print_error("This module requires meterpreter")
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
# If we want WINAPI egress, make sure winsock is loaded
|
# If we want WINAPI egress, make sure winsock is loaded
|
||||||
if type == 'WINAPI'
|
if type == 'WINAPI'
|
||||||
unless client.railgun.ws2_32
|
unless client.railgun.ws2_32 && client.platform =~ /win/
|
||||||
print_error("This method requires railgun and support for winsock APIs. Try using the NATIVE method instead.")
|
print_error("The WINAPI method requires Windows, railgun and support for winsock APIs. Try using the NATIVE method instead.")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if client.platform =~ /python/
|
||||||
|
print_error("This module cannot be used with python meterpreter at present")
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
ports = Rex::Socket.portspec_crack(datastore['PORTS'])
|
ports = Rex::Socket.portspec_crack(datastore['PORTS'])
|
||||||
|
|
||||||
workload_ports = []
|
workload_ports = []
|
||||||
|
|
Loading…
Reference in New Issue