返回列表 回复 发帖

已知病毒免疫工具(autoit3)


  1. #NoTrayIcon
  2. #include <GuiConstants.au3>
  3. #include<process.au3>
  4. FileInstall("pic.jpg",@TempDir & "\pic.jpg")
  5. GuiCreate("要病毒免疫工具", 392, 350)
  6. $Pic_1 = GuiCtrlCreatePic(@TempDir & "\pic.jpg", 0, 0, 400, 80,$SS_BLACKRECT)
  7. $Group_1 = GuiCtrlCreateGroup("请输入病毒的程序全名(包括后辍 如:Logo1_.exe)", 0, 110, 392, 185)
  8. $Label_1 = GUICtrlCreateInput("已知病毒免疫工具,提示:本程序只能免疫10个病毒,也可禁用其它程序。", 0, 82, 392, 17,-1,$WS_EX_STATICEDGE)
  9. GUICtrlSetState(-1, $GUI_DISABLE)
  10. GUICtrlCreateLabel("一.",10,145,15,15)
  11. GUICtrlSetFont(-1,10)
  12. $Input_1 = GuiCtrlCreateInput("", 30, 140, 150, 20,-1,$WS_EX_STATICEDGE)
  13. GUICtrlCreateLabel("二.",200,145,15,15)
  14. GUICtrlSetFont(-1,10)
  15. $Input_2 = GuiCtrlCreateInput("", 220, 140, 150, 20,-1,$WS_EX_STATICEDGE)
  16. GUICtrlCreateLabel("三.",10,175,15,15)
  17. GUICtrlSetFont(-1,10)
  18. $Input_3 = GuiCtrlCreateInput("", 30, 170, 150, 20,-1,$WS_EX_STATICEDGE)
  19. GUICtrlCreateLabel("四.",200,175,15,15)
  20. GUICtrlSetFont(-1,10)
  21. $Input_4 = GuiCtrlCreateInput("", 220, 170, 150, 20,-1,$WS_EX_STATICEDGE)
  22. GUICtrlCreateLabel("五.",10,205,15,15)
  23. GUICtrlSetFont(-1,10)
  24. $Input_5 = GuiCtrlCreateInput("", 30, 200, 150, 20,-1,$WS_EX_STATICEDGE)
  25. GUICtrlCreateLabel("六.",200,205,15,15)
  26. GUICtrlSetFont(-1,10)
  27. $Input_6 = GuiCtrlCreateInput("", 220, 200, 150, 20,-1,$WS_EX_STATICEDGE)
  28. GUICtrlCreateLabel("七.",10,235,15,15)
  29. GUICtrlSetFont(-1,10)
  30. $Input_7 = GuiCtrlCreateInput("", 30, 230, 150, 20,-1,$WS_EX_STATICEDGE)
  31. GUICtrlCreateLabel("八.",200,235,15,15)
  32. GUICtrlSetFont(-1,10)
  33. $Input_8 = GuiCtrlCreateInput("", 220, 230, 150, 20,-1,$WS_EX_STATICEDGE)
  34. GUICtrlCreateLabel("九.",10,265,15,15)
  35. GUICtrlSetFont(-1,10)
  36. $Input_9 = GuiCtrlCreateInput("", 30, 260, 150, 20,-1,$WS_EX_STATICEDGE)
  37. GUICtrlCreateLabel("十.",200,265,15,15)
  38. GUICtrlSetFont(-1,10)
  39. $Input_10 = GuiCtrlCreateInput("", 220, 260, 150, 20,-1,$WS_EX_STATICEDGE)
  40. $button_1=GUICtrlCreateButton("禁用以上程序",40,300,80,25,$BS_DEFPUSHBUTTON)
  41. $button_2=GUICtrlCreateButton("启用以上程序",130,300,80,25,$BS_DEFPUSHBUTTON)
  42. $button_3=GUICtrlCreateButton("清空以上内容",220,300,80,25,$BS_DEFPUSHBUTTON)
  43. $button_4=GUICtrlCreateButton("退出程序",310,300,80,25,$BS_DEFPUSHBUTTON)
  44. $about=GUICtrlCreateLabel('---关于我们',10,333)
  45. GUICtrlSetColor(-1,0x6600FF)
  46. GUICtrlSetCursor(-1,0)
  47. GuiSetState()
  48. load_data()
  49. While 1

  50. $1=GUICtrlRead($Input_1)
  51. $2=GUICtrlRead($Input_2)
  52. $3=GUICtrlRead($Input_3)
  53. $4=GUICtrlRead($Input_4)
  54. $5=GUICtrlRead($Input_5)
  55. $6=GUICtrlRead($Input_6)
  56. $7=GUICtrlRead($Input_7)
  57. $8=GUICtrlRead($Input_8)
  58. $9=GUICtrlRead($Input_9)
  59. $10=GUICtrlRead($Input_10)

  60. $msg = GuiGetMsg()
  61. Select
  62. Case $msg = $GUI_EVENT_CLOSE or $msg=$button_4
  63.   ExitLoop
  64. case $msg=$button_1
  65.   RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer","DisallowRun","REG_DWORD","00000001")
  66.   RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun","1","REG_SZ",$1)
  67.   RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun","2","REG_SZ",$2)
  68.   RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun","3","REG_SZ",$3)
  69.   RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun","4","REG_SZ",$4)
  70.   RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun","5","REG_SZ",$5)
  71.   RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun","6","REG_SZ",$6)
  72.   RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun","7","REG_SZ",$7)
  73.   RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun","8","REG_SZ",$8)
  74.   RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun","9","REG_SZ",$9)
  75.   RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun","10","REG_SZ",$10)
  76.   _RunDOS("ecedit /refreshpolicy machine_policy /enforce")
  77.   MsgBox(48,"提示","恭喜!你所填写的已知病毒全部免疫成功。")
  78. case $msg=$button_2
  79.   RegDelete("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer","DisallowRun")
  80.   RegDelete("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun")
  81.   MsgBox(48,"提示","已经解除病毒免疫功能!")
  82. case $msg=$button_3
  83.   GUICtrlSetData($Input_1,"")
  84.   GUICtrlSetData($Input_2,"")
  85.   GUICtrlSetData($Input_3,"")
  86.   GUICtrlSetData($Input_4,"")
  87.   GUICtrlSetData($Input_5,"")
  88.   GUICtrlSetData($Input_6,"")
  89.   GUICtrlSetData($Input_7,"")
  90.   GUICtrlSetData($Input_8,"")
  91.   GUICtrlSetData($Input_9,"")
  92.   GUICtrlSetData($Input_10,"")
  93. Case $msg=$about
  94.   Set_About()
  95. EndSelect
  96. WEnd
  97. Exit

  98. Func load_data()
  99. $a=RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun","1")
  100. $b=RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun","2")
  101. $c=RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun","3")
  102. $d=RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun","4")
  103. $e=RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun","5")
  104. $f=RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun","6")
  105. $g=RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun","7")
  106. $h=RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun","8")
  107. $i=RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun","9")
  108. $j=RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun","10")
  109.         GUICtrlSetData($Input_1,$a)
  110.   GUICtrlSetData($Input_2,$b)
  111.   GUICtrlSetData($Input_3,$c)
  112.   GUICtrlSetData($Input_4,$d)
  113.   GUICtrlSetData($Input_5,$e)
  114.   GUICtrlSetData($Input_6,$f)
  115.   GUICtrlSetData($Input_7,$g)
  116.   GUICtrlSetData($Input_8,$h)
  117.   GUICtrlSetData($Input_9,$i)
  118.   GUICtrlSetData($Input_10,$j)
  119. endfunc

  120. Func Set_About()
  121.      $GUI_About = GUICreate ("关于我们", 310, 90, Default, Default, $WS_CAPTION, $WS_EX_TOPMOST)
  122.     GUICtrlCreateLabel ("冰心痴工作室”一个致力于网吧服务的团队!" & @CRLF & @CRLF & "   冰心痴 制作 QQ:48983200 65363256", 60, 10)
  123.     GUICtrlCreateIcon ("shell32.dll", 221, 10, 10)
  124.     $GUI_About_OK = GUICtrlCreateButton ("确 定", 135, 60, 75, 23,$BS_FLAT)
  125.     GUISetState ()
  126.     While 1
  127.         $msg = GUIGetMsg ()
  128.         Select
  129.             Case  $msg=$GUI_EVENT_CLOSE OR  $msg=$GUI_About_OK
  130.                 GUIDelete ($GUI_About)
  131.                 ExitLoop
  132.         EndSelect      
  133.     WEnd  
  134. EndFunc
复制代码
感谢Baidu,Google,Dreams8给我这次机会!
还要感谢我的爸爸妈妈!
HOHO
返回列表