Mobile phone number attribution Query

Source: Internet
Author: User
    • This article is used to describe a method to steal others' post if you do not have your own database and want to obtain the location of your mobile phone number. The website involved in this article is just an example. It does not attempt to attack or cheat, or for any commercial purposes. It only involves technical research, so please do not use it illegally.
    • Check the results first.

    • First, use the fiddler software mentioned in the previous blog. Open and find your target address. Enter data in the original address. After clicking the search button, press what is intercepted in Fiddler.

Specifically, in the enter phone number segment dialog box, enter the number to be queried. After the query, it is found that the corresponding data exchange will occur in the fiddler websession, And the webforms and textview in the session inspector on the right will be displayed, and what has been sent, that is, what has passed post. Then we can know what the data is. Try multiple times to find some patterns. In some cases, % and Hex data are pieced together and sent to the server segment.

  • The next step is to process html Code . How to send data and read results. In httpwebrequest. As follows.

          ///    <Summary>  
    /// Web request and get the Web Post Methods
    /// </Summary>
    /// <Param name = "url"> </param>
    /// <Param name = "postdata"> </param>
    /// <Param name = "Err"> </param>
    /// <Returns> </returns>
    Public Static String Httpwebresponsepost ( String URL, String Postdata, Out String Err)
    {
    Stream outstream = Null ;
    Stream instream = Null ;
    Streamreader SR = Null ;
    Httpwebresponse response = Null ;
    Httpwebrequest request = Null ;
    Encoding = Encoding. default;
    Byte [] Data = Encoding. getbytes (postdata );
    Try
    {
    Request = Webrequest. Create (URL) As Httpwebrequest;
    Cookiecontainer = New Cookiecontainer ();
    Request. cookiecontainer = Cookiecontainer;
    Request. allowautoredirect = True ;
    Request. Method = " Post " ;
    Request. contenttype = " Application/X-WWW-form-urlencoded " ;
    Request. contentlength = Data. length;
    Outstream = Request. getrequeststream ();
    Outstream. Write (data, 0 , Data. Length );
    Outstream. Close ();
    Response = Request. getresponse () As Httpwebresponse;
    Instream = Response. getresponsestream ();
    Sr = New Streamreader (instream, encoding );
    String Content = Sr. readtoend ();
    Err = String . Empty;
    Return Content;
    }
    Catch (Exception ex)
    {
    Err = Ex. message;
    Return String . Empty;
    }
    }
     
     
  • Next, initialize the parameters, call the function, and process the required data. The functions in string can be used for data processing. Step by step analysis. Or, if you are familiar with regular expressions, you can directly use regular expressions and crawlers.
   Protected     Void  Btnsub_click (  Object  Sender, eventargs E)
{
String Aurl = "" ; // Input address
String Err = " Show out error " ;
String Moblie = This . Tbnum. text;
String Postdata = String . Empty;
Postdata = " Mobile = " + Moblie + "" ; // Piece together the data to be sent
String Ahtml = Httpwebresponsepost (aurl, postdata, Out Err );
Ahtml = Gettablehtml (ahtml );
Result. Visible = True ;
Result. innerhtml = Ahtml;
}
 
 
    • My solution is to simply extract all the content in the table of the remote website and use it directly. :) If you dislike his table design or want to get it, analyze the table by yourself. After the data value is obtained cyclically, put it in the style you designed.

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.