Example #1
0
    def __init__(self):
        config = FileConfig()
        config.load_yaml()
        self.modules_path = config.settings["METASPLOIT"]["MODULE_PATH"]

        db_init = DBInit()
        db_init.create()
        self.msf_dao = MsfDAO(db_init.session)
        self.modules_path_list = []
Example #2
0
    def __init__(self):
        config = FileConfig()
        config.load_yaml()
        self.github_api = config.settings["GITHUB_TOKEN"]

        db_init = DBInit()
        db_init.create()
        self.msf_dao = MsfDAO(db_init.session)

        self.session = requests_html.HTMLSession()
        self.session.keep_alive = False
        self.headers = {
            'user-agent':
            'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.170 Safari/537.36',
        }
Example #3
0
 def __init__(self):
     config = FileConfig()
     config.load_yaml()
     self.shodan_key_string = config.settings["SHODAN_API_KEY"]
     self.shodan_api = shodan.Shodan(self.shodan_key_string)
Example #4
0
 def __init__(self):
     config = FileConfig()
     config.load_yaml()
     self.modules_path = config.settings["METASPLOIT"]["MODULE_PATH"]
Example #5
0
exclude_portlist = []
tmp_modulelist = []

manual_explist = []

port_info_list = []

catch_dup_sessionlist = []
shell_notice_list = []
alr_tested_module_list = []
working_exploit_list = []

# PATH
config = FileConfig()
config.load_yaml()
msgrpc_pass = config.settings["METASPLOIT"]["MSGRPC_PASS"]

penta_path = pathlib.Path(__file__).resolve().parent.parent.parent
data_path = penta_path / "data"
msf_path = data_path / "msf"
msf_db_path = msf_path / "module_list.db"
msf_port_db = msf_path / "port_db.sqlite"

log_directory = penta_path / "logs"
debug_file = log_directory / "test"

# Building timestamped filename
date_and_time = time.strftime("%m") + time.strftime("%d") + time.strftime(
    "%y") + '_' + time.strftime("%H") + time.strftime("%M") + time.strftime(
        "%S")