Skip to content

Commit a579713

Browse files
committed
Avoid logging null macs
1 parent 8460564 commit a579713

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

trackerjacker/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
__author__ = "Caleb Madrigal"
88
__email__ = "[email protected]"
99
__license__ = "MIT"
10-
__version__ = "1.6.0"
10+
__version__ = "1.6.1"

trackerjacker/__main__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ def log_newly_found(self, frame):
182182
self.dot11_map.access_points.keys() |
183183
dot11_mapper.MACS_TO_IGNORE)]
184184
for mac in new_macs:
185-
self.logger.info('MAC found: %s, Channel: %d', mac, frame.channel)
185+
if mac: # The frame can be crafted to include a null mac
186+
self.logger.info('MAC found: %s, Channel: %d', mac, frame.channel)
186187

187188
def start(self):
188189
self.logger.debug('Starting monitoring on %s', self.iface_manager.iface)

0 commit comments

Comments
 (0)