示例#1
0
def register():
    """method which registers the plugin"""

    plugin = ccd.Plugin("bing", ["searchengines"],
                        dbtemplate=[ccd.Tmpl.SE_LINK_CRAWLER])
    plugin.execute = main
    return plugin
示例#2
0
def register():
    plugin = ccd.Plugin("rpcinfo",
                        ["scanner/rpc"],
                        dbtemplate=[ccd.Tmpl.RPCINFO],
                        )
    plugin.execute = main
    return plugin
示例#3
0
def register():
    plugin = ccd.Plugin(__plgname__, ["traceroute/tcp"],
                        dbtemplate=[ccd.Tmpl.TRACEROUTE])
    plugin.runasroot = True
    plugin.direct = True
    plugin.execute = main
    return plugin
示例#4
0
def register():
    # returns plugin name and list of plugins category
    # the name must equal directory name of plugin
    plugin = ccd.Plugin(__plgname__, ["connect"])
    plugin.execute = main
    plugin.interactive = True
    return plugin
示例#5
0
def register():
    plugin = ccd.Plugin("rsh_bruteforce", ["bruteforce/rsh"],
                        dbtemplate=[ccd.Tmpl.RSH_BRUTEFORCE])
    plugin.runasroot = True
    plugin.direct = True
    plugin.execute = main
    return plugin
示例#6
0
def register():
    plugin = ccd.Plugin(__plgname__,
                        ["scanner/directories"],
                        dbtemplate=[ccd.Tmpl.DIRSCAN])

    plugin.execute = main
    return plugin
示例#7
0
def register():
    plugin = ccd.Plugin(__plgname__,
                        ["bruteforce/telnet"],
                        dbtemplate=[ccd.Tmpl.BRUTEFORCE],
                        )
    plugin.execute = main
    return plugin
示例#8
0
def register():
    parser = argparse.ArgumentParser(description=DESCRIPTION)
    parser.add_argument("-A",
                        help="make fingerprint and resolve dns",
                        action="store_true",
                        dest="probing")
    parser.add_argument("-p",
                        help="port list to scan (e.g. -p80,443) (default %s)" %
                        str(PORTS),
                        dest="ports",
                        default=PORTS)
    parser.add_argument("-nb",
                        action="store_true",
                        dest="blocking",
                        help="set socket to non-blocking (default: blocking)")
    parser.add_argument("--timeout",
                        help="set socket timemout (default: 5)",
                        type=float,
                        default=5)
    parser.add_argument(
        "--threads",
        help="max amount of threads that should scan (default: 64)",
        type=int,
        default=64)
    parser.add_argument("--randomness",
                        help="the higher the number, the more random are "
                        "targets scanned (1 no randomness, 2 easy "
                        "randomn, 10 default, >100 incredible "
                        "randomness with slow performance) (default 10)",
                        type=int,
                        default=10)

    group = parser.add_argument_group("targets",
                                      description="passing ips or hosts is "
                                      "done via the '-t' or '-i'")

    group.add_argument("-t",
                       help="whitespace separated list of ips or hostnames "
                       "to scan (e.g -t google.de heise.de)",
                       nargs="+",
                       dest="targets")
    group.add_argument("-i",
                       help="File containing targets. (e.g. -i /tmp/ips.txt)",
                       dest="targetfile")

    setattr(main, "parser", parser)

    plugin = ccd.Plugin(
        # plugin name
        "ps",
        # categories the plugin ought to be listed in
        ["scanner/ports"],
        # database template to store data
        dbtemplate=[ccd.Tmpl.PORTSCAN, ccd.Tmpl.DNSSCAN],
        # help string
        help=parser.format_help())
    plugin.execute = main
    #plugin.direct = True
    return plugin
示例#9
0
def register():

    plugin = ccd.Plugin(__plgname__, ["bruteforce/mail"],
                        dbtemplate=[ccd.Tmpl.MAIL_ACCOUNT])

    plugin.execute = main

    return plugin
示例#10
0
def register():
    plugin = ccd.Plugin(
        # plugin name
        __plgname__,
        # categories the plugin ought to be listed in
        ["bruteforce/ssh_user"],
        # database template to store data
        dbtemplate=[ccd.Tmpl.SSH_USER_ENUM],
    )
    plugin.execute = main
    return plugin
示例#11
0
def register():
    plugin = ccd.Plugin(
        # plugin name
        "ssh_bruteforce",
        # categories the plugin ought to be listed in
        ["bruteforce/ssh"],
        # database template to store data
        dbtemplate=[ccd.Tmpl.BRUTEFORCE],
    )
    plugin.execute = main
    return plugin
示例#12
0
def register():
    plugin = ccd.Plugin('geoip', ["scanner"], dbtemplate=[ccd.Tmpl.GEOIP])
    plugin.execute = main
    return plugin
示例#13
0
def register():
    plugin = ccd.Plugin(__plgname__, ["scanner/heartbleed"],
                        dbtemplate=[ccd.Tmpl.HEARTBLEED])
    plugin.execute = main
    return plugin
示例#14
0
def register():
    plugin = ccd.Plugin(__plgname__,
                        ["scanner/dns"],
                        dbtemplate=[ccd.Tmpl.ZONETRANSFER])
    plugin.execute = main
    return plugin
示例#15
0
def register():
    # returns plugin name and list of plugins category
    # the name must equal directory name of plugin
    plugin = ccd.Plugin("popget", ["get"])
    plugin.execute = main
    return plugin
示例#16
0
def register():
    plugin = ccd.Plugin("subdns",
                        categories=["scanner/dns"],
                        dbtemplate=[ccd.Tmpl.DNSSCAN])
    plugin.execute = main
    return plugin
示例#17
0
def register():
    plugin = ccd.Plugin("http_basic_bruteforce",
                        ["bruteforce/http_basic"],
                        dbtemplate=[ccd.Tmpl.HTTP_BRUTEFORCE])
    plugin.execute = main
    return plugin
示例#18
0
def register():
    plugin = ccd.Plugin("showmount", ["scanner/rpc"],
                        dbtemplate=[ccd.Tmpl.SHOWMOUNT])
    plugin.execute = main
    return plugin
示例#19
0
def register():
    plugin = ccd.Plugin(__plgname__, ["scanner/dns"],
                        dbtemplate=[ccd.Tmpl.RIPESCAN])
    plugin.execute = main
    return plugin
示例#20
0
def register():
    plugin = ccd.Plugin(__plgname__, ["scanner/ssl"],
                        dbtemplate=[ccd.Tmpl.SSL_INFO])
    plugin.execute = main
    return plugin
示例#21
0
def register():
    plugin = ccd.Plugin(__plgname__, ["bruteforce/directories"],
                        dbtemplate=[ccd.Tmpl.DIR_BRUTEFORCE])

    plugin.execute = main
    return plugin
示例#22
0
def register():
    plugin = ccd.Plugin("whois", ["scanner/dns"], dbtemplate=[ccd.Tmpl.WHOIS])
    plugin.execute = main
    return plugin
示例#23
0
def register():
    plugin = ccd.Plugin("smtp_user_enum", ["bruteforce/smtp_user"],
                        dbtemplate=[ccd.Tmpl.SMTPUSER_BRUTEFORCE])
    plugin.execute = main
    return plugin