Friday, June 22, 2007

how to pretend to be a web browser

  • log in to a *nix box (i've used solaris and aix). any OS works fine, but you may not get a local echo so you won't know if you made a typo. HTTP is very unforgiving about typos.

  • run the command:
    telnet krist0ph3r.blogspot.com 80

  • in the telnet window, type the following text:
    GET / HTTP/1.1
    Host: krist0ph3r.blogspot.com
    User-agent: krisroxxx
    be very careful, backspace and arrow keys etc. don't work. you have to get it right the first time. it *is* case sensitive too.

  • press return twice.

  • marvel at the profoundness of what you've just done.

  • to close the connection, type:
    CLOSE
    and press return once.

3 comments:

The Shmoo said...

O_o

mallugeek said...

the new Blogger doesn't seem to let the telnet hack work anymore.

Kris said...

actually, it still does work. it simply has a very short timeout (probably 5 seconds or so).

what you have to do is type the command in a text editor, copy it, and paste it IMMEDIATELY after the telnet connection is established.

half a year

it's been exactly half a year since shruti and I took the biggest step of our lives. the memories are still as fresh as ever. but scratc...