标题:[求助]见XXX自动关闭IE或软件
只看楼主
AV终结者
Rank: 1
等 级:新手上路
帖 子:36
专家分:0
注 册:2007-11-3
 问题点数:0 回复次数:10 
[求助]见XXX自动关闭IE或软件

黑客是怎样做到见"杀毒,金山,卡巴,瑞星..."自动关闭IE浏览器或软件

如果用VB编写 见"XXX" 自动关闭,能做到吗?高手指导一下

纯属感兴趣,谢谢~```

搜索更多相关主题的帖子: XXX 卡巴 瑞星 黑客 金山 
2007-11-06 08:41
随风逐流
Rank: 16Rank: 16Rank: 16Rank: 16
来 自:passerby
等 级:版主
威 望:8
帖 子:4054
专家分:271
注 册:2007-6-13
得分:0 

关IE简单,想关杀毒软件,我看这样的VB高人很少出现.


[url=http://www./html/6/6694/]极道金丹[/url][url=http://www./html/2/2849/]九阴九阳[/url][url=http://www./html/2/2596/]凡人修仙传[/url]
2007-11-06 08:46
思考
Rank: 1
等 级:新手上路
威 望:1
帖 子:66
专家分:0
注 册:2007-9-29
得分:0 
api:遍历进程,然后TerminateProcess把它Kill
CreateToolhelp32Snapshot
Process32First
Process32Next
OpenProcess
TerminateProcess
CloseHandle
2007-11-06 09:10
思考
Rank: 1
等 级:新手上路
威 望:1
帖 子:66
专家分:0
注 册:2007-9-29
得分:0 

或者:

findwindow查找,postmessage关闭

2007-11-06 09:13
AV终结者
Rank: 1
等 级:新手上路
帖 子:36
专家分:0
注 册:2007-11-3
得分:0 

详细一点啊
关IE怎么关


2007-11-07 22:11
随风逐流
Rank: 16Rank: 16Rank: 16Rank: 16
来 自:passerby
等 级:版主
威 望:8
帖 子:4054
专家分:271
注 册:2007-6-13
得分:0 

关IE,先FINDWINDOW找到这个IE浏览器的句柄,然后SENDMESSAGE发个关闭消息过去,就OK了.


[url=http://www./html/6/6694/]极道金丹[/url][url=http://www./html/2/2849/]九阴九阳[/url][url=http://www./html/2/2596/]凡人修仙传[/url]
2007-11-08 09:04
AV终结者
Rank: 1
等 级:新手上路
帖 子:36
专家分:0
注 册:2007-11-3
得分:0 

谢谢啊 如果能关软件就好了


2007-11-08 12:22
随风逐流
Rank: 16Rank: 16Rank: 16Rank: 16
来 自:passerby
等 级:版主
威 望:8
帖 子:4054
专家分:271
注 册:2007-6-13
得分:0 

普通一般的软件能关掉.


[url=http://www./html/6/6694/]极道金丹[/url][url=http://www./html/2/2849/]九阴九阳[/url][url=http://www./html/2/2596/]凡人修仙传[/url]
2007-11-08 12:54
心中有剑
Rank: 2
等 级:新手上路
威 望:5
帖 子:611
专家分:0
注 册:2007-5-18
得分:0 

Option Explicit
Private Declare Function CreateToolhelp32Snapshot Lib "kernel32" (ByVal dwFlags As Long, ByVal th32ProcessID As Long) As Long
Private Declare Function Process32First Lib "kernel32" (ByVal hSnapshot As Long, lppe As PROCESSENTRY32) As Long
Private Declare Function Process32Next Lib "kernel32" (ByVal hSnapshot As Long, lppe As PROCESSENTRY32) As Long
Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As Long
Private Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal blnheritHandle As Long, ByVal dwAppProcessId As Long) As Long
Private Declare Function TerminateProcess Lib "kernel32" (ByVal ApphProcess As Long, ByVal uExitCode As Long) As Long

Private Type PROCESSENTRY32
dwSize As Long
cntUsage As Long
th32ProcessID As Long
th32DefaultHeapID As Long
th32ModuleID As Long
cntThreads As Long
th32ParentProcessID As Long
pcPriClassBase As Long
dwFlags As Long
szExeFile As String * 1024
End Type

Private Const TH32CS_SNAPHEAPLIST = &H1
Private Const TH32CS_SNAPPROCESS = &H2
Private Const TH32CS_SNAPTHREAD = &H4
Private Const TH32CS_SNAPMODULE = &H8
Private Const TH32CS_SNAPALL = (TH32CS_SNAPHEAPLIST Or TH32CS_SNAPPROCESS Or TH32CS_SNAPTHREAD Or TH32CS_SNAPMODULE)
Private Const TH32CS_INHERIT = &H80000000
Private Declare Function RegisterWindowMessage Lib "user32" Alias "RegisterWindowMessageA" (ByVal lpString As String) As Long
Private WM_TASKBARCREATED As Long
Dim llPId As Long
Private Function FindPro(processName As String) As Boolean
Dim my As PROCESSENTRY32
Dim l As Long
Dim l1 As Long
Dim mName As String
Dim I As Integer
l = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0)
If l Then
my.dwSize = 1060
If (Process32First(l, my)) Then '遍历开始
Do
I = InStr(1, my.szExeFile, Chr$(0))
mName = UCase$(Left$(my.szExeFile, I - 1))
If mName = UCase$(processName) Then
llPId = my.th32ProcessID
FindPro = True
Exit Do
End If
Loop Until (Process32Next(l, my) < 1)
End If
l1 = CloseHandle(l)
End If
End Function
Private Sub Command1_Click()
Do While FindPro("iexplore.exe")
Shell "ntsd -c q -p " & llPId
DoEvents
Loop
End Sub

要关软件自己把进程名放进去就可以了


2007-11-08 18:04
随风逐流
Rank: 16Rank: 16Rank: 16Rank: 16
来 自:passerby
等 级:版主
威 望:8
帖 子:4054
专家分:271
注 册:2007-6-13
得分:0 
LS的兄弟,你那还缺通过窗体CAPTION查找对应的进程ID呢.
再说IE的进程名都差不多,你要把它们全关了?

[url=http://www./html/6/6694/]极道金丹[/url][url=http://www./html/2/2849/]九阴九阳[/url][url=http://www./html/2/2596/]凡人修仙传[/url]
2007-11-08 18:09



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-183814-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.135161 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved