Back to home

Checking HTTP with Wireshark

Wanted to analyze network traffic captured on Wireshark with a simple login form.
I created a small rails app with:
rails new acme

I created a home controller with an index page. I added the following form on the page to capture the data.

<form action="/login" method="post">
<%= hidden_field_tag :authenticity_token, form_authenticity_token %>
<label>Username</label>
<input name="username">
<label>Password</label>
<input type="password" name="password">

<button>Login</button>
</form>
Screenshot 2026-07-24 223629.png 22 KB

Going onto wireshark and searching for a request method of POST and was able to identify the packet.
Screenshot 2026-07-24 223650.png 10.8 KB
Looking at the header, I was able to find the credentials.
Screenshot 2026-07-24 223728.png 16.9 KB
This is just a small test, so I didn't create any type of real user. Maybe I'll do so in the near future?