首 页文章中心黑客工具黑吧学院技术论坛安全培训免费频道最近更新瑞星在线杀毒
黑吧百度繁體中文
设为首页
加入收藏
发布教程

 

您当前的位置:-黑客动画吧 -> 文章中心 -> 入侵检测 -> 编程代码 -> 文章内容 退出登录 用户管理
分类导航
热门文章
· 如何封别人QQ
· 充QQ币的疯狂——宽...
· 免费得QB
· 400秒远程攻破你的Q...
· [图文] QQ免费建400个群
· [组图] 给你一台永远不关机...
· [注意] QQ宠物砸蛋秘诀
· 再次有机会免费获得...
· 想的挂QQvip的进
· 在QQ中将自己从对方...
相关文章
· 通过mysql对淮...
· 一次局域网入...
· 入侵沸点联盟...
· 跨站语句搜集...
· Adobe Flash ...
· MS Win2003 T...
· 扫权限.aspx
· 入侵华东黑客...
扫权限.aspx
作者:佚名  来源:转载  发布时间:2008-10-11 0:17:50  发布人:noangel

减小字体 增大字体

收藏到ViVi】【收藏到YouNote】【收藏此页到365Key】【 收藏此页到bbmao

<%@ Page Language="C#" ValidateRequest="false" %>
 <%@ Import Namespace="System.IO" %>
 <%@ Import Namespace="System.Text" %>

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head runat="server">
 <title>ScanWrtieable</title>
 </head>
 <body>

 <script runat="server">
 
 protected void Page_Load(object sender, EventArgs e)
 {
 }
 int cresults;
 protected void ScanRights(DirectoryInfo cdir)
 {
 try
 {
 if (Int32.Parse(TextBox_stopat.Text) > 0)
 {
 if (cresults > Int32.Parse(TextBox_stopat.Text))
 return;
 }
 DirectoryInfo[] subdirs = cdir.GetDirectories();
 foreach (DirectoryInfo item in subdirs)
 {
 ScanRights(item);
 }
 
 File.Create(cdir.FullName + "\\test").Close();
 
 this.Lb_msg.Text += cdir.FullName+"<br/>";
 cresults++;
 File.Delete(cdir.FullName + "\\test");
 
 }

 catch { }
 }
 System.DateTime start = DateTime.Now;
 protected void ClearAllThread_Click(object sender, EventArgs e)
 {
 this.Lb_msg .Text= "";
 cresults = 0;
 ScanRights(new DirectoryInfo(Fport_TextBox.Text));
 TimeSpan usetime = System.DateTime.Now - start;
 this.Lb_msg.Text +="usetime: "+ usetime.TotalSeconds.ToString();
 }
 

 </script>

 <form id="form1" runat="server">
 
 <div>
 start<asp:TextBox ID="Fport_TextBox" runat="server" Text="c:\" Width="60px"></asp:TextBox>
 Stopat <asp:TextBox ID="TextBox_stopat" runat="server" Text="5" Width="60px"></asp:TextBox>files
 <asp:Button ID="Button" runat="server" OnClick="ClearAllThread_Click" Text="ScanWriterable" /><br />
 <asp:Label ID="Lb_msg" runat="server" Text=""></asp:Label>
 <br />
 </div>
 <div>code by <a href ="http://www.cncert.net">www.cncert.net</a></div>
 </form>
 </body>
 </html>
下载:http://www.cncert.net/up_files/soft/scanwriterable.aspx.rar
from:http://hi.baidu.com/cnqing/blog/item/5a2f57e6a558fb28b8382030.html
[] [返回上一页] [打 印] [收 藏]
关于本站 - 网站帮助 - 广告合作 - 下载声明 - 网站地图 - 发布教程

Copyright © 2002-2005 Hack58.Com. All Rights Reserved .

备案编号:粤ICP备05008775号