Class: Ronin::Payloads::BindShell

Inherits:
Payload
  • Object
show all
Defined in:
lib/ronin/payloads/bind_shell.rb

Overview

A generic payload for interacting with Bind Shells.

require 'ronin/payloads/bind_shell'

payload = Ronin::Payloads::BindShell.new
payload.protocol = :tcp
payload.host = 'victim.com'
payload.port = 1337

rpc.build!
rpc.deploy!

rpc.shell.whoami
# => "www"

Instance Attribute Summary

Attributes inherited from Payload

#exploit, #helpers, #raw_payload

Attributes included from HasPayload

#payload

Instance Method Summary collapse

Methods inherited from Payload

#build!, #helper

Methods included from Ronin::PostExploitation::Mixin

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

Methods included from HasPayload

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

Methods included from Model::TargetsOS

included

Methods included from Model::TargetsArch

included

Constructor Details

#initialize(attributes = {}) ⇒ BindShell

Creates a new bind shell payload.


52
53
54
55
56
# File 'lib/ronin/payloads/bind_shell.rb', line 52

def initialize(attributes={})
  super(attributes)

  helper :bind_shell
end

Dynamic Method Handling

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