Exemplo n.º 1
0
    def registerExtenderCallbacks(self, callbacks):
	self.__logger.debug('registerExtenderCallbacks. START')

	try:
	    #callbacks.registerMenuItem("Dis/Enable burpstrike...", BurpStrikeMenuItem())
	    #callbacks.registerMenuItem("De/Activate all plugins...", BurpStrikeMenuItem())

	#    for m in Facade().get_plugins().names():
	#	callbacks.registerMenuItem("Send to %s" % m, BurpStrikeMenuItem())

	    self.__logger.info('* setting burp callbacks in facade')
	    Facade().mCallBacks = callbacks

	    self.__logger.debug('* initializating controller')
	    Facade().controller = Controller()

	    self.__logger.debug('* initializating jobman')
	    Facade().jman = JobMan()
	    Facade().jman.start()

	    self.__logger.debug('* initializating ui')
	    cw = ConsoleWorker()
	    cw.start()
	except Exception, e:
	    traceback.print_exc(file=sys.stdout)
	    Facade().formatExceptionInfo("registerExtenderCallbacks")
Exemplo n.º 2
0
 def test_SupportedLanguagesIsAsExpected(self):
     # Yeah, I'm hitting the file system.  Deal with it.
     controller = Controller()
     langs = controller.get_supported_languages()
     self.assertEqual(langs, {'en_TEST': 'L33t'})