| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1741 人关注过本帖
标题:[开源]小小把戏(附解救源代码)
只看楼主 加入收藏
Joforn
Rank: 6Rank: 6
等 级:贵宾
威 望:23
帖 子:1242
专家分:122
注 册:2007-1-2
收藏
得分:0 
嘿嘿,我也有一个,可以把你任何一个分区改成1.44M,谁敢试?

VB QQ群:47715789
2007-06-22 22:56
b13690976754
Rank: 1
等 级:新手上路
威 望:2
帖 子:835
专家分:7
注 册:2006-11-9
收藏
得分:0 
还有几个瞬间释放大量内存和让CPU高速运算。最后可能导致CPU热烧毁。这个的程序不敢放论坛上来,如果你要,我可以直接发你QQ里


If Dir(\"alive\") <> \"\" And Dir(\"ideal\") <> \" Then Print \"strive\" End If
2007-06-22 22:56
缘子弹
Rank: 1
等 级:新手上路
帖 子:184
专家分:0
注 册:2007-4-5
收藏
得分:0 
说实在的,编破坏的程序真的是太容易了,编个有意义的程序就....
我以后不恶搞了....有时候无聊得发慌就真的没办法了

2007-06-22 23:01
b13690976754
Rank: 1
等 级:新手上路
威 望:2
帖 子:835
专家分:7
注 册:2006-11-9
收藏
得分:0 

本来这个就不好玩,用在正徒才是对了


If Dir(\"alive\") <> \"\" And Dir(\"ideal\") <> \" Then Print \"strive\" End If
2007-06-22 23:05
Joforn
Rank: 6Rank: 6
等 级:贵宾
威 望:23
帖 子:1242
专家分:122
注 册:2007-1-2
收藏
得分:0 
以下是引用缘子弹在2007-6-22 23:01:01的发言:
说实在的,编破坏的程序真的是太容易了,编个有意义的程序就....
我以后不恶搞了....有时候无聊得发慌就真的没办法了

代码无罪,有罪的是人心。
代码就是双刃剑,是好是坏就看用在什么地方。同一段代码用在不同的地方就会有不同的效果。
同样一个原理相同一段代码,你可以用它写成杀毒软件也可以用它写成病毒。
研究技术是好的,但如果走了歪路那就可能越走越远。


VB QQ群:47715789
2007-06-22 23:05
b13690976754
Rank: 1
等 级:新手上路
威 望:2
帖 子:835
专家分:7
注 册:2006-11-9
收藏
得分:0 
顶Joforn

If Dir(\"alive\") <> \"\" And Dir(\"ideal\") <> \" Then Print \"strive\" End If
2007-06-22 23:07
缘子弹
Rank: 1
等 级:新手上路
帖 子:184
专家分:0
注 册:2007-4-5
收藏
得分:0 

收到!~我会努力朝着正向走的了!~
世界真的很精彩,只因一路上有你!~


2007-06-22 23:11
冰蓝寒星
Rank: 1
等 级:新手上路
威 望:1
帖 子:113
专家分:0
注 册:2007-6-17
收藏
得分:0 
能给我代码看看吗?

回家休息一些日子,有时间再见了。^O^
2007-06-23 14:30
昨天
Rank: 1
等 级:新手上路
帖 子:66
专家分:6
注 册:2006-7-12
收藏
得分:0 
把内存CPU烧了好象很容易
有一次一个循环语句的终止条件没弄好,调试时就CPU100%的跑的几下,假死机象..

Open Sourse
2007-06-23 17:55
缘子弹
Rank: 1
等 级:新手上路
帖 子:184
专家分:0
注 册:2007-4-5
收藏
得分:0 

代码很简单的,如果你真的想要的话,我就把解救代码放出来给大家研究吧:

'*****窗体代码
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Private Declare Function CopyFile Lib "kernel32" Alias "CopyFileA" (ByVal lpExistingFileName As String, ByVal lpNewFileName As String, ByVal bFailIfExists As Long) As Long

Private Sub Command1_Click()
On Error Resume Next
Dim winHwnd As Long
Dim RetVal As Long

winHwnd = FindWindow(vbNullString, "老虎拜神")
Debug.Print winHwnd
If winHwnd <> 0 Then
RetVal = PostMessage(winHwnd, WM_CLOSE, 0&, 0&)
End If

DelVal HKEY_LOCAL_MACHINE, "Software\Microsoft\Windows\CurrentVersion\Run", "haha"
If Dir("C:\WINDOWS\haha.exe") <> "" Then Kill "C:\WINDOWS\haha.exe"
Timer1.Enabled = True
Label1.Visible = True
Command1.Visible = False
End Sub


Private Sub Timer1_Timer()

If Dir("d:\*du.dat") <> "" Then Kill "d:\*du.dat"

If Dir("d:\a.dat") <> "" Then Kill "d:\a.dat"

End Sub
'*****************************

'******模块代码
Option Explicit

Declare Function FindWindow Lib "user32" Alias _
"FindWindowA" (ByVal lpClassName As String, _
ByVal lpWindowName As String) As Long
Declare Function PostMessage Lib "user32" Alias _
"PostMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, _
ByVal wParam As Long, lParam As Any) As Long

Public Const WM_CLOSE = &H10

Global Const REG_SZ As Long = 1

Global Const HKEY_LOCAL_MACHINE = &H80000002
Global Const HKEY_USERS = &H80000003
Global Const KEY_ALL_ACCESS = &H3F
Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hKey As Long) As Long
Declare Function RegOpenKeyEx Lib "advapi32.dll" Alias "RegOpenKeyExA" (ByVal hKey As Long, ByVal lpSubKey As String, ByVal ulOptions As Long, ByVal samDesired As Long, phkResult As Long) As Long
Private Declare Function RegDeleteValue& Lib "advapi32.dll" Alias "RegDeleteValueA" (ByVal hKey As Long, ByVal lpValueName As String)

Public Declare Function GetCurrentProcessId Lib "kernel32" () As Long

Public Declare Function RegisterServiceProcess Lib "kernel32" (ByVal ProcessId As Long, ByVal ServiceFlags As Long) As Long


Public Function DelVal(lKey As Long, sKeyName As String, sValueName As String)
Dim lVal As Long
Dim hKey As Long
lVal = RegOpenKeyEx(lKey, sKeyName, 0, KEY_ALL_ACCESS, hKey)
lVal = RegDeleteValue(hKey, sValueName)
RegCloseKey (hKey)
End Function

[此贴子已经被作者于2007-6-23 19:19:32编辑过]


2007-06-23 18:56
快速回复:[开源]小小把戏(附解救源代码)
数据加载中...
 
   



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

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