예제 #1
0
    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)
예제 #2
0
    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
예제 #3
0
    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)
예제 #4
0
    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
예제 #5
0
 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)
예제 #6
0
 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)
예제 #7
0
    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
예제 #8
0
파일: consoles.py 프로젝트: q1f3/Pocsuite
    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
예제 #9
0
    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 > "
예제 #10
0
파일: consoles.py 프로젝트: zer0yu/ZEROScan
    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 > "
예제 #11
0
 def __init__(self):
     Cmd.__init__(self)
     initializePoc()
     self.prompt = PROMPT
예제 #12
0
 def __init__(self):
     Cmd.__init__(self)
     self.prompt = "Pcs.poc> "
     self.case_insensitive = False
예제 #13
0
 def __init__(self):
     Cmd.__init__(self)
     self.prompt = "Pcs.config.header> "
     self.case_insensitive = False
예제 #14
0
 def __init__(self):
     Cmd.__init__(self)
     initializePoc()
     self.prompt = PROMPT
예제 #15
0
 def __init__(self):
     Cmd.__init__(self)
     self.prompt = "Pcs.poc> "
     self.case_insensitive = False
예제 #16
0
 def __init__(self):
     Cmd.__init__(self)
     self.prompt = "Pcs.config.header> "
     self.case_insensitive = False