Skip to content

Commit

Permalink
Compare apples with apples
Browse files Browse the repository at this point in the history
  • Loading branch information
andresriancho committed Dec 2, 2019
1 parent 53bc34a commit 38c8944
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions w3af/core/controllers/plugins/auth_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,19 @@ def _configure_audit_blacklist(self, *args):
new_blacklist_audit = []

for new_url in args:
new_url = new_url.uri2url()

if new_url not in blacklist_audit:
new_blacklist_audit.append(new_url.uri2url())
new_blacklist_audit.append(new_url)

if not new_blacklist_audit:
return

blacklist_audit.extend(new_blacklist_audit)
cf.cf.save('blacklist_audit', blacklist_audit)

if new_blacklist_audit:
args = ('\n - '.join(str(u) for u in new_blacklist_audit),)
om.out.information(self.BLACKLIST_LOGIN_URL_MESSAGE % args)
args = ('\n - '.join(str(u) for u in new_blacklist_audit),)
om.out.information(self.BLACKLIST_LOGIN_URL_MESSAGE % args)

def _log_http_response(self, http_response):
if is_no_content_response(http_response):
Expand Down

0 comments on commit 38c8944

Please sign in to comment.