阅读:2189回复:1
修改whg的文章(第二次):枚举局域网
;Email:leguanyuan@126.com
;QQ:112426112 ;websites:http://hi.baidu.com/correy ;rc me.rc ;ml /coff test.asm /link /subsystem:windows me.res .386 .model flat,stdcall include user32.inc include mpr.inc includelib user32.lib includelib mpr.lib .code EnumNet proc pushad push 2 invoke WNetOpenEnumA,2,1,2,ebp,esp pop esi jnz OError mov edi,100h sub esp,edi mov ebp,esp next:push 1h mov eax,esp push edi invoke WNetEnumResourceA,esi,eax,ebp,esp pop ecx pop ecx jnz Over invoke MessageBoxA,0,[ebp+20],[ebp+28],0 call Enumnet jmp next Over:invoke WNetCloseEnum,esi add esp,edi OError:popad ret EnumNet endp Start:push [esp] mov ebp,0 call EnumNet pop esp ret end Start |
|
沙发#
发布于:2010-04-15 10:16
这个太简单了!
|
|