How I Captured a Password with One Command
文章介绍如何通过tshark工具捕获HTTP POST请求中的用户名和密码,并演示在Linux系统中安装tshark并运行命令监听网络流量的过程。 2025-6-7 05:48:1 Author: infosecwriteups.com(查看原文) 阅读量:12 收藏

Frost

Many beginner-friendly sites or older web applications still use HTTP, which transmits data without encryption.

When a user logs in to an HTTP site, their username and password are sent in clear text, meaning anyone sniffing the network can read them. In this short article, I will demonstrate how usernames and passwords can be captured on a network.

First, ensure that you have tshark installed on your Linux system by running the command “apt install tshark”. Then open your terminal and type the following command:

tshark -i eth0 -Y "http.request.method == POST" -T fields -e http.host -e http.request.uri -e http.file_data

Output:

This command listens to your network traffic (eth0) and filters for HTTP POST requests, which are often used when someone logs into a website or submits a form.

Now, I will open Firefox browser and try to log in to an HTTP website (http://testaspnet.vulnweb.com/login.aspx). I will type…


文章来源: https://infosecwriteups.com/why-https-matters-capturing-login-information-with-tshark-12d7818a667d?source=rss----7b722bfd1b8d---4
如有侵权请联系:admin#unsafe.sh