Skip to content

Commit 6c98098

Browse files
committed
Break up long lines and add magic encoding comment
1 parent b3c78f7 commit 6c98098

File tree

3 files changed

+25
-3
lines changed

3 files changed

+25
-3
lines changed

modules/payloads/stagers/windows/bind_tcp_rc4.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# -*- coding: binary -*-
12
##
23
# This file is part of the Metasploit Framework and may be subject to
34
# redistribution and commercial restrictions. Please see the Metasploit
@@ -32,7 +33,12 @@ def initialize(info = {})
3233
'Stager' =>
3334
{
3435
'RequiresMidstager' => false,
35-
'Offsets' => { 'LPORT' => [ 200, 'n' ], 'XORKey' => [ 260, '' ], 'RC4Key' => [ 324, '' ] },
36+
'Offsets' =>
37+
{
38+
'LPORT' => [ 200, 'n' ],
39+
'XORKey' => [ 260, '' ],
40+
'RC4Key' => [ 324, '' ]
41+
},
3642
'Payload' =>
3743
# Length: 411 bytes
3844
"\xFC\xE8\x89\x00\x00\x00\x60\x89\xE5\x31\xD2\x64\x8B\x52\x30\x8B" +

modules/payloads/stagers/windows/reverse_tcp_rc4.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# -*- coding: binary -*-
12
##
23
# This file is part of the Metasploit Framework and may be subject to
34
# redistribution and commercial restrictions. Please see the Metasploit
@@ -32,7 +33,14 @@ def initialize(info = {})
3233
'Stager' =>
3334
{
3435
'RequiresMidstager' => false,
35-
'Offsets' => { 'LHOST' => [ 197, 'ADDR' ], 'LPORT' => [ 204, 'n' ], 'ReverseConnectRetries' => [ 195, 'C'], 'XORKey' => [ 252, '' ], 'RC4Key' => [ 316, '' ] },
36+
'Offsets' =>
37+
{
38+
'LHOST' => [ 197, 'ADDR' ],
39+
'LPORT' => [ 204, 'n' ],
40+
'ReverseConnectRetries' => [ 195, 'C'],
41+
'XORKey' => [ 252, '' ],
42+
'RC4Key' => [ 316, '' ],
43+
},
3644
'Payload' =>
3745
# Length: 403 bytes
3846
"\xFC\xE8\x89\x00\x00\x00\x60\x89\xE5\x31\xD2\x64\x8B\x52\x30\x8B" +

modules/payloads/stagers/windows/reverse_tcp_rc4_dns.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# -*- coding: binary -*-
12
##
23
# This file is part of the Metasploit Framework and may be subject to
34
# redistribution and commercial restrictions. Please see the Metasploit
@@ -32,7 +33,14 @@ def initialize(info = {})
3233
'Stager' =>
3334
{
3435
'RequiresMidstager' => false,
35-
'Offsets' => { 'HostName' => [ 248, '' ], 'LPORT' => [ 212, 'n' ], 'ReverseConnectRetries' => [ 207, 'C'], 'XORKey' => [ 329, '' ], 'RC4Key' => [ 393, '' ] },
36+
'Offsets' =>
37+
{
38+
'HostName' => [ 248, '' ],
39+
'LPORT' => [ 212, 'n' ],
40+
'ReverseConnectRetries' => [ 207, 'C'],
41+
'XORKey' => [ 329, '' ],
42+
'RC4Key' => [ 393, '' ]
43+
},
3644
'Payload' =>
3745
# Name: stager_reverse_tcp_rc4_dns
3846
# Length: 480 bytes

0 commit comments

Comments
 (0)