Skip to content

Commit

Permalink
Formatting and colors in DNS poisoning
Browse files Browse the repository at this point in the history
  • Loading branch information
hatRiot committed Oct 15, 2013
1 parent ff44365 commit 0ef44ea
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/modules/poison/dns.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from scapy.all import *
from colors import color
from poison import Poison
from zoption import Zoption
from threading import Thread
Expand Down Expand Up @@ -116,6 +117,7 @@ def session_view(self):
data = self.config['victim'].value + '\n'

for (cnt, dns) in enumerate(self.dns_spoofed_pair):
data += '\t|-> [%d] %s -> %s' \
% (cnt, dns.pattern, self.dns_spoofed_pair[dns])
data += '\t\t%s|->%s [%d] %s -> %s' \
% (color.GREEN, color.WHITE, cnt,
dns.pattern, self.dns_spoofed_pair[dns])
return data

0 comments on commit 0ef44ea

Please sign in to comment.