Class: Ronin::Payloads::Shellcode::BindShellPayload

Inherits:
Ronin::Payloads::ShellcodePayload show all
Includes:
Mixins::BindShell, Mixins::Network, Mixins::ResolveHost
Defined in:
lib/ronin/payloads/shellcode/bind_shell_payload.rb

Overview

Base class for all bind shell shellcode payloads.

Instance Attribute Summary

Attributes included from Mixins::PostEx

#session

Attributes inherited from Payload

#encoders, #payload

Instance Method Summary collapse

Methods included from Mixins::Network

#pack_ipv4, #pack_ipv6, #pack_port

Methods included from Mixins::ResolveHost

#host_address, #host_addresses, #host_ip_address, #host_ip_addresses, #host_ipv4_address, #host_ipv4_addresses, #host_ipv6_address, #host_ipv6_addresses

Methods included from Mixins::BindShell

#host, included, #perform_postlaunch, #port

Methods included from Mixins::PostEx

#perform_cleanup

Methods inherited from Ronin::Payloads::ShellcodePayload

payload_type, #shellcode

Methods inherited from ASMPayload

#assemble, assembler, payload_type

Methods included from Metadata::OS

included, #os, #os_version

Methods included from Metadata::Arch

#arch, included

Methods inherited from BinaryPayload

payload_type

Methods inherited from Payload

#build, #built?, #built_payload, #bytesize, #cleanup, #encode_payload, #encoded_payload, encoder_class, #initialize, #length, payload_type, #perform_build, #perform_cleanup, #perform_postlaunch, #perform_prelaunch, #perform_validate, #postlaunch, #prelaunch, #rebuild_payload, #reencode_payload, register, #to_s, #validate

Constructor Details

This class inherits a constructor from Ronin::Payloads::Payload

Instance Method Details

#packed_port(**kwargs) ⇒ String

The bind shell's packed port number in network byte-order.

Parameters:

Options Hash (**kwargs):

  • :negate (Boolean)

    Inverts the bits of the port number.

Returns:

  • (String)

    The packed port number in network byte-order.



53
54
55
# File 'lib/ronin/payloads/shellcode/bind_shell_payload.rb', line 53

def packed_port(**kwargs)
  pack_port(port,**kwargs)
end