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 rules
alert 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;)
alert 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.TimeSourceDestinationProtocolInfo
10.000192.0.2.10:52811198.51.100.20:80TCPSYN
20.012198.51.100.20:80192.0.2.10:52811TCPSYN ACK
30.024192.0.2.10:52811198.51.100.20:80TCPACK
40.036192.0.2.10:52811198.51.100.20:80TCPPSH ACK, POST /wp-login.php HTTP/1.1
50.048198.51.100.20:80192.0.2.10:52811TCPACK
60.060198.51.100.20:80192.0.2.10:52811TCPPSH ACK, HTTP/1.1 302 Found
70.072192.0.2.10:52811198.51.100.20:80TCPACK
80.084192.0.2.10:52811198.51.100.20:80TCPFIN ACK
90.096198.51.100.20:80192.0.2.10:52811TCPFIN ACK
100.108192.0.2.10:52811198.51.100.20:80TCPACK

More HTTP samples