While 1
Run(@ComSpec &"/c start arp -s 192.168.0.1 00-0e-0c-b9-69-48", "", @SW_HIDE)
Sleep(1000)
_ReduceMemory(@AutoItPID)
WEnd
Func _ReduceMemory($i_PID = -1) ;<==释放内存函数
If $i_PID <> -1 Then
Local $ai_Handle = DllCall("kernel32.dll", 'int', 'OpenProcess', 'int', 0x1f0fff, 'int', False, 'int', $i_PID)
Local $ai_Return = DllCall("psapi.dll", 'int', 'EmptyWorkingSet', 'long', $ai_Handle[0])
DllCall('kernel32.dll', 'int', 'CloseHandle', 'int', $ai_Handle[0])
Else
Local $ai_Return = DllCall("psapi.dll", 'int', 'EmptyWorkingSet', 'long', -1)
EndIf
Return $ai_Return[0]
EndFunc
一秒绑定一次...加在维护通道里 CPU和内存只占用一小部分啦 可以伪装成系统进程,免得被客人结束掉~
[ 本帖最后由 范统.贾 于 2008-12-26 16:11 编辑 ] |