def __init__(self, options): utils.print_banner("Scanning Directory") utils.make_directory(options['WORKSPACE'] + '/directory') self.module_name = self.__class__.__name__ self.options = options if utils.resume(self.options, self.module_name): utils.print_info( "Detect is already done. use '-f' options to force rerun the module" ) return self.is_direct = utils.is_direct_mode(options, require_input=True) slack.slack_noti('status', self.options, mess={ 'title': "{0} | {1}".format(self.options['TARGET'], self.module_name), 'content': 'Start Scanning Directory for {0}'.format( self.options['TARGET']) }) self.initial() slack.slack_noti('good', self.options, mess={ 'title': "{0} | {1}".format(self.options['TARGET'], self.module_name), 'content': 'Start Scanning Directory for {0}'.format( self.options['TARGET']) })
def __init__(self, options): utils.print_banner("Port Scanning") utils.make_directory(options['WORKSPACE'] + '/portscan') utils.make_directory(options['WORKSPACE'] + '/subdomain') self.module_name = self.__class__.__name__ self.options = options if utils.resume(self.options, self.module_name): utils.print_info( "It's already done. use '-f' options to force rerun the module") return self.is_direct = utils.is_direct_mode(options, require_input=True) slack.slack_noti('status', self.options, mess={ 'title': "{0} | {1}".format(self.options['TARGET'], self.module_name), 'content': 'Start Port Scanning for {0}'.format(self.options['TARGET']) }) self.initial() utils.just_waiting(self.options, self.module_name, seconds=60) # self.create_ip_result() self.conclude() slack.slack_noti('good', self.options, mess={ 'title': "{0} | {1}".format(self.options['TARGET'], self.module_name), 'content': 'Start Port Scanning for {0}'.format(self.options['TARGET']) })
def __init__(self, options): utils.print_banner("AssetFinding") utils.make_directory(options['WORKSPACE'] + '/assets') self.module_name = self.__class__.__name__ self.options = options self.options['CURRENT_MODULE'] = self.module_name self.options['SPEED'] = utils.custom_speed(self.options) if utils.resume(self.options, self.module_name): utils.print_info( "It's already done. use '-f' options to force rerun the module" ) return self.is_direct = utils.is_direct_mode(options, require_input=True) slack.slack_noti( 'status', self.options, mess={ 'title': "{0} | {1}".format(self.options['TARGET'], self.module_name), 'content': 'Start AssetFinding for {0}'.format(self.options['TARGET']) }) self.initial() utils.just_waiting(self.options, self.module_name) slack.slack_noti( 'good', self.options, mess={ 'title': "{0} | {1} ".format(self.options['TARGET'], self.module_name), 'content': 'Done AssetFinding for {0}'.format(self.options['TARGET']) }) utils.print_line()
def __init__(self, options): utils.print_banner("Port Scanning") utils.make_directory(options['WORKSPACE'] + '/portscan') utils.make_directory(options['WORKSPACE'] + '/subdomain') self.module_name = self.__class__.__name__ self.options = options if utils.resume(self.options, self.module_name): utils.print_info( "It's already done. use '-f' options to force rerun the module") return self.is_direct = utils.is_direct_mode(options, require_input=True) slack.slack_noti('status', self.options, mess={ 'title': "{0} | {1}".format(self.options['TARGET'], self.module_name), 'content': 'Start Port Scanning for {0}'.format(self.options['TARGET']) }) self.initial() utils.just_waiting(self.options, self.module_name, seconds=60) self.conclude() slack.slack_noti('good', self.options, mess={ 'title': "{0} | {1}".format(self.options['TARGET'], self.module_name), 'content': 'Start Port Scanning for {0}'.format(self.options['TARGET']) })
def check_direct(self): all_subdomain = utils.replace_argument( self.options, '$WORKSPACE/subdomain/final-$OUTPUT.txt') if utils.not_empty_file(all_subdomain): return False self.is_direct = utils.is_direct_mode(self.options, require_input=True) return True
def __init__(self, options): utils.print_banner("Headers Scanning") utils.make_directory(options['WORKSPACE'] + '/headers') utils.make_directory(options['WORKSPACE'] + '/headers/details') self.module_name = self.__class__.__name__ self.options = options if utils.resume(self.options, self.module_name): utils.print_info("It's already done. use '-f' options to force rerun the module") return self.is_direct = utils.is_direct_mode(options, require_input=True) slack.slack_noti('status', self.options, mess={ 'title': "{0} | {1}".format(self.options['TARGET'], self.module_name), 'content': 'Start Headers Scanning for {0}'.format(self.options['TARGET']) }) self.initial() slack.slack_noti('good', self.options, mess={ 'title': "{0} | {1}".format(self.options['TARGET'], self.module_name), 'content': 'Start Headers Scanning for {0}'.format(self.options['TARGET']) })