易码技术论坛

 找回密码
 加入易码
搜索
查看: 129415|回复: 0

求教高手!

[复制链接]
发表于 2006-12-28 22:21:48 | 显示全部楼层 |阅读模式
  下面这段是把IP写入到EXE里面的代码,执行可EXE后,忽略server.ini里的IP,而直接调用EXE里面的IP,哪位大哥能帮我改成调用server.ini里的IP,而不调用EXE里面的IP呀?小弟在这里跪谢了!
.text:00539296 loc_539296:                    ; CODE XREF: sub_538D10+57Fj
.text:00539296            push   eax         ; lpString2
.text:00539297            lea    eax, [esp+21B8h+FileName]
.text:0053929E            push   eax         ; lpString1
.text:0053929F            call   ds:lstrcpyA
.text:005392A5            lea    ecx, [esp+21B4h+FileName]
.text:005392A9            push   offset s_Server_ini ; "Server.Ini"
.text:005392AE            push   ecx         ; lpString1
.text:005392AF            call   ds:lstrcatA
.text:005392B5            lea    edx, [esp+21B4h+FileName]
.text:005392B9            push   edx         ; lpFileName
.text:005392BA            push   ebx         ; nDefault
.text:005392BB            push   offset s_Count  ; "Count"
.text:005392C0            push   offset s_Server ; "Server"
.text:005392C5            call   ds:GetPrivateProfileIntA
.text:005392CB            mov    ecx, 800h
.text:005392D0            xor    eax, eax
.text:005392D2            lea    edi, [esp+21B4h+String]
.text:005392D9            push   ebx
.text:005392DA            rep stosd
.text:005392DC            mov    al, Default
.text:005392E1            mov    ecx, 7
.text:005392E6            mov    [esp+21B8h+KeyName], al
.text:005392EA            xor    eax, eax
.text:005392EC            lea    edi, [esp+61h]
.text:005392F0            push   offset s_IpD   ; "IP%d"
.text:005392F5            rep stosd
.text:005392F7            stosw
.text:005392F9            lea    ecx, [esp+21BCh+KeyName]
.text:005392FD            mov    byte ptr [esp+21BCh+len], 3Ch
.text:00539302            push   ecx         ; char *
.text:00539303            mov    byte ptr [esp+21C0h+len+1], bl
.text:00539307            mov    byte ptr [esp+21C0h+len+2], 1
.text:0053930C            mov    byte ptr [esp+21C0h+len+3], 78h
.text:00539311            stosb
.text:00539312            call   _sprintf
.text:00539312
.text:00539317            add    esp, 0Ch
.text:0053931A            lea    edx, [esp+21B4h+FileName]
.text:0053931E            lea    eax, [esp+21B4h+String]
.text:00539325            lea    ecx, [esp+21B4h+KeyName]
.text:00539329            push   edx
.text:0053932A            push   20h
.text:0053932C            push   eax
.text:0053932D            push   offset Default  ; lpDefault
.text:00539332            push   ecx         ; lpKeyName
.text:00539333            push   offset s_Server ; "Server"
.text:00539338            call   ds:GetPrivateProfileStringA
.text:0053933E            mov    edx, [esp+21B4h+len]
.text:00539342            push   edx         ; in
.text:00539343            call   inet_ntoa
您需要登录后才可以回帖 登录 | 加入易码

本版积分规则

Archiver|手机版|小黑屋|EMAX Studio

GMT+8, 2024-4-19 06:44 , Processed in 0.013990 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表