From 5e87f7d417bb4d53e632237101a7f4000102d499 Mon Sep 17 00:00:00 2001 From: Harmj0y Date: Sun, 3 Apr 2016 23:15:57 -0400 Subject: [PATCH] Changed 403 respones to 401s in RESTful API --- empire | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/empire b/empire index eb0fdfb..c81508d 100755 --- a/empire +++ b/empire @@ -209,9 +209,9 @@ def start_restful_api(startEmpire=False, suppress=False, username=None, password if request.path != '/api/admin/login': token = request.args.get('token') if (not token) or (not tokenAllowed.match(token)): - return make_response('', 403) + return make_response('', 401) if (token != apiToken) and (token != permanentApiToken): - return make_response('', 403) + return make_response('', 401) @app.errorhandler(Exception)