ip138之asp小偷程序代码_应用技巧

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title> >> 手机号码查询 </title>
<meta name="generator" content="">
<style type="text/css">
BODY
{
    margin: 0px;
    color: #000000;
    background-color: #F6F6F6;
    background-color: #F6F6F6;    
    font-family: Verdana, Arial, 宋体;
    font-size: 9pt;
    text-decoration: none;
    SCROLLBAR-FACE-COLOR: #B3C5A7;
    SCROLLBAR-HIGHLIGHT-COLOR: #B3C5A7;
    SCROLLBAR-SHADOW-COLOR: #B3C5A7;
    SCROLLBAR-3DLIGHT-COLOR: #B3C5A7;
    SCROLLBAR-ARROW-COLOR: #eeeeee;
    SCROLLBAR-TRACK-COLOR: #efefef;
    SCROLLBAR-DARKSHADOW-COLOR: #B3C5A7;
}
TD
{
    color: #333333;
    font-family: Verdana, Arial, 宋体;
    font-size: 9pt;
    line-height: 150%;
}
</style>
<SCRIPT LANGUAGE="JavaScript">
<!--
    function resizeMe(){
        self.resizeTo(400,300);
    }
function checkMobile(){
    var sMobile = document.mobileform.mobile.value
    if(!(/^1[3|5][0-9]\d{4,8}$/.test(sMobile))){
        alert("不是完整的11位手机号或者正确的手机号前七位");
        document.mobileform.mobile.focus();
        return false;
    }
}

//-->
</SCRIPT>
</head>

<body leftmargin="1" topmargin="1" onload="javascript:resizeMe()">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
 <tr>
  <td>
<%    Dim XMLObj,tmpStr,Mobile,MobileArea,MobileType
    Dim RegExp,i

    Mobile = Request.Form("mobile")
    MobileArea = "未知"
    MobileType = "未知"
    Set XMLObj = Server.CreateObject("MSXML2.XMLHTTP")
    Set RegExp = New RegExp
    RegExp.Pattern = "class=tdc2>.*</TD>"
    RegExp.IgnoreCase = True
    RegExp.Global = True
    XMLObj.Open "Post","http://www.ip138.com:8080/search.asp", False
    XMLObj.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
    XMLObj.Send "action=mobile&mobile=" & Mobile
    If XMLObj.readyState = 4 Then
        tmpStr = bytes2BSTR(XMLObj.responseBody)
        i = 0
        Set Matches = RegExp.Execute(tmpStr)
        For Each Match in Matches      ' 遍历匹配集合。
            If i = 1 Then
                MobileArea = Replace(Match.Value,"class=tdc2>","")
            ElseIf i = 2 Then
                MobileType = Replace(Match.Value,"class=tdc2>","")
            ElseIf i = 0 Then
                Mobile = Replace(Match.Value,"class=tdc2>","")
            End if
            i = i + 1
          Next
    End If
    Set RegExp = Nothing
    Set XMLObj = Nothing

    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

    Function URLEncoding(vstrIn)
        strReturn = ""
        For i = 1 To Len(vstrIn)
            ThisChr = Mid(vstrIn, i, 1)
            If Abs(Asc(ThisChr)) < &HFF Then
                strReturn = strReturn & ThisChr
            Else
                innerCode = Asc(ThisChr)
                If innerCode < 0 Then
                    innerCode = innerCode + &H10000
                End If
                Hight8 = (innerCode And &HFF00) \ &HFF
                Low8 = innerCode And &HFF
                strReturn = strReturn & "%" & Hex(Hight8) & "%" & Hex(Low8)
            End If
        Next
        URLEncoding = strReturn
    End Function
%>
<table width=349 border="1" align="center" cellpadding="4" bordercolor=#3366cc style="border-collapse: collapse">
 <tr>
  <td colspan=2 align=center height=24 bgcolor=#6699cc>++* -手机归属地查询结果 *++</td>
 </tr>
 <tr bgcolor=#EFF1F3>
  <td width="130" align="center" noswap>您查询的手机号码段</td>
  <td width=* align="center"><%=Mobile%></td>
 </tr>
 <tr bgcolor=#EFF1F3>
  <td width="130" align="center" noswap>卡号归属地</td>
  <td width=* align="center"><%=MobileArea%></td>
 </tr>
 <tr bgcolor=#EFF1F3>
  <td width="130" align="center" noswap>卡 类 型</td>
  <td width=* align="center"><%=MobileType%></td>
 </tr>
 <tr bgcolor=#EFF1F3>
   <td colspan="2" align="center" noswap><a href="/">返回首页</a></td>
   </tr>
</table>
  </td>
 </tr>
</table>
<div style="display:none"><script type=text/javascript language=javascript src="http://www.jb51.net/inc/tongji.js"></script></div>
</body>
</html>

时间: 2024-07-31 15:54:28

ip138之asp小偷程序代码_应用技巧的相关文章

ip138之asp小偷程序代码

<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>脚本之家 >> 手机号码查询 </title> <meta name="generator" content="脚本之家"> <style type="

ASP+ajax注册即时提示程序代码_应用技巧

1.注册时验证数据库用户名是否存在. 2.输入密码时提示密码强度和验证2次密码输入是否一样. 3.注册时验证数据库联系邮箱是否存在. 4.注册时验证用户输入的验证码和系统产生的验证码是否一致. 5.对输入中文验证 6.QQ号码验证 7.身份证号码验证 复制代码 代码如下: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtm

实现ASP.NET多文件上传程序代码_实用技巧

upload.aspx 复制代码 代码如下: <%@ Page language="c#" Codebehind="UpLoad.aspx.cs" AutoEventWireup="false" Inherits="WebPortal.Upload" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >

asp.net多图片上传实现程序代码_实用技巧

前台代码如下: 复制代码 代码如下: <% @ Page Language="C#" CodeFile="UploadImg.aspx.cs" Inherits="NetAdmin_APicture_UploadImg" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xht

asp.net Grid 导出Excel实现程序代码_实用技巧

1. Aspx后台代码输出Content Type信息 复制代码 代码如下: Response.ClearContent(); Response.AddHeader("content-disposition", "attachment; filename=MyExcelFile.xls"); Response.ContentType = "application/excel"; Response.Write(GetGridTableHtml(Gr

Asp下实现限制IP访问的程序代码_应用技巧

<% ''获取访问者的地址 ip=Request.ServerVariables("REMOTE_ADDR")  ''允许的IP地址段为10.0.0.0-10.68.63.255 allowip1="10.0.0.0" allowip2="10.68.10.71" response.write checkip(ip,allowip1,allowip2) function checkip(ip,allowip1,allowip2) dim c

asp 简单分页代码_应用技巧

复制代码 代码如下: <% set rs=server.createobject("adodb.recordset") exce="sql" 'sql 查询语句 rs.open exce,conn,1,1 %> 然后是分页属性的设置 <% rs.PageSize=3 '设置页码 pagecount=rs.PageCount '获取总页码 page=int(request("page")) '接收页码 if page<=0

ASP批量更新代码_应用技巧

<!--#include file="../Conn.asp"--> <% set rs=server.createobject("adodb.recordset") sql="select * from article where bigtypes='我爱你'order by id desc"   找出数据库内类别为我爱你的所有数据 rs.open sql,conn,1,3 if not rs.eof then do whil

定期自动运行ASP程式的代码_应用技巧

前言  常有人希望在某個特定時間,可以自動某支 ASP 程式,進行某項作業,比如:發電子信.資料庫整理等.  方法  一.你可以去找 aspexe 元件來使用  二.你可以使用 WSH的方式來處理.以下文章是轉載至某個大陸網站(我已經忘了出處了-)  WSH 基本上和 ASP 的寫法是一樣的除了  不需加上 ASP 分隔符號  存檔的副檔名為 .vbs  由於不是使用 asp.dll , 因此沒有 ASP 的物件模式並不適用  無法使用伺服端包含, 因此一些 ADO 常數需自行宣告  '請勿用