示例#1
0
                outq.put('fini')
                sys.exit(0) 

            elif data[0] == 'cont':
                break
            elif data[0] == 'stop': #Some error must have occurred
                sys.exit(0)
            else: 
                #FIXME custom exception?
                raise Exception("Unknown message")


        chop.prettyprnt("RED", "Starting the ChopShop")

        #Initialize the ChopShop Core
        ccore = ChopCore(options, module_list, chop, chophelper)

        #Setup Core and its modules
        ccore.prep_modules()

        
        if autostart:
            ccore.start()

        while (True):
            if ccore.complete:
                break

            try:
                data = inq.get(True, .1)
            except Queue.Empty, e:
示例#2
0
                sys.exit(0)
            elif data[0] == 'cont':
                break
            elif data[0] == 'stop':  #Some error must have occurred
                sys.exit(0)
            elif data[0] == 'abort':  #Process any data we have
                abort = True
                break
            else:
                #FIXME custom exception?
                raise Exception("Unknown message")

        chop.prettyprnt("RED", "Starting ChopShop")

        #Initialize the ChopShop Core
        ccore = ChopCore(options, module_list, chop, chophelper)

        #Setup Core and its modules
        ccore.prep_modules()

        if autostart:
            ccore.start()

        #If received abort during init, this is true
        ccore.abort = abort

        while (True):
            if ccore.complete:
                break

            try:
示例#3
0
            elif data[0] == 'cont':
                break
            elif data[0] == 'stop': #Some error must have occurred
                sys.exit(0)
            elif data[0] == 'abort': #Process any data we have
                abort = True
                break
            else:
                #FIXME custom exception?
                raise Exception("Unknown message")


        chop.prettyprnt("RED", "Starting ChopShop (Created by MITRE)")

        #Initialize the ChopShop Core
        ccore = ChopCore(options, module_list, chop, chophelper)

        #Setup Core and its modules
        ccore.prep_modules()


        if autostart:
            ccore.start()

        #If received abort during init, this is true
        ccore.abort = abort

        while (True):
            if ccore.complete:
                break