def handle(options): # input not a file just store it in default path # # just for debug purpose # print(options) # return if ',' in options.get('MODULES'): modules = options.get('MODULES').split(',') else: modules = [options.get('MODULES')] if utils.loop_grep(modules, 'sub'): subdomain.SubdomainScanning(options) # vhosts.VhostScan(options) # permutation.PermutationScan(options) probing.Probing(options) fingerprint.Fingerprint(options) # stoscan.StoScan(options) # screenshot.ScreenShot(options) if utils.loop_grep(modules, 'screen'): screenshot.ScreenShot(options) if utils.loop_grep(modules, 'fin'): fingerprint.Fingerprint(options) if utils.loop_grep(modules, 'link'): linkfinding.LinkFinding(options) if utils.loop_grep(modules, 'ip'): ipspace.IPSpace(options) if utils.loop_grep(modules, 'port'): portscan.PortScan(options) if utils.loop_grep(modules, 'vuln'): vulnscan.VulnScan(options) if utils.loop_grep(modules, 'git'): gitscan.GitScan(options) if utils.loop_grep(modules, 'dir'): dirbscan.DirbScan(options)
def single_handle(options): subdomain.SubdomainScanning(options) probing.Probing(options) # formatting.Formatting(options) corscan.CORScan(options) fingerprint.Fingerprint(options) stoscan.StoScan(options) screenshot.ScreenShot(options) linkfinding.LinkFinding(options) ipspace.IPSpace(options) portscan.PortScan(options) # vulnscan.VulnScan(options) dirbscan.DirbScan(options)
def handle(options): # just for debug purpose # print(options) if ',' in options.get('MODULES'): modules = options.get('MODULES').split(',') else: modules = [options.get('MODULES')] # run each line as a direct mode if utils.loop_grep(modules, 'sub'): single_handle(options, modules) return formatting.Formatting(options) # support direct list natively if utils.loop_grep(modules, 'screen'): screenshot.ScreenShot(options) if utils.loop_grep(modules, 'takeover'): stoscan.StoScan(options) if utils.loop_grep(modules, 'fingerprint'): fingerprint.Fingerprint(options) if utils.loop_grep(modules, 'port'): portscan.PortScan(options) if utils.loop_grep(modules, 'vuln'): vulnscan.VulnScan(options) if utils.loop_grep(modules, 'git'): gitscan.GitScan(options) if utils.loop_grep(modules, 'dir'): dirbscan.DirbScan(options) if utils.loop_grep(modules, 'cors'): corscan.CORScan(options) if utils.loop_grep(modules, 'link'): linkfinding.LinkFinding(options) if utils.loop_grep(modules, 'ip'): ipspace.IPSpace(options)
def handle(options): # input not a file just store it in default path # just for debug purpose # print(options) # return if ',' in options.get('MODULES'): modules = options.get('MODULES').split(',') else: modules = [options.get('MODULES')] formatting.Formatting(options) # return # run each line as a direct mode if utils.loop_grep(modules, 'subdomain'): single_handle(options, modules) if utils.loop_grep(modules, 'link'): single_handle(options, modules) if utils.loop_grep(modules, 'ip'): single_handle(options, modules) # support direct list natively if utils.loop_grep(modules, 'screen'): screenshot.ScreenShot(options) if utils.loop_grep(modules, 'takeover'): stoscan.StoScan(options) if utils.loop_grep(modules, 'fin'): fingerprint.Fingerprint(options) if utils.loop_grep(modules, 'port'): portscan.PortScan(options) if utils.loop_grep(modules, 'vuln'): vulnscan.VulnScan(options) if utils.loop_grep(modules, 'git'): gitscan.GitScan(options)
def single_handle(options, modules): options['MODE'] = 'direct' if not utils.isFile(options.get('TARGET')): targets = utils.just_read(options.get('TARGET'), get_list=True) for target in targets: options['TARGET'] = target # run each line as a direct mode if utils.loop_grep(modules, 'subdomain'): subdomain.SubdomainScanning(options) vhosts.VhostScan(options) permutation.PermutationScan(options) probing.Probing(options) screenshot.ScreenShot(options) stoscan.StoScan(options) fingerprint.Fingerprint(options) if utils.loop_grep(modules, 'link'): linkfinding.LinkFinding(options) if utils.loop_grep(modules, 'ip'): ipspace.IPSpace(options)