This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import itertools | |
import requests | |
def check_password(password): | |
data = {'username': '0501234567', 'password': password} | |
res = requests.post('http://localhost:8080/login', json=data) | |
if res.status_code == 200: | |
return True | |
return False |