def handle(options): if utils.isFile(options.get('TARGET')): targets = utils.just_read(options.get('TARGET'), get_list=True) # loop through each target for target in targets: options['TARGET'] = target options['OUTPUT'] = target single_handle(options) else: single_handle(options)
def single_handle(options, modules): options['MODE'] = 'direct' if 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, 'sub'): subdomain.SubdomainScanning(options) probing.Probing(options) if utils.loop_grep(modules, 'screen'): screenshot.ScreenShot(options) if utils.loop_grep(modules, 'take'): stoscan.StoScan(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)