Пример #1
0
def main():
    config.banner()
    parser = argparse.ArgumentParser(description="Collection tool for automatic pentesting", add_help=False)
    parser.add_argument('-c', '--config', action='store', dest='config', help='config file', default='core/config.conf')
    parser.add_argument('-m', '--module', action='store', dest='module', help='specific module to action')

    parser.add_argument('-i', '--input', action='store', dest='input', help='input for specific module')
    parser.add_argument('-I', '--input_file', action='store', dest='inputfile', help='input for specific module')
    parser.add_argument('-t', '--target', action='store', dest='target', help='target')
    parser.add_argument('-T', '--target_list', action='store',
                        dest='targetlist', help='list of target')

    parser.add_argument('--company', action='store', dest='company', help='Company name')
    parser.add_argument('-b', '--burp', action='store', dest='burp', help='burp http file')
    parser.add_argument('-g', '--git', action='store', dest='git', help='git repo to scan')
    parser.add_argument('-o', '--output', action='store', dest='output', help='output')
    parser.add_argument('-w', '--workspace', action='store', dest='workspace', help='Domain')

    parser.add_argument('-M', '--list_module', action='store_true', help='List all module')
    parser.add_argument('-v', '--verbose', action='store_true', help='show verbose output')

    parser.add_argument('-f', '--force', action='store_true', help='force to run the module again if output exists')
    parser.add_argument('-q', '--quick', action='store_true', help='run this tool with quick routine', default=True)
    parser.add_argument('-s', '--slow', action='store_true', help='run this tool with slow routine', default=False)
    
    parser.add_argument('--mode', action='store_true', help='Choose mode to run normal routine(quick or slow)', default='quick')
    parser.add_argument('--update', action='store_true', help='update lastest from git')


    parser.add_argument('--remote', action='store', dest='remote', default="https://127.0.0.1:5000", 
                    help='remote address for API')

    parser.add_argument('--auth', action='store', dest='auth', help='Specify auth tication e.g: --auth="username:password" ')

    parser.add_argument('--proxy', action='store', dest='proxy', help='Specify proxy --proxy="type://host:port" e.g: --proxy="socks4://127.0.0.1:9050" ')

    parser.add_argument('--proxy_file', action='store', dest='proxy_file',
                        help='Specify proxychains config file --proxy_file=proxychains.conf')

    parser.add_argument('--client', action='store_true', help='just run client stuff in case you ran the flask server before')
    parser.add_argument('--debug', action='store_true', help='just for debug purpose')
    parser.add_argument('-h', '--help', dest='help', action='store_true', help='Display help messaage')

    args = parser.parse_args()
    if len(sys.argv) == 1:
        config.custom_help()
        sys.exit(0)

    if args.help:
        config.custom_help()

    if args.list_module:
        config.list_module()
    if args.update:
        config.update()

    parsing_argument(args)
Пример #2
0
def main():
    config.banner(__version__, __author__)
    parser = argparse.ArgumentParser(description="One line to rude them all",
                                     add_help=False)
    parser.add_argument('-c',
                        '--config',
                        action='store',
                        dest='config',
                        help='config file',
                        default='core/config.conf')
    parser.add_argument('-m',
                        '--module',
                        action='store',
                        dest='module',
                        help='specific module to action')

    parser.add_argument('-i',
                        '--input',
                        action='store',
                        dest='input',
                        help='input for specific module')
    parser.add_argument('-I',
                        '--input_list',
                        action='store',
                        dest='inputlist',
                        help='input for specific module')
    parser.add_argument('-t',
                        '--target',
                        action='store',
                        dest='target',
                        help='target')
    parser.add_argument('-T',
                        '--target_list',
                        action='store',
                        dest='targetlist',
                        help='list of target')

    parser.add_argument('--company',
                        action='store',
                        dest='company',
                        help='Company name')
    parser.add_argument('-b',
                        '--burp',
                        action='store',
                        dest='burp',
                        help='burp http file')
    parser.add_argument('-g',
                        '--git',
                        action='store',
                        dest='git',
                        help='git repo to scan')
    parser.add_argument('-o',
                        '--output',
                        action='store',
                        dest='output',
                        help='output')
    parser.add_argument('-w',
                        '--workspace',
                        action='store',
                        dest='workspace',
                        help='Domain')

    parser.add_argument('-M',
                        '--list_module',
                        action='store_true',
                        help='List all module')
    parser.add_argument('-v',
                        '--verbose',
                        action='store_true',
                        help='show verbose output')

    parser.add_argument('-s',
                        '--slow',
                        action='store',
                        help='run this tool with slow routine',
                        default=None)

    parser.add_argument('-f',
                        '--force',
                        action='store_true',
                        help='force to run the module again if output exists')

    parser.add_argument(
        '--mode',
        action='store_true',
        help='Choose mode to run normal routine(quick or slow)',
        default='quick')
    parser.add_argument('--update',
                        action='store_true',
                        help='update lastest from git')

    parser.add_argument('--remote',
                        action='store',
                        dest='remote',
                        default="https://127.0.0.1:5000",
                        help='remote address for API')

    parser.add_argument(
        '--auth',
        action='store',
        dest='auth',
        help='Specify authentication e.g: --auth="username:password" ')

    parser.add_argument(
        '--proxy',
        action='store',
        dest='proxy',
        help=
        'Specify proxy --proxy="type://host:port" e.g: --proxy="socks4://127.0.0.1:9050" '
    )

    parser.add_argument(
        '--proxy_file',
        action='store',
        dest='proxy_file',
        help='Specify proxychains config file --proxy_file=proxychains.conf')

    parser.add_argument(
        '--client',
        action='store_true',
        help='just run client stuff in case you ran the flask server before')
    parser.add_argument('--debug',
                        action='store_true',
                        help='just for debug purpose')

    parser.add_argument('--slack',
                        action='store_true',
                        help='Turn on slack notification')
    parser.add_argument('-h',
                        '--help',
                        dest='help',
                        action='store_true',
                        help='Display help messaage')

    args = parser.parse_args()
    if len(sys.argv) == 1:
        config.custom_help()
        sys.exit(0)

    if args.help:
        config.custom_help()

    if args.list_module:
        config.list_module()
    if args.update:
        config.update()

    parsing_argument(args)
Пример #3
0
def main():
    config.banner()
    parser = argparse.ArgumentParser(
        description="Collection tool for automatic pentesting")
    parser.add_argument('-c',
                        '--config',
                        action='store',
                        dest='config',
                        help='config file',
                        default='core/config.conf')
    parser.add_argument('-m',
                        '--module',
                        action='store',
                        dest='module',
                        help='specific module to action')
    parser.add_argument('-i',
                        '--input',
                        action='store',
                        dest='input',
                        help='input for specific module')
    parser.add_argument('-t',
                        '--target',
                        action='store',
                        dest='target',
                        help='target')
    parser.add_argument('--company',
                        action='store',
                        dest='company',
                        help='Company name')
    parser.add_argument('-b',
                        '--burp',
                        action='store',
                        dest='burp',
                        help='burp http file')
    parser.add_argument('-g',
                        '--git',
                        action='store',
                        dest='git',
                        help='git repo to scan')
    parser.add_argument('-T',
                        '--target_list',
                        action='store',
                        dest='targetlist',
                        help='list of target')
    parser.add_argument('-o',
                        '--output',
                        action='store',
                        dest='output',
                        help='output')
    parser.add_argument('-w',
                        '--workspace',
                        action='store',
                        dest='workspace',
                        help='Domain')
    parser.add_argument('--more',
                        action='store',
                        dest='more',
                        help='append more command for some tools')

    parser.add_argument('-M',
                        '--list_module',
                        action='store_true',
                        help='List all module')
    parser.add_argument('-v',
                        '--verbose',
                        action='store_true',
                        help='show verbose output')
    parser.add_argument('-f',
                        '--force',
                        action='store_true',
                        help='force to run the module again if output exists')

    parser.add_argument('-q',
                        '--quick',
                        action='store_true',
                        help='run this tool with quick routine',
                        default=True)
    parser.add_argument('-s',
                        '--slow',
                        action='store_true',
                        help='run this tool with slow routine',
                        default=False)

    parser.add_argument(
        '--mode',
        action='store_true',
        help='Choose mode to run normal routine(quick or slow)',
        default='quick')
    parser.add_argument('--update',
                        action='store_true',
                        help='update lastest from git')
    parser.add_argument(
        '--client',
        action='store_true',
        help='just run client stuff in case you ran the flask server before')
    parser.add_argument('--debug',
                        action='store_true',
                        help='just for debug purpose')

    args = parser.parse_args()
    if len(sys.argv) == 1:
        list_module()
        sys.exit(0)

    if args.list_module:
        list_module()
    if args.update:
        update()

    parsing_argument(args)
Пример #4
0
def main():
    config.banner(__author__, __version__)
    parser = argparse.ArgumentParser(
        description="Command line Search Engines without any API key")

    parser.add_argument('-c', '--config', action='store', dest='config',
                        help='config file', default='config.conf')

    parser.add_argument('--cookies', action='store',
                        dest='cookies', help='content of cookies cookie')

    parser.add_argument('-m', '--module', action='store',
                        dest='module', help='Specific predefine module', default='custom')

    parser.add_argument('-t', '--target', action='store',
                        dest='target', help="Target for module (pattern: -t 'software|version')")

    parser.add_argument('-T', '--target_list', action='store',
                        dest='target_list', help='Target for module')

    parser.add_argument('-s', '--source', action='store',
                        dest='source', help='name of search engine (e.g: shodan, censys, fofa)')

    parser.add_argument('-S', '--source_list', action='store',
                        dest='source_list', help='JSON config for multiple search engine (e.g: shodan, censys, fofa)')

    parser.add_argument('-q', '--query', action='store',
                        dest='query', help='Query from search engine')

    parser.add_argument('-Q', '--query_list', action='store',
                        dest='query_list', help='List of query from search engine')

    parser.add_argument('-d', '--outdir', action='store',
                        dest='outdir', help='Directory output', default='.')

    parser.add_argument('-o', '--output', action='store',
                        dest='output', help='Output file name', default='output')

    parser.add_argument('--raw', action='store',
                        dest='raw', help='Directory to store raw query', default='raw')

    parser.add_argument('--proxy', action='store',
                        dest='proxy', help='Proxy for doing request to search engine e.g: http://127.0.0.1:8080 ')

    parser.add_argument('-b', action='store_true', dest='brute', help='Auto brute force the country code')

    parser.add_argument('--disable_pages', action='store_true', dest='disable_pages', help="Don't loop though the pages")

    parser.add_argument('--store_content', action='store_true',
                        dest='store_content', help="Store the raw HTML souce or not")

    parser.add_argument('-hh', action='store_true', dest='helps', help='Print more help')
    parser.add_argument('-M', action='store_true',
                        dest='modules_help', help='Print available modules')

    parser.add_argument('--rel', action='store_true',
                        dest='relatively', help='Get exact app and version')

    parser.add_argument('--debug', action='store_true', dest='debug', help='Print debug output')
    parser.add_argument('--update', action='store_true',
                        dest='update', help='Update lastest version from git')

    args = parser.parse_args()

    if len(sys.argv) == 1 or args.helps:
        config.custom_help()
    if args.modules_help:
        config.modules_help()
    if args.update:
        config.update()

    parsing_argument(args)