β οΈ Disclaimer: This is for educational and defensive security testing only (e.g., testing your own server). Never use it on systems you do not own or have explicit permission to test. Unauthorized use is illegal.
When you submit a login form, your username and password are sent to a server endpoint using an HTTP request (usually POST).
- Open Developer Tools in your browser (Right-click β Inspect, or press
F12
). - Go to the Network tab.
- Fill out the login form with any data and click "Login".
- In the Network tab, look for a new request β often named
login
,authenticate
, or similar. - Click the request to see:
- Request URL β the endpoint the data is sent to.
- Request method β usually
POST
. - Payload / Form Data β shows the fields being sent (e.g.,
username
,password
).
Below is a simple Python script using the requests
library to simulate sending login data repeatedly.
import requests
import time
url = "https://example.com/login" # β Change this to the URL you found
# The keys should match your form fields
data = {
"username": "fakeuser",
"password": "fakepassword"
}
while True:
response = requests.post(url, data=data)
print(f"Sent fake login, status code: {response.status_code}")
# Wait before sending again to avoid flooding too fast
time.sleep(2)