Class: Ronin::Exploits::RemoteTCP

Inherits:
Remote show all
Includes:
Network::Mixins::TCP, Model::HasDefaultPort
Defined in:
lib/ronin/exploits/remote_tcp.rb

Overview

An Exploit class that represents exploits that run against remote TCP services.

Direct Known Subclasses

FTP, HTTP

Instance Attribute Summary

Attributes inherited from Exploit

#encoders, #helpers, #raw_payload, #restricted_chars, #target

Attributes included from Payloads::HasPayload

#payload

Instance Method Summary collapse

Methods included from Model::HasDefaultPort

included

Methods inherited from Exploit

#advisory, advisory, #arch, #build!, #build_payload!, #encode_payload, #encode_payload!, #evacuate!, #exploit!, #helper, #initialize, #os, #payload=, #restrict, #software, #targeting, targeting_arch, #targeting_arch, #targeting_os, targeting_os, targeting_software, #targeting_software, #use_target!

Methods included from Tests

#is_restricted?, #test_arch!, #test_os!, #test_restricted!, #test_software!, #test_target!

Methods included from PostExploitation::Mixin

#fs, #post_exploitation, #process, #resources, #shell

Methods included from Payloads::HasPayload

#default_payload, #initialize, #method_missing, #payload_class, #respond_to?, #use_payload!, #use_payload_from!

Constructor Details

This class inherits a constructor from Ronin::Exploits::Exploit

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Ronin::Payloads::HasPayload

Instance Method Details

#deploy! {|exploit| ... } ⇒ RemoteTCP

Verifies and deploys the TCP remote exploit.

Yields:

  • (exploit)

    If a block is given, it will be passed the deployed exploit.

Yield Parameters:

  • exploit (RemoteTCP)

    The deployed exploit.

Raises:

  • (ExploitNotBuilt)

    The exploit has not been built, and cannot be deployed.


62
63
64
65
66
# File 'lib/ronin/exploits/remote_tcp.rb', line 62

def deploy!(&block)
  @port ||= self.default_port

  super(&block)
end

#test!Object

Tests the TCP remote exploit is ready to be deployed.


41
42
43
44
45
# File 'lib/ronin/exploits/remote_tcp.rb', line 41

def test!
  require_params :host, :port

  return super
end