(self)
return data
Return what to print when viewing sessions
Return what to print when viewing sessions
Return what to print when viewing sessions
def session_view(self):
        """ Return what to print when viewing sessions
        """
        if not self.config['victim'].value:
            data = 'Any\n'
        else:
            data = self.config['victim'].value + '\n'

        for (cnt, dns) in enumerate(self.dns_spoofed_pair):
            data += '\t\t%s|->%s [%d] %s -> %s' \
                               % (color.GREEN, color.WHITE, cnt, 
                                  dns.pattern, self.dns_spoofed_pair[dns])
        return data
def session_view ( self ) : if not self . config [ 'victim' ] . value : data = 'Any\n' else : data = self . config [ 'victim' ] . value + '\n' for ( cnt , dns ) in enumerate ( self . dns_spoofed_pair ) : data += '\t\t%s|->%s [%d] %s -> %s' % ( color . GREEN , color . WHITE , cnt , dns . pattern , self . dns_spoofed_pair [ dns ] ) return data