Web Security
[ Home ] [ Slides ] [ Examples ] [ Exercises ] [ Resources ]

Exercise HTTP

Solutions for this exercise

Install XAMPP

The instructions given hier are only valid for windows, Unix users will follow the instructions for their particular OS (Linux/Unix/Mac-OS X). The instructions given on apachefriends are precise enough.
Be carefull, XAMPP is not intended for a productive environment. In a productive environment, you have to setup everything and control everything.

Securize your XAMPP

Since the default for xampp is to be open, you have to close some doors:

Generate your first requests

In order to generate some requests, you will use the telnet on the port 80 of a server. Under Unix start a console, on Windows, a cmd shell. Then execute the telnet telnet www.benoist.ch 80 where 80 is the port you want to connect and www.benoist.ch the site you want to connect.
Unfortunately, the Windows telnet client does not provide any way to see one's input. It is therefore convenient to write the input you want to type inside an editor (for instance edit) and then to copy/paste the code inside the telnet application.

Monitor HTTP trafic

Install Firefox Add-on for monitoring http headers: liveHTTPHeaders. Start the add-on: Menu Tools/live HTTP Headers. Start to trace HTTP headers.
Monitor the trafic with your php script.
Connect to the page http://staff.ti.bfh.ch/bie1. Count the number of requests (just for the page itself, not for images or css) and try to understand what appends.
Copyright Emmanuel Benoist 2008-2013