📄 subject_37598.htm
字号:
<p>
序号:37598 发表者:rongrong 发表日期:2003-04-26 09:27:22
<br>主题:高手救命!怎么屏蔽端口啊(200分悬赏)
<br>内容:想做一个软件,用来屏蔽端口<BR>比如屏蔽了80就上不了网页了<BR>屏蔽了23就上不了bbs<BR>屏蔽了4000qq就出不去了<BR>不知道怎么实现?
<br><a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p>
<hr size=1>
<blockquote><p>
回复者:rongrong 回复日期:2003-04-26 09:28:38
<br>内容:怎么用vc或vb实现<BR>有源代码更好了<BR>谢谢了
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:管理员 回复日期:2003-04-26 12:22:49
<br>内容:win2000<BR>中直接通过网络属性,然后设置TCP设置,高级选项中可以设置不允许的端口。<BR><BR>need restart OS
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:rongrong 回复日期:2003-04-26 12:59:26
<br>内容:怎样通过编程实现,而且您的办法在98下行不通
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:rongrong 回复日期:2003-04-26 22:58:38
<br>内容:哪位高手救救俺啊!
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:dr0 回复日期:2003-04-26 23:01:10
<br>内容:不容易.
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:rongrong 回复日期:2003-04-27 02:35:17
<br>内容:我知道不容易,所以才请高手帮忙啊
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:neilgan 回复日期:2003-04-27 09:48:25
<br>内容:How much time can you spend on this? What's your programming ability? If I needed to do it from scratch, it would take me at least 1 week.<BR><BR>1.Use a global hook to inject a dll to all the processes running. (only this way can run on both NT and 9x)<BR>2.In the DllMain of the hook dll, modify the entry points of "connect, sendto, etc." for every module in the process to your function.<BR>3.Do whatever you want in your function.<BR>
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:rongrong 回复日期:2003-04-27 10:42:47
<br>内容:楼上说的是利用全局钩子吧<BR>小弟愚笨,但是第二步看不懂,能否说详细点,不胜感激<BR>
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
<font color=red>答案被接受</font><br>回复者:neilgan 回复日期:2003-04-27 11:13:43
<br>内容:I wrote a similar program before, but because the copyright of it no longer belonged to me, I cann't send the program to you.<BR><BR>You should use VirtualQuery to search for every MEMORY_BASIC_INFORMATION in the process, you can find the HANDLE for every module in the process this way.<BR><BR>Then, use "pImportDesc=(PIMAGE_IMPORT_DESCRIPTOR)ImageDirectoryEntryToData(hModule, TRUE,IMAGE_DIRECTORY_ENTRY_IMPORT,&dwSize)" to find the entroy point table for the module. Search for "wsock32.dll" in this table, Then use WriteProcessMemory to modify the entry points for "sendto,connect,etc.." to your functions.<BR><BR>Don't modify the entry points of wsock32.dll for your own dll, because you need to call wsock functions directory.<BR><BR>Trying to control other processes is hard, but very interesting.<BR>
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:yhsz 回复日期:2003-04-28 23:40:03
<br>内容:这个容易,有空了写个程序给你
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -