Ejemplo n.º 1
0
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)
Ejemplo n.º 3
0
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)