Skip to content

Commit

Permalink
cf changelog 0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
AlessandroZ committed May 27, 2015
1 parent e91d736 commit 6e2ec38
Show file tree
Hide file tree
Showing 15 changed files with 526 additions and 328 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
LaZagne 0.6 (26/05/2015)
- For Windows / Linux
* Firefox / Thunderbird: No more dependency with nss library (many thanks to Laurent for his technic: https://github.com/lclevy/firepwd)
* Fix opera bug

- Only Windows
* WinSCP false positive removed (when SSH key is used)

LaZagne 0.5 (21/05/2015)
- For Windows
* Fix chrome bug
Expand Down
22 changes: 11 additions & 11 deletions Linux/src/LaZagne.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
import logging
from softwares.browsers.mozilla import Mozilla

# configuration
# Configuration
from config.header import Header
from config.write_output import write_header, write_footer, print_footer
from config.constant import *
from config.manageModules import get_categories, get_modules

# print the title
# Print the title
Header().first_title()

category = get_categories()
Expand All @@ -44,7 +44,7 @@ def output():
del args['write']

def verbosity():
# write on the console + debug file
# Write on the console + debug file
if args['verbose']==0: level=logging.CRITICAL
elif args['verbose'] == 1: level=logging.INFO
elif args['verbose']>=2: level=logging.DEBUG
Expand All @@ -55,21 +55,21 @@ def verbosity():
stream.setFormatter(formatter)
root = logging.getLogger()
root.setLevel(level)
# if other logging are set
# If other logging are set
for r in root.handlers:
r.setLevel(logging.CRITICAL)
root.addHandler(stream)
del args['verbose']

def launch_module(b):
ok = False
# launch only a specific module
# Launch only a specific module
for i in args:
if args[i] and i in b:
b[i].run()
ok = True

# launch all modules
# Launch all modules
if not ok:
for i in b:
b[i].run()
Expand Down Expand Up @@ -109,7 +109,7 @@ def runAllModules():
constant.mozilla_software = 'Thunderbird'
launch_module(modules[categoryName])

# prompt help if an error occurs
# Prompt help if an error occurs
class MyParser(argparse.ArgumentParser):
def error(self, message):
sys.stderr.write('error: %s\n\n' % message)
Expand All @@ -136,13 +136,13 @@ def error(self, message):
category[c]['parser'] = argparse.ArgumentParser(add_help=False,formatter_class=lambda prog: argparse.HelpFormatter(prog, max_help_position=constant.MAX_HELP_POSITION))
category[c]['parser']._optionals.title = category[c]['help']

# manage options
# Manage options
category[c]['subparser'] = []
for module in modules[c]:
m = modules[c][module]
category[c]['parser'].add_argument(m.options['command'], action=m.options['action'], dest=m.options['dest'], help=m.options['help'])

# manage all suboptions by modules
# Manage all suboptions by modules
if m.suboptions and m.name != 'thunderbird':
tmp = []
for sub in m.suboptions:
Expand All @@ -168,7 +168,7 @@ def error(self, message):
dic_tmp = {c: {'parents': parser_tab, 'help':'Run %s module' % c, 'func': runModule}}
dic = dict(dic.items() + dic_tmp.items())

#2- main commands
# 2- main commands
subparsers = parser.add_subparsers(help='Choose a main command')
for d in dic:
subparsers.add_parser(d,parents=dic[d]['parents'],help=dic[d]['help']).set_defaults(func=dic[d]['func'],auditType=d)
Expand All @@ -181,7 +181,7 @@ def error(self, message):
verbosity()
arguments.func()

# print the number of passwords found
# Print the number of passwords found
if constant.output == 'txt':
write_footer()
print_footer()
Expand Down
2 changes: 1 addition & 1 deletion Linux/src/config/constant.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
class constant():
folder_name = 'results'
MAX_HELP_POSITION = 27
CURRENT_VERSION = 0.5
CURRENT_VERSION = 0.6
output = None
file_logger = None
verbose = False
Expand Down
Loading

0 comments on commit 6e2ec38

Please sign in to comment.