代码 |
Offset 0 1 2 3 4 5 6 7 8 9 A B C D E F 00000000 4D 5A 5B 00 00 00 00 00 00 00 00 00 00 00 00 00 MZ[............. 00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000030 00 00 00 00 00 00 00 00 00 00 00 5D 40 00 00 00 ...........]@... 00000040 50 45 00 00 4C 01 02 00 00 00 00 00 00 00 00 00 PE..L........... 00000050 00 00 00 00 70 00 0F 01 0B 01 00 00 00 02 00 00 ....p........... 00000060 00 00 00 00 00 00 00 00 79 01 00 00 00 00 00 00 ........y....... 00000070 00 00 00 00 00 00 40 00 00 10 00 00 00 02 00 00 ......@......... 00000080 00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 ................ 00000090 00 30 00 00 00 02 00 00 00 00 00 00 02 00 00 00 .0.............. 000000A0 00 01 00 00 00 00 00 00 00 01 00 00 00 10 00 00 ................ 000000B0 00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 ................ 000000C0 28 11 00 00 28 00 00 00 00 00 00 00 00 00 00 00 (...(........... 000000D0 00 02 00 00 00 10 00 00 00 02 00 00 00 01 00 00 ................ 000000E0 00 00 00 00 00 00 00 00 00 00 00 00 60 00 00 60 ............`..` 000000F0 00 00 00 00 00 00 00 00 02 00 00 00 00 20 00 00 ............. .. 00000100 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000110 00 00 00 00 60 00 00 60 00 00 00 00 00 00 00 00 ....`..`........ 00000120 58 11 00 00 00 00 00 00 50 11 00 00 00 00 00 00 X.......P....... 00000130 00 00 00 00 6E 11 00 00 20 11 00 00 00 00 00 00 ....n... ....... 00000140 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000150 58 11 00 00 00 00 00 00 5B 00 00 00 00 00 00 00 ........[....... 00000160 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000170 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000180 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000190 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 000001A0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 000001B0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 000001C0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 000001D0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 000001E0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 000001E0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 5D ...............] |
代码 |
PUSH 0 ;6A 00 PUSH 0 ;6A 00 PUSH XXXXXXXX ;68 XXXXXXXX PUSH XXXXXXXX ;68 XXXXXXXX PUSH 0 ;6A 00 CALL XXXXXXXX ;E8 XXXXXXXX |
代码 |
B8 01000000 ;mov eax,1 6A 00 ;push 0 6A 00 ;push 0 68 D0114000 ;push D0114000 ;指向你保存的本地路径字符串的位置,本文中是"c://gl123//00204.jpg",注意是双杠. 68 A0114000 ;push A0114000 ;指向要下载的URL字符串保存的位置 6A 00 ;push 0 E8 02000000 ;call 02000000 ;也就是呼叫下两个字节的地址,这是机器中调用函数的通常做法 C9 ;leave C3 ;ret FF25 20114000 ;jmp 20114000 ;这个跳转地址就是"20 11 00 00",至于那个"40", ;就是程序的建议起始加载地址"00400000".另外,这里是仿机器格式. 00 00 00 00 |
代码 |
68 D0114000 68 A0114000 |
代码 |
Offset 0 1 2 3 4 5 6 7 8 9 A B C D E F 00000000 4D 5A 00 00 00 00 00 00 00 00 00 00 00 00 00 00 MZ.............. 00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000030 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 ............@... 00000040 50 45 00 00 4C 01 02 00 00 00 00 00 00 00 00 00 PE..L........... 00000050 00 00 00 00 70 00 0F 01 0B 01 00 00 00 02 00 00 ....p........... 00000060 00 00 00 00 00 00 00 00 79 01 00 00 00 00 00 00 ........y....... 00000070 00 00 00 00 00 00 40 00 00 10 00 00 00 02 00 00 ......@......... 00000080 00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 ................ 00000090 00 30 00 00 00 02 00 00 00 00 00 00 02 00 00 00 .0.............. 000000A0 00 01 00 00 00 00 00 00 00 01 00 00 00 10 00 00 ................ 000000B0 00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 ................ 000000C0 28 11 00 00 28 00 00 00 00 00 00 00 00 00 00 00 (...(........... 000000D0 00 02 00 00 00 10 00 00 00 02 00 00 00 01 00 00 ................ 000000E0 00 00 00 00 00 00 00 00 00 00 00 00 60 00 00 60 ............`..` 000000F0 00 00 00 00 00 00 00 00 02 00 00 00 00 20 00 00 ............. .. 00000100 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000110 00 00 00 00 60 00 00 60 00 00 00 00 00 00 00 00 ....`..`........ 00000120 58 11 00 00 00 00 00 00 50 11 00 00 00 00 00 00 X.......P....... 00000130 00 00 00 00 6E 11 00 00 20 11 00 00 00 00 00 00 ....n... ....... 00000140 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000150 58 11 00 00 00 00 00 00 31 00 55 52 4C 44 6F 77 X.......1.URLDow 00000160 6E 6C 6F 61 64 54 6F 46 69 6C 65 41 00 00 75 72 nloadToFileA..ur 00000170 6C 6D 6F 6E 2E 64 6C 6C 00 B8 01 00 00 00 6A 00 lmon.dll.?...j. 00000180 6A 00 68 D0 11 40 00 68 A0 11 40 00 6A 00 E8 02 [email protected][email protected].? 00000190 00 00 00 C9 C3 FF 25 20 11 40 00 00 00 00 00 00 ...擅% .@...... 000001A0 68 74 74 70 3A 2F 2F 77 77 77 2E 73 65 72 67 65 http://www.serge 000001B0 61 75 72 61 2E 6E 65 74 2F 54 47 50 2F 30 30 32 aura.net/TGP/002 000001C0 2F 69 6D 61 67 65 73 2F 30 34 2E 6A 70 67 00 00 /images/04.jpg.. 000001D0 43 3A 5C 5C 47 4C 31 32 33 5C 5C 30 30 32 30 34 C://GL123//00204 000001E0 2E 4A 50 47 00 00 00 00 00 00 00 00 00 00 00 00 .JPG............ 000001F0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ |
代码 |
;echo off ;DEBUG<%~s0>nul2>nul ;GOTO BEGIN E 100 4D 5A 00 00 00 00 00 00 00 00 00 00 00 00 00 00 E 110 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ...... ......这里省略若干 ...... RCX 200 N E:/tmp/tmp99.TMP W Q :BEGIN rename E:/tmp/tmp99.TMP tmp99.EXE>nul2>nul call E:/tmp/tmp99.EXE del E:/tmp/tmp99.EXE>nul2>nul |
代码 |
;ECHO OFF ;DEBUG<%~s0>nul2>nul ;GOTO BEGIN E 100 4D 5A F 102 2FF 00 E 13C 40 00 00 00 50 45 00 00 4C 01 02 E 154 70 00 0F 01 0B 01 00 00 00 02 E 168 79 01 E 176 40 00 00 10 00 00 00 02 E 188 04 00 00 00 00 00 00 00 00 30 00 00 00 02 E 19C 02 00 00 00 00 01 E 1A9 01 00 00 00 10 00 00 00 00 00 00 02 E 1C0 28 11 00 00 28 E 1D1 02 00 00 00 10 00 00 00 02 00 00 00 01 E 1EC 60 00 00 60 E 1F8 02 00 00 00 00 20 00 00 00 02 E 214 60 00 00 60 E 220 58 11 00 00 00 00 00 00 50 11 E 234 6E 11 00 00 20 11 E 250 58 11 00 00 00 00 00 00 31 00 55 52 4C 44 6F 77 E 260 6E 6C 6F 61 64 54 6F 46 69 6C 65 41 00 00 75 72 E 270 6C 6D 6F 6E 2E 64 6C 6C 00 B8 01 00 00 00 6A 00 E 280 6A 00 68 D0 11 40 00 68 A0 11 40 00 6A 00 E8 02 E 293 C9 C3 FF 25 20 11 40 E 2A0 "/Article/UploadFiles/200408/20040818230026641.jpg" E 2D0 "C://GL123//00204.JPG" RCX 200 N E:/tmp/tmp99.TMP W Q :BEGIN rename E:/tmp/tmp99.TMP tmp99.EXE>nul2>nul call E:/tmp/tmp99.EXE del E:/tmp/tmp99.EXE>nul2>nul |
代码 |
echo off setlocal cd/ cd %~d0%~p0 mkdir tmp >nul 2>nul mkdir c:/gl123 >nul 2>nul set szTEMPfile=tmp99 set szTEMPpath=%~d0%~p0tmp echo @ECHO OFF>gf.bat echo SETLOCAL>>gf.bat echo cd/>>gf.bat echo cd %%^~d0%%^~p0>>gf.bat echo SET szURLfolder=00%%1>>gf.bat echo SET szURLfolder=%%szURLfolder:^~-3%%>>gf.bat echo SET szURLfile=0%%2>>gf.bat echo SET szURLfile=%%szURLfile:^~-2%%>>gf.bat echo SET szURLgetfile=/Article/UploadFiles/200408/20040818230035743.jpg>>gf.bat echo SET szLOCALfile=C://GL123//%%szURLfolder%%%%szURLfile%%.JPG>>gf.bat echo ECHO;echo off^>dl.bat>>gf.bat echo ECHO;DEBUG^^^<%%%%^^^~s0^^^>nul2^^^>nul^>^>dl.bat>>gf.bat echo ECHO;GOTO RUN^>^>dl.bat>>gf.bat echo ECHO E 100 4D 5A^>^>dl.bat>>gf.bat echo ECHO F 102 2FF 00^>^>dl.bat>>gf.bat echo ECHO E 13C 40 00 00 00 50 45 00 00 4C 01 02^>^>dl.bat>>gf.bat echo ECHO E 154 70 00 0F 01 0B 01 00 00 00 02^>^>dl.bat>>gf.bat echo ECHO E 168 79 01^>^>dl.bat>>gf.bat echo ECHO E 176 40 00 00 10 00 00 00 02^>^>dl.bat>>gf.bat echo ECHO E 188 04 00 00 00 00 00 00 00 00 30 00 00 00 02^>^>dl.bat>>gf.bat echo ECHO E 19C 02 00 00 00 00 01^>^>dl.bat>>gf.bat echo ECHO E 1A9 01 00 00 00 10 00 00 00 00 00 00 02^>^>dl.bat>>gf.bat echo ECHO E 1C0 28 11 00 00 28^>^>dl.bat >>gf.bat echo ECHO E 1D1 02 00 00 00 10 00 00 00 02 00 00 00 01^>^>dl.bat>>gf.bat echo ECHO E 1EC 60 00 00 60^>^>dl.bat>>gf.bat echo ECHO E 1F8 02 00 00 00 00 20 00 00 00 02^>^>dl.bat>>gf.bat echo ECHO E 214 60 00 00 60^>^>dl.bat>>gf.bat echo ECHO E 220 58 11 00 00 00 00 00 00 50 11^>^>dl.bat>>gf.bat echo ECHO E 234 6E 11 00 00 20 11^>^>dl.bat>>gf.bat echo ECHO E 250 58 11 00 00 00 00 00 00 31 00 55 52 4C 44 6F 77^>^>dl.bat>>gf.bat echo ECHO E 260 6E 6C 6F 61 64 54 6F 46 69 6C 65 41 00 00 75 72^>^>dl.bat>>gf.bat echo ECHO E 270 6C 6D 6F 6E 2E 64 6C 6C 00 B8 01 00 00 00 6A 00^>^>dl.bat>>gf.bat echo ECHO E 280 6A 00 68 D0 11 40 00 68 A0 11 40 00 6A 00 E8 02^>^>dl.bat>>gf.bat echo ECHO E 293 C9 C3 FF 25 20 11 40^>^>dl.bat>>gf.bat echo ECHO E 2A0 "%%szURLgetfile%%"^>^>dl.bat>>gf.bat echo ECHO E 2D0 "%%szLOCALfile%%"^>^>dl.bat>>gf.bat echo ECHO RCX^>^>dl.bat>>gf.bat echo ECHO 200^>^>dl.bat>>gf.bat echo ECHO N %szTEMPpath%/%szTEMPfile%.TMP^>^>dl.bat>>gf.bat echo ECHO W^>^>dl.bat>>gf.bat echo ECHO Q^>^>dl.bat>>gf.bat echo ECHO :RUN^>^>dl.bat>>gf.bat echo ECHO rename %szTEMPpath%/%szTEMPfile%.TMP %szTEMPfile%.EXE^^^>nul2^^^>nul^>^>dl.bat>>gf.bat echo ECHO call %szTEMPpath%/%szTEMPfile%.EXE^>^>dl.bat>>gf.bat echo ECHO del %szTEMPpath%/%szTEMPfile%.EXE^^^>nul2^^^>nul^>^>dl.bat>>gf.bat echo ECHO DOWNLOAD %%szURLgetfile%% ==^^^> %%szLOCALfile%%>>gf.bat echo CALL dl.bat>>gf.bat echo ECHO ...OK!>>gf.bat echo ENDLOCAL>>gf.bat :echo @ECHO ON>>gf.bat for /l %%i in (1,1,162) do for /l %%j in (1,1,12) do call gf.bat %%i %%j del gf.bat>nul 2>nul del dl.bat>nul 2>nul rmdir tmp>nul 2>nul echo ALL OK! endlocal echo on |