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: 1 addition & 2 deletions evillimiter/console/io.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import re
import colorama

from . import shell


class IO(object):
_ANSI_CSI_RE = re.compile('\001?\033\\[((?:\\d|;)*)([a-zA-Z])\002?')
Expand Down Expand Up @@ -68,6 +66,7 @@ def clear():
"""
Clears the terminal screen
"""
from evillimiter.console import shell
shell.execute('clear')

@staticmethod
Expand Down
4 changes: 2 additions & 2 deletions evillimiter/menus/main_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,10 @@ def _add_handler(self, args):
IO.error('unable to resolve mac address. specify manually (--mac).')
return

name = None
name = ''
try:
host_info = socket.gethostbyaddr(ip)
name = None if host_info is None else host_info[0]
name = host_info[0]
except socket.herror:
pass

Expand Down