Capture login credentials from an HTTP website using Wireshark packet analyzer.
This project demonstrates how to use the Wireshark packet analyzer to capture login credentials transmitted over HTTP. It showcases the vulnerability of unencrypted communication and highlights the need for HTTPS in secure data transmission.
Study and use Wireshark to monitor HTTP traffic and extract login credentials from a non-HTTPS web application.
- Target Website: http://testphp.vulnweb.com
- Wireshark
- Browser: Firefox/Chrome
- OS: Kali Linux / Windows / Linux (any system with Wireshark)
- Open Wireshark and start packet capture on the active network interface.
- Visit
http://testphp.vulnweb.com/login.php. - Enter dummy login credentials and submit the form.
- In Wireshark, apply the filter:
http.request. - Locate the POST request with form data.
- View the packet details and extract
usernameandpasswordfrom the payload.
Captured HTTP POST request with plain-text credentials:
POST /userinfo.php HTTP/1.1 Host: testphp.vulnweb.com username=admin&password=123456
- Understood how packet sniffing works over unencrypted channels.
- Gained hands-on experience with Wireshark filters.
- Learned about HTTP protocol vulnerability.
- Recognized the importance of secure (HTTPS) communication.
This project was conducted only on legal and intentionally vulnerable websites for educational purposes. Do not perform such activities on unauthorized systems.

