Skip to content

Commit 755f74d

Browse files
committedFeb 10, 2024
Remove false cloaked
1 parent 4473bbd commit 755f74d

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed
 

‎utils/database_utils.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,7 @@ def insertAP(cursor, verbose, bssid, essid, manuf, channel, freqmhz, carrier,
155155
cursor.execute(sql, (lat, lon, bssid.upper()))
156156

157157
# Update `cloaked` column
158-
sql = """UPDATE AP SET cloaked = CASE WHEN cloaked = 'False'
159-
THEN (?) ELSE cloaked END WHERE bssid = (?)"""
158+
sql = """UPDATE AP SET cloaked = (?) WHERE bssid = (?)"""
160159
if verbose:
161160
print(sql, (cloaked, bssid.upper()))
162161
cursor.execute(sql, (cloaked, bssid.upper()))

‎wifi_db.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,9 @@ def main():
150150
capture = replace_multiple_slashes(capture)
151151

152152
if source == "aircrack-ng":
153-
print("Parsing file:", capture)
154-
# Remove format if any
155-
156153
# If it is a folder...
157154
if path.isdir(capture):
155+
print("Parsing folder:", capture)
158156
files = []
159157
dirpath = os.getcwd()
160158
if os.path.isabs(capture):
@@ -187,6 +185,7 @@ def main():
187185
hcxpcapngtool, tshark, force)
188186

189187
else: # it is a file
188+
print("Parsing file:", capture)
190189
process_capture(ouiMap, capture, database,
191190
verbose, fake_lat, fake_lon,
192191
hcxpcapngtool, tshark, force)

0 commit comments

Comments
 (0)
Please sign in to comment.