Skip to content

Commit

Permalink
change variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
AlessandroZ committed May 12, 2020
1 parent 02f971d commit 96e66e1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Linux/lazagne/config/constant.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ class constant():
output = None
file_logger = None
verbose = False
nbPasswordFound = 0 # Total password found
passwordFound = []
nb_password_found = 0 # Total password found
password_found = []
stdout_result = [] # Tab containing all results by user
finalResults = {}
quiet_mode = False
Expand Down
10 changes: 5 additions & 5 deletions Linux/lazagne/config/write_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ def write_header(self):
"a+").write(header)

def write_footer(self):
footer = '\n[+] %s passwords have been found.\r\n\r\n' % str(constant.nbPasswordFound)
footer = '\n[+] %s passwords have been found.\r\n\r\n' % str(constant.nb_password_found)
open(os.path.join(constant.folder_name, '{filename}.txt'.format(filename=constant.file_name_results)),
"a+").write(footer)

def print_footer(self, elapsed_time=None):
footer = '\n[+] %s passwords have been found.\n' % str(constant.nbPasswordFound)
footer = '\n[+] %s passwords have been found.\n' % str(constant.nb_password_found)
if not logging.getLogger().isEnabledFor(logging.INFO):
footer += 'For more information launch it again with the -v option\n'
if elapsed_time:
Expand Down Expand Up @@ -180,12 +180,12 @@ def print_output(self, software_name, pwd_found):
print_debug("ERROR", "Password not found !!!")
else:
# Store all passwords found on a table => for dictionary attack if master password set
constant.nbPasswordFound += 1
constant.nb_password_found += 1
passwd = None
try:
passwd = pwd[password_category[0].capitalize()]
if passwd not in constant.passwordFound:
constant.passwordFound.append(passwd)
if passwd not in constant.password_found:
constant.password_found.append(passwd)
except Exception:
pass

Expand Down

0 comments on commit 96e66e1

Please sign in to comment.