def do_show(self, arg): if arg == 'options': if PAYLOAD.has_key('poc'): opts = [] for i in PAYLOAD.poc.options.keys(): val = PAYLOAD.poc.options.get(i) if hasattr(val, '__iter__'): val = "Not Set" opts.append([i, val]) self.ui.help( title="Payload Options:", options= opts # [[i,[[j,""] for j in PAYLOAD.poc.options.get(i)]] for i in PAYLOAD.poc.options.keys()] ) if TARGET: self.ui.help( title="Target Options:", options= [[i,TARGET.get(i)] for i in TARGET.keys()] ) # print "======\nTarget:\n======" # for i in TARGET.keys(): # print u"{key} => {value}".format(key=i, value=TARGET.get(i)) else: Cmd.do_show(self, arg)
def __init__(self): if IS_WIN: coloramainit() Cmd.__init__(self) os.system("clear") conf.report = False conf.retry = False conf.delay = 0 conf.quiet = False conf.isPocString = False conf.isPycFile = False conf.requires = False conf.requiresFreeze = False conf.url = None conf.proxy = None conf.params = None conf.urlFile = None conf.agent = None conf.referer = None conf.cookie = None conf.proxy = None conf.randomAgent = False conf.threads = 1 conf.timeout = 5 conf.httpHeaders = HTTP_DEFAULT_HEADER self.prompt = "Pcs> " banner() self.case_insensitive = False
def do_show(self, arg): if arg == 'options': if PAYLOAD.has_key('poc'): opts = [] for i in PAYLOAD.poc.options.keys(): val = PAYLOAD.poc.options.get(i) if hasattr(val, '__iter__'): val = "Not Set" opts.append([i, val]) self.ui.help( title="Payload Options:", options=opts # [[i,[[j,""] for j in PAYLOAD.poc.options.get(i)]] for i in PAYLOAD.poc.options.keys()] ) if TARGET: self.ui.help(title="Target Options:", options=[[i, TARGET.get(i)] for i in TARGET.keys()]) # print "======\nTarget:\n======" # for i in TARGET.keys(): # print u"{key} => {value}".format(key=i, value=TARGET.get(i)) else: Cmd.do_show(self, arg)
def do_set(self, arg): if arg.split()[0].upper() in PAYLOAD.poc.options.keys(): if len(arg.split()) == 2: PAYLOAD.poc.options.update({arg.split()[0].upper(): ''.join(arg.split()[1:])}) elif arg.split()[0].upper() in TARGET.keys(): if len(arg.split()) == 2: TARGET.update({arg.split()[0].upper(): ''.join(arg.split()[1:])}) else: Cmd.do_set(self, arg)
def do_set(self, arg): if arg.split()[0].upper() in PAYLOAD.poc.options.keys(): if len(arg.split()) == 2: PAYLOAD.poc.options.update( {arg.split()[0].upper(): ''.join(arg.split()[1:])}) elif arg.split()[0].upper() in TARGET.keys(): if len(arg.split()) == 2: TARGET.update( {arg.split()[0].upper(): ''.join(arg.split()[1:])}) else: Cmd.do_set(self, arg)
def __init__(self): Cmd.__init__(self) os.system("clear") banner() self.case_insensitive = False self.prompt = "Pcs> " conf.url = None conf.proxy = None conf.params = None conf.urlFile = None conf.agent = None conf.referer = None conf.cookie = None conf.proxy = None conf.randomAgent = False conf.threads = 1 conf.timeout = 5 conf.httpHeaders = HTTP_DEFAULT_HEADER
def __init__(self): Cmd.__init__(self) os.system("clear") banner() conf.url = None conf.urlFile = None conf.cookie = None #随机ua的实现 #conf.randomAgent = False conf.threads = 1 #是否需要html报告 conf.report = None conf.timeout = 3 conf.httpHeaders = HTTP_DEFAULT_HEADER self.prompt = "ZEROScan > "
def __init__(self): Cmd.__init__(self) initializePoc() self.prompt = PROMPT
def __init__(self): Cmd.__init__(self) self.prompt = "Pcs.poc> " self.case_insensitive = False
def __init__(self): Cmd.__init__(self) self.prompt = "Pcs.config.header> " self.case_insensitive = False