def cmdLineParser(argv=None): if not argv: argv = sys.argv try: parser = OptionParser() parser.add_option("--hh", dest="advancedHelp", action="store_true", help="Show advanced help message and exit") parser.add_option("--version", dest="showVersion", action="store_true", help="Show program's version number and exit") parser.add_option("-v", dest="verbose", type="int", help="") parser.add_option("--app", dest="app", help="") (options, args) = parser.parse_args() conf.app = AttribDict() conf.app.name = options.app conf.app.file = None conf.app.imp = None conf.app.func = None except: pass return parser
def prepare_param(argv): params = AttribDict() params.targets = argv.u params.cookies = argv.cookie params.file = argv.f params.plugins = argv.plugins params.threads = argv.threads return params
# !/usr/bin/env python # -*- coding: utf-8 -*- from datatype import AttribDict conf = AttribDict() cpanel = AttribDict() arg = AttribDict()
#!/usr/bin/env python # -*-coding:utf-8-*- #-*-author:scrat-*- from Queue import Queue from datatype import AttribDict from libs.core.log import LOGGER #PATH paths = AttribDict() #CONF conf = AttribDict() domainQueue = Queue() ipQueue = Queue() #log logger = LOGGER
#!/usr/bin/env python # -*- coding: utf_8 -*- import subprocess, sys from datatype import AttribDict sys.dont_write_bytecode = True Version = "0.0.1" Os_win = subprocess.mswindows Author = "m4ng0" urlconfig = AttribDict() banner_1 = """\033[01;34m _____________________________ < VulnScan Version:%s by %s > -----------------------------\033[0m \ ^__^ \ (oo)\_______ (__)\ )\/\\ ||----w | || || """ % (Version, Author) banner_2 = """\033[01;34m _____________________________ < VulnScan Version:%s by %s > -----------------------------\033[0m \033[01;31m\\ \033[01;33m\\\033[0m
#!/bin/env python """ Author:liangrt Date:2016-03-10 """ from datatype import AttribDict from log import LOGGER #sys paths paths = AttribDict() #use cdr cdrs = AttribDict() #use xml return dict xmlOutDict = AttribDict() #app for user app = AttribDict() # logger logger = LOGGER conf = AttribDict() matches = AttribDict()
# -*- coding: utf-8 -*- # @Time : 2018/3/24 下午2:38 # @author : Xmchx # @File : data.py from datatype import AttribDict ''' 初始化所有相关文件的path ''' path = AttribDict() ''' #初始化所有配置 ''' conf = AttribDict() ''' 初始化命令行参数 ''' args = AttribDict()