SRL Archive - Other Scripts

Http transfer analyzer


botmaster

2007-03-24 08:06:48

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.

{======================[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!

SKy Scripter

2007-03-24 18:04:54

looks nice ;)

Smartzkid

2007-03-28 16:46:01

Pretty cool…It'd be nice if it put each html piece on a new line; its a bit hard to read unformatted html….

botmaster

2007-03-29 07:26:45

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.

Smartzkid

2007-04-01 19:37:46

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.

botmaster

2007-04-05 10:05:02

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.

Wizzup?

2007-04-05 11:27:53

So it's like this except for cookies?

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

botmaster

2007-05-04 07:33:38

From: Wizzup?
So it's like this except for cookies?

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.

the nerd

2007-05-10 04:58:52

Wow aorsome script. Works realy well.