Skip to content

Commit 822163d

Browse files
committed
minor cleanup + exec permissions
1 parent dc75657 commit 822163d

4 files changed

Lines changed: 2 additions & 8 deletions

File tree

wifite/tools/tshark.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ class Tshark(Dependency):
1616
def __init__(self):
1717
pass
1818

19-
20-
2119
@staticmethod
2220
def _extract_src_dst_index_total(line):
2321
# Extract BSSIDs, handshake # (1-4) and handshake 'total' (4)

wifite/util/color.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def pexception(exception):
103103
# Don't dump trace for the "no targets found" case.
104104
if 'No targets found' in str(exception):
105105
return
106-
106+
107107
# Don't dump trace for the "interface not in monitor mode" case.
108108
if 'Enabled interface not in monitor mode' in str(exception):
109109
return

wifite/util/dbupdater.py

100644100755
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,13 @@ class DBUpdater:
2727

2828
@classmethod
2929
def run(cls):
30-
3130
Configuration.initialize(False)
3231

3332
filename = Configuration.db_filename
3433
verbose = bool(Configuration.verbose)
3534

3635
if os.path.exists(filename):
3736
up_to_date, last_updated = cls.is_up_to_date(filename)
38-
3937
if up_to_date:
4038
Color.pl('{+} {G}Database is up to date ({C}%s{G}). Last update date: {C}%s{W}' % (filename, last_updated))
4139
return
@@ -68,8 +66,7 @@ def update_all(cls, filename: str, verbose: bool = False) -> int:
6866
except Exception as e:
6967
print(f"Error processing {key}: {e}", file=sys.stderr)
7068
return written_total
71-
72-
69+
7370
@classmethod
7471
def fetch_csv(cls, url: str, verbose: bool = False) -> str:
7572
"""Download CSV content (boilerplate; uses requests)."""
@@ -102,7 +99,6 @@ def parse_and_write_csv(cls, csv_content: str, outfile, key: str, verbose: bool
10299
return count
103100

104101
def is_up_to_date(filename: str) -> bool:
105-
106102
mtime = os.path.getmtime(filename)
107103
last_update = datetime.fromtimestamp(mtime).strftime("%Y-%m-%d %H:%M:%S")
108104
age_seconds = datetime.now().timestamp() - mtime

wifite/util/memory.py

100644100755
File mode changed.

0 commit comments

Comments
 (0)