Sample captures, HTTP
WordPress login form POST
A browser posts a username and password to /wp-login.php and is redirected to /wp-admin/.
- Packets
- 10
- Duration
- 0.108 s
- Size
- 1.1 KB
- Protocols
- TCP, HTTP
- License
- CC0
What it shows
A form login: the browser sends the credentials as the body of a POST to /wp-login.php, and the server answers with a 302 redirect to /wp-admin/ and a session cookie.
For rules on the request method, the request body and the response status and headers. The credentials are made up.
Rules for this capture
Suricata 8 and 7
Try these rulesalert http any any -> any any (msg:"WordPress login POST with a password"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/wp-login.php"; http.request_body; content:"pwd="; sid:1000001; rev:1;) alert http any any -> any any (msg:"Login redirected to wp-admin"; flow:established,to_client; http.stat_code; content:"302"; http.location; content:"/wp-admin/"; sid:1000002; rev:1;)
Snort 3
Try these rulesalert http any any -> any any (msg:"WordPress login POST with a password"; flow:established,to_server; http_method; content:"POST"; http_uri; content:"/wp-login.php"; http_client_body; content:"pwd="; sid:1000001; rev:1;) alert http any any -> any any (msg:"Login redirected to wp-admin"; flow:established,to_client; http_stat_code; content:"302"; http_header:field location; content:"/wp-admin/"; sid:1000002; rev:1;)
Packets
| No. | Time | Source | Destination | Protocol | Info |
|---|---|---|---|---|---|
| 1 | 0.000 | 192.0.2.10:52811 | 198.51.100.20:80 | TCP | SYN |
| 2 | 0.012 | 198.51.100.20:80 | 192.0.2.10:52811 | TCP | SYN ACK |
| 3 | 0.024 | 192.0.2.10:52811 | 198.51.100.20:80 | TCP | ACK |
| 4 | 0.036 | 192.0.2.10:52811 | 198.51.100.20:80 | TCP | PSH ACK, POST /wp-login.php HTTP/1.1 |
| 5 | 0.048 | 198.51.100.20:80 | 192.0.2.10:52811 | TCP | ACK |
| 6 | 0.060 | 198.51.100.20:80 | 192.0.2.10:52811 | TCP | PSH ACK, HTTP/1.1 302 Found |
| 7 | 0.072 | 192.0.2.10:52811 | 198.51.100.20:80 | TCP | ACK |
| 8 | 0.084 | 192.0.2.10:52811 | 198.51.100.20:80 | TCP | FIN ACK |
| 9 | 0.096 | 198.51.100.20:80 | 192.0.2.10:52811 | TCP | FIN ACK |
| 10 | 0.108 | 192.0.2.10:52811 | 198.51.100.20:80 | TCP | ACK |
More HTTP samples
- HTTP download: curl downloads an .exe over plain HTTP: handshake, request, response, close.
- HTTP download, capture started mid-connection: The same download without the TCP handshake, as when a capture starts late.
- HTTP download with offloaded checksums: The same download captured on the client, whose outgoing packets have bad TCP checksums.
- HTTP on port 8080: The same download to a server on port 8080 instead of 80.
- HTTP response, chunked and gzip-compressed: A web page sent gzip-compressed in chunks, with a script that's only visible after decompression.
- PowerShell download cradle: PowerShell fetches a script that decodes base64 and runs it with Invoke-Expression.
- HTTP beacon every 30 seconds: A client checks in with the same request six times, 30 seconds apart.