示例#1
0
import argparse
import time, sys, os
import logging
from softwares.browsers.mozilla import Mozilla

# 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
Header().first_title()

category = get_categories()
moduleNames = get_modules()

# Define a dictionary for all modules
modules = {}
for categoryName in category:
    modules[categoryName] = {}

# Add all modules to the dictionary
for module in moduleNames:
    modules[module.category][module.options["dest"]] = module
modules["mails"]["thunderbird"] = Mozilla(True)  # For thunderbird (firefox and thunderbird use the same class)


def output():
    if args["write"] == True:
        constant.output = "txt"
示例#2
0
import argparse
import time, sys, os
import logging
from softwares.browsers.mozilla import Mozilla

# 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
Header().first_title()

category = get_categories()
moduleNames = get_modules()

# Define a dictionary for all modules
modules = {}
for categoryName in category:
	modules[categoryName] = {}

# Add all modules to the dictionary
for module in moduleNames:
	modules[module.category][module.options['dest']] = module
modules['mails']['thunderbird'] = Mozilla(True) # For thunderbird (firefox and thunderbird use the same class)

def output():
	if args['write'] == True:
		constant.output = 'txt'
		if not os.path.exists(constant.folder_name):