Results 1 to 9 of 9

Thread: Http transfer analyzer

  1. #1
    Join Date
    Oct 2006
    Location
    I'm a figment of your imagination
    Posts
    422
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Http transfer analyzer

    HttpAnalyzer V 1.0


    This script is able to record the ENTIRE transaction of data from Server to client. When viewing a webpage, you only see a part of what the server sent you - the content. What you don't see are the headers. This small scripts makes the headers visible to you.

    Why you should care about header information? Well, there's a few reasons:

    • You can take a look at cookies and their expiration date
    • You can see what platform the server runs on
    • You can see if you get redirected or not
    • You can see a lot of useful additional info on the server


    All of them are a good reason to take a look at the header info. I original developed this script for runescape.com only as private script. I've changed my mind though and now, 2 years after its creation, fixed it up and made it public. One of the reasons I created it was to check wether RS were updating their mechanisms against scripts accessing their website, wether they used cookies to track you or not. Today, when jagex forbids bots to parse content from their site, something like this is needed more than ever.

    SCAR Code:
    {======================[Description and Release Notes]=========================}
    {                           HttpAnalyzer V 1.0                                 }
    {==============================================================================}
    {                                                                              }
    { HttpAnalyzer is a freely distributed script according to the GNU public      }
    { license as of 1991. If you bought this program or the script, you have been  }
    { scammed.                                                                     }
    {                                                                              }
    {==================================[About]=====================================}
    {                                                                              }
    { This script connects to a website and retreives its content and its header   }
    { information. It does so by using the SCAR client. You can specify the name   }
    { of your client, wether you want redirects, and cookies. The results are      }
    { displayed in a form.                                                         }
    {                                                                              }
    {=============================[How to use this]================================}
    {                                                                              }
    { Set the clientname below and press play to run the script.                   }
    Const
      Clientname = 'Mozilla firefox 2.0.0.1';
    {                                                                              }
    {=============================[Version History]================================}
    {                                                                              }
    {  0.1 - Idea was to create a script that could analyze the RS website and the }
    {        cookies they place for anti-ban experiments.                          }
    {  0.5 - Code completed. Forms implemented, but no release. This was a private }
    {        script.                                                               }
    {  1.0 - Modified script to accept different websites too and to be able to    }
    {        set a clientname. Unfortunately, I had deleted the form generator's   }
    {        data, so you cannot edit the client while the program is running.     }
    {        First public release.                                                 }
    {                                                                              }
    {==============================================================================}
    {                                                                              }
    {                        DO NOT DELETE BELOW THIS LINE                         }
    {                        (* A                                                  }
    {                         .--.      .                   .                      }
    {                         |   )    _|_                 _|_                     }
    {                         |--:  .-. |  .--.--. .-.  .--.|  .-. .--.            }
    {                         |   )(   )|  |  |  |(   ) `--.| (.-' |               }
    {                         '--'  `-' `-''  '  `-`-'`-`--'`-'`--''               }
    {                                                 script production*)          }
    {                                                                              }
    {              ADD LIST OF CONTRIBUTERS/EDITORS/MODIFIERS HERE:                }
    {------------------------------------------------------------------------------}

    I just hope that this script is useful to you!

    It's been a while... but I'm BACK!!!

  2. #2
    Join Date
    Dec 2006
    Location
    utah
    Posts
    1,427
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    looks nice

  3. #3
    Join Date
    Sep 2006
    Location
    New Jersey, USA
    Posts
    5,347
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Pretty cool...It'd be nice if it put each html piece on a new line; its a bit hard to read unformatted html....
    Interested in C# and Electrical Engineering? This might interest you.

  4. #4
    Join Date
    Oct 2006
    Location
    I'm a figment of your imagination
    Posts
    422
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I wish i could make it format the html, but i want it to read the output EXACTLY as it was sent by the server. Its not my problem that RS doesnt format it correctly. They do this cause they dont want you to be able to copy their code or sumthin, i dunno. If i retreive google, it formats perfectly well.

    EDIT: Also, this script is in my 'discontinued' category; I won't improve it. It's pretty old and kinda simple - I don't want to make it overcomplex. I'm currently working on a scar-based obfuscator and a scar-based commentor, because writing comments is takin me too much time and I dont want people to copy my work. Obber will be public, but commentor = private script.

    It's been a while... but I'm BACK!!!

  5. #5
    Join Date
    Sep 2006
    Location
    New Jersey, USA
    Posts
    5,347
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Okay...would it be alright if I fixed it up and gave it out to a couple friends?
    If you don't mind, I could also post it public...but I really don't mind if you don't want my version to be public.
    Interested in C# and Electrical Engineering? This might interest you.

  6. #6
    Join Date
    Oct 2006
    Location
    I'm a figment of your imagination
    Posts
    422
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Err... Sure smartzkid. Just give credit to me like specified in the header of my script (use my ASCII). You must say that I was the author of the script and that I created it. You must also provide info on what you changed in the script.

    It's been a while... but I'm BACK!!!

  7. #7
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    So it's like this except for cookies?

    SCAR Code:
    mystring := (getpage('http://www.runescape.com'));
    writeln(mystring);



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  8. #8
    Join Date
    Oct 2006
    Location
    I'm a figment of your imagination
    Posts
    422
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Wizzup? View Post
    So it's like this except for cookies?

    SCAR Code:
    mystring := (getpage('http://www.runescape.com'));
    writeln(mystring);
    No. Getpage just returns the html of a page, but my script can also display the header data (the stuff your browser uses to identify the server). It's like trying to send a HEAD request for http/1.0 servers, except that you can also allow or disallow cookies, redirects, etc.

    The reason I discontinued this is also because it was too simple. It would be more interesting if I could use OpenConnection to send requests to the server individually (i.e. POST, GET, HEADER, etc.). However, this gets too complex for SCAR so I'll have to use either VB (probably too implicit) or C++ to do this.

    It's been a while... but I'm BACK!!!

  9. #9
    Join Date
    Dec 2006
    Location
    UK
    Posts
    118
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. loads of http at once
    By Yakman in forum C/C++ Help and Tutorials
    Replies: 3
    Last Post: 11-11-2008, 08:36 PM
  2. http://www.jagexstore.com/ :s
    By Scaper in forum News and General
    Replies: 29
    Last Post: 07-14-2008, 09:42 AM
  3. Bitmap Analyzer
    By Markus in forum Research & Development Lounge
    Replies: 10
    Last Post: 12-27-2007, 08:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •