Skip to content

Commit

Permalink
launch a specific submodule (deleted yesterday by error)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlessandroZ committed Mar 27, 2018
1 parent d6d6da6 commit 390482d
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 3 deletions.
18 changes: 16 additions & 2 deletions Linux/laZagne.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,22 @@ def manage_advanced_options():
constant.jitsi_masterpass = args['master_pwd']

def launch_module(module):
for i in module:

modulesToLaunch = []
try:
# Launch only a specific module
for i in args:
if args[i] and i in module:
modulesToLaunch.append(i)
except:
# If no args
pass

# Launch all modules
if not modulesToLaunch:
modulesToLaunch = module

for i in modulesToLaunch:
try:
constant.st.title_info(i.capitalize()) # Print title
pwdFound = module[i].run(i.capitalize()) # Run the module
Expand All @@ -105,7 +120,6 @@ def launch_module(module):

# Run module
def runModule(category_choosed, need_high_privileges=False, need_system_privileges=False, not_need_to_be_in_env=False, cannot_be_impersonate_using_tokens=False):

categories = [category_choosed] if category_choosed != 'all' else get_categories()
for category in categories:
for r in launch_module(modules[category]):
Expand Down
16 changes: 15 additions & 1 deletion Mac/laZagne.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,21 @@ def manage_advanced_options():
constant.dictionary_attack = args['attack']

def launch_module(module):
for i in module:
modulesToLaunch = []
try:
# Launch only a specific module
for i in args:
if args[i] and i in module:
modulesToLaunch.append(i)
except:
# If no args
pass

# Launch all modules
if not modulesToLaunch:
modulesToLaunch = module

for i in modulesToLaunch:
try:
constant.st.title_info(i.capitalize()) # print title
pwdFound = module[i].run(i.capitalize()) # run the module
Expand Down

0 comments on commit 390482d

Please sign in to comment.