设为首页  加入收藏  联系我们 繁體中文  

黑客软件:

  漏洞扫描 | 木马间谍 | 加密解密 | 远程控制 | 破坏攻击 | 杀毒软件 | 防火墙类 | OICQ专区 | 黑客必备 | 常用工具 | 网吧攻击
文章中心:   最新资讯 | 黑客技术 | 电脑基础 | 菜鸟文摘 | 网络安全 | 网络技巧 | QQ技巧 | OQ空间代码 | 免费资源 | 编程世界 | 建站技术
素材源码:   论坛相关 | ASP源码 | CGI 源码 | NET 源码 | PHP 源码 | 酷站素材 | 字体素材 | 图片素材 | 友情发布 | 网页模版 | 建站软件
教程动画:   黑客教程 | 黑客编程 | 网站入侵 | 菜鸟教程 | 入侵教程 | 破解教程 | 电子书籍 | 网页制作 | 高级会员 | 综合教程 | 本站原创


   

  您当前的位置:中华隐士黑客联盟 -> 黑客技术 -> 黑客技术 -> 文章内容 [站内搜索]  

 
一个扩展Dir命令的Vbs脚本
作者:不详  来源:网络  发布时间:2008-5-27 9:09:39  发布人:www.hack86.com
一个扩展Dir命令的Vbs脚本 
 

‘CMD下的dir好像没法列出从某段时间到某段时间的文件,所以写了这个小东东  

set Arg=Wscript.Arguments  
If Arg.Count=0 then  
Wscript.echo chr(9)&chr(9)&space(4)&”Xdir v0.1″  
Wscript.echo “”  
Wscript.echo chr(9)&”cscript dir.vbs path time1 time2 ext”  
Wscript.echo chr(9)&”cscript dir.vbs d:\test 20080101 20080430 doc”  
Wscript.Quit  
End If  
Path=Arg(0)  
Time1=Arg(1)  
Time2=Arg(2)  
Ext=Arg(3)  
FileTotal = 0  
DirTotal = 0  
FileTotalsize=0  
TimeSpend = Timer  
myFind Path  
TimeSpend = round(Timer - TimeSpend,2)  
txtResult = “搜索完成!” & vbCrLf & “共找到文件:” & FileTotal & “个.” & vbCrLf & “共搜索目录:” & DirTotal & “个.” &vbcrlf&”文件总数大小”&FormatNumber(FileTotalsize/1024,0)&”kB”& vbCrLf & “用时:” & TimeSpend & “秒.”  

wscript.echo txtResult  

Sub myFind(ByVal thePath)  

Dim fso, myFolder, myFile, curFolder  
Set fso = wscript.CreateObject(”scripting.filesystemobject”)  
Set curFolders = fso.getfolder(thePath)  
DirTotal = DirTotal + 1  
If curFolders.Files.Count > 0 Then  
For Each myFile In curFolders.Files  
If InStr(1, LCase(Fso.GetExtensionName(myFile.Name)), ext) > 0 And Gtime(myFile.DateCreated) >Time1 And Gtime(myFile.DateCreated)<Time2 Then  
wscript.echo FormatPath(thePath) & “\” & myFile.Name  
FileTotal = FileTotal + 1  
FileTotalsize = FileTotalsize + myFile.size  
End If  
Next  
End If  

If curFolders.subfolders.Count > 0 Then  
For Each myFolder In curFolders.subfolders  
myFind FormatPath(thePath) & “\” & myFolder.Name  
Next  
End If  

End Sub  

Function FormatPath(ByVal thePath)  

thePath = Trim(thePath)  
FormatPath = thePath  
If Right(thePath, 1) = “\” Then FormatPath = Mid(thePath, 1, Len(thePath) - 1)  

End Function  

Function Gtime(str)  
str=FormatDateTime(str,2)  
str1=Split(str,”-”,-1,1)  
If len(str1(1))=1 then str11=”0″&str1(1)  
If len(str1(2))=1 then str12=”0″&str1(2)  
Gtime=str1(0)&str11&str12  
End Function  
[] [返回上一页] [打 印] [收 藏]
  [相关文章评论]    (评论内容只代表网友观点,与本站立场无关!) [更多评论...]
 

  lcx写的一个暴jsp源..
一个弹窗口的流氓软..
一个变态的垃圾清除..
一个web木马样本获取..
我们不在沉默 给入侵..
绝密!为WindowsXP系..
一个VBS病毒生成器核..
一个IE浏览器漏洞的..
FD-一个人绽放
QQ空间大图模块---我..


 
免费获得Q币的最新方法
最新免费在线看的电影网站集绵
不用木马,轻松万能偷daoQQ号码
最新QQ空间4.0全屏版效果图!!
新免蟆Q秀,刷红钻的方法
黑客快速入门(强烈推荐)
QQ密码本地破解的原理和方法
18岁少女欲6000元卖处女身 救患血..
免费QQ蓝钻体验(附考试答案)
8款QQ空间免费开场动画
 
一次简单的反入侵测试 06-01
完整的驱动感染.code.编译通过 06-01
鼓山第二届"补天杯"健康登山有奖.. 06-01
想到个利用webshell跑系统口令的.. 06-01
陕西地震信息网遭黑客攻击 紧急发.. 06-01
国外黑客利用银行漏洞 一次偷盗一.. 06-01
微软何迪生:中国很多企业对信息.. 06-01
作弊者的噩梦!反作弊手段的高科.. 06-01
Google提供网站恶意软件侦测服务.. 06-01
总结:全面解读服务器安全的定义.. 06-01
 
关于本站 网站帮助 广告合作 下载声明 友情连接 网站地图 访客留言 论坛登录
〖中华隐士黑客联盟〗,Copyright © 2006-2010 WwW.Hack86.Com 闽ICP备:06023304号
站长:小质 QQ:771760,软件发布MAIL:Hack086@21cn.com