SDB:Monitoring HTTP Packets
Version: 1 -
Situation
You want to monitor and analyze data transferred via HTTP.
Procedure
- Prerequisites:
- If possible, eliminate accesses to the web server other than a test client.
- The connection must be unencrypted so that the data can be analyzed.
- Passwords are logged in plain text. If necessary, use a test account for the logins.
- Execute the following command in a root console:
tcpdump -n -i eth0 -s 0 -w dump.out src or dst port 80 Modify the interface eth0 according to your needs.
- Start a client (browser) and generate the problem to monitor.
- Stop tcpdump by pressing CTRL+C.
- Examine the finished file dump.out with any editor. However, many nonsensical characters are also displayed.
As an alternative approach, import the file into the program "ethereal" where, by right-clicking, it can be displayed in TCP packets ("Follow TCP Stream") in a reader-friendly form.
<keyword>tcpdump,apache,ethereal</keyword>