Skip to content

Commit

Permalink
Code scanning error resolved. Debug statements logging credentials an…
Browse files Browse the repository at this point in the history
…d passwords were removed as they are unnecessary.

There is no need for credentials to be logged like this for debug purposes. If it turns out in the future they may be necessary, they can be added in as needed.
  • Loading branch information
JCantu248 committed Sep 22, 2021
1 parent 25a497a commit a65955c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/tools/gophish_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,10 @@ def load_landings(api, assessment):
if page["redirect_url"]:
new_page.redirect_url = page["redirect_url"]

# Debug page information, editors may produce a false error or warning for lines 57 - 60
# Debug page information

logging.debug("Page Name: %s", new_page.name)
logging.debug("Redirect ULR: %s", new_page.redirect_url)
logging.debug("Capture Credentials: %s", new_page.capture_credentials)
logging.debug("Capture Passwords: %s", new_page.capture_passwords)

"""
Catches when a page has already been loaded into GoPhish.
Expand Down

0 comments on commit a65955c

Please sign in to comment.