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 80

  • in the telnet window, type the following text:
    GET / HTTP/1.1
    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:
    and press return once.


My Foot? said...


mallugeek said...

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

krist0ph3r 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.

popular posts