Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions evillimiter/console/chart.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from evillimiter.console.io import IO


class BarChart(object):
def __init__(self, draw_char='▇', max_bar_length=30):
self.draw_char = draw_char
Expand Down
1 change: 0 additions & 1 deletion evillimiter/evillimiter.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import argparse
import platform
import collections
import pkg_resources

import evillimiter.networking.utils as netutils
from evillimiter.menus.main_menu import MainMenu
Expand Down
1 change: 0 additions & 1 deletion evillimiter/menus/main_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import curses
import netaddr
import threading
import collections
from terminaltables import SingleTable

import evillimiter.networking.utils as netutils
Expand Down
3 changes: 0 additions & 3 deletions evillimiter/menus/menu.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import enum
import collections

from .parser import CommandParser
from evillimiter.console.io import IO

Expand Down
5 changes: 1 addition & 4 deletions evillimiter/networking/host.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from evillimiter.console.io import IO


class Host(object):
def __init__(self, ip, mac, name):
self.ip = ip
Expand All @@ -15,4 +12,4 @@ def __eq__(self, other):
return self.ip == other.ip

def __hash__(self):
return hash((self.mac, self.ip))
return hash((self.mac, self.ip))
1 change: 0 additions & 1 deletion evillimiter/networking/limit.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import threading

import evillimiter.console.shell as shell
from .host import Host
from evillimiter.common.globals import BIN_TC, BIN_IPTABLES
from evillimiter.console.io import IO

Expand Down
4 changes: 1 addition & 3 deletions evillimiter/networking/scan.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import sys
import socket
import threading
import collections
from tqdm import tqdm
from netaddr import IPAddress
from scapy.all import sr1, ARP # pylint: disable=no-name-in-module
from concurrent.futures import ThreadPoolExecutor

Expand Down Expand Up @@ -105,4 +103,4 @@ def _sweep(self, ip):
class ScanIntensity:
QUICK = 1
NORMAL = 2
INTENSE = 3
INTENSE = 3
3 changes: 1 addition & 2 deletions evillimiter/networking/spoof.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import threading
from scapy.all import ARP, send # pylint: disable=no-name-in-module

from .host import Host
from evillimiter.common.globals import BROADCAST


Expand Down Expand Up @@ -77,4 +76,4 @@ def _restore(self, host):
ARP(op=2, psrc=self.gateway_ip, hwsrc=self.gateway_mac, pdst=host.ip, hwdst=BROADCAST)
]

[send(x, verbose=0, iface=self.interface, count=3) for x in packets]
[send(x, verbose=0, iface=self.interface, count=3) for x in packets]