View Single Post
Old 17.09.2006, 19:37   #7
Dmytro
Архивный участник
 
Join Date: Nov 2005
Posts: 215
Default

Yeh, you on right way.
But in this case HEX isn't best chois (IMHO).

When analized LogD.exe we have:
Code:
.text:0040CB87                 push    offset a_Logd_ini ; "./LogD.ini"
.text:0040CB8C                 push    400h            ; nSize
.text:0040CB91                 lea     ecx, [esp+84Ch+ReturnedString]
.text:0040CB95                 push    ecx             ; lpReturnedString
.text:0040CB96                 push    offset aAllowhost ; "AllowHost"
.text:0040CB9B                 mov     edi, eax
.text:0040CB9D                 call    ds:GetPrivateProfileSectionA
We must create section "AllowHost" in "LogD.ini" and write IPs.
Somthing like this:
Code:
[AllowHost]
127.0.0.1
Hm, i did not deeply see in HEX (has just returned from a campaign), but i think in this section we may write some list of IPs, like:
Code:
[AllowHost]
127.0.0.1
xx.xx.xx.xx
P.S. If this work - goood! If not - we do HEX (in other place). =)
If you see something wrong, please reply.
Dmytro is offline