Retrieving token via user/pass fixed

mdns
bneg 2017-04-22 13:09:41 -07:00
parent 073f7428d9
commit 31ef020f79
1 changed files with 1 additions and 1 deletions

2
empire
View File

@ -1111,7 +1111,7 @@ def start_restful_api(startEmpire=False, suppress=False, username=None, password
# try to prevent some basic bruting
time.sleep(2)
if suppliedUsername == username and suppliedPassword == password:
if suppliedUsername == username[0] and suppliedPassword == password[0]:
return jsonify({'token': apiToken})
else:
return make_response('', 401)