Skip to content

Commit c3ea42d

Browse files
committed
Made installable on more versions of python
1 parent 2ee7a8e commit c3ea42d

6 files changed

Lines changed: 20 additions & 15 deletions

File tree

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ PyPI page: https://pypi.python.org/pypi/trackerjacker
88

99
pip3 install trackerjacker
1010

11-
(Note: Only works on Python 3.6.x right now - other versions will be supported once one of the dependencies fixes an installation bug: https://bitbucket.org/ruamel/yaml/issues/198/pip-install-issue-runtimeerror-dictionary)
12-
1311
*Supported platforms*: Linux (tested on Ubuntu, Kali, and RPi) and macOS (pre-alpha)
1412

1513
![visual description](https://i.imgur.com/I5NH5KM.jpg)
@@ -299,10 +297,10 @@ Note that trackerjacker will automatically switch channels as necessary during n
299297
- [x] Fox hunt mode
300298
- [x] Tracking by SSID (and not just BSSID)
301299
- [x] Basic macOS (OS X) support (pre-alpha)
300+
- [ ] macOS support: get signal strength values correct (will be fixed in https://github.com/secdev/scapy/pull/1381
302301
- [ ] macOS support: reverse airport binary to determine how to set true monitor mode
303302
- [ ] macOS support: diverse interface support (not just `en0`)
304303
- [ ] macOS support: get interface supported channels
305-
- [ ] macOS support: get signal strength values correct
306304
- [ ] Mapping a specific SSID
307305
- [ ] Performance enhancement: not shelling out for channel switching
308306
- [ ] "Jack" mode - deauth attacks

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
scapy>=2.4.0
1+
scapy==2.4.0
22
pyaml>=17.12.1
3-
ruamel.yaml>=0.15.35
3+
ruamel.yaml==0.15.0
44

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ def get_readme():
5050
'Topic :: System :: Networking',
5151
'Topic :: System :: Networking :: Monitoring',
5252
'Topic :: Security',
53-
'Operating System :: POSIX :: Linux'
53+
'Operating System :: POSIX :: Linux',
54+
'Operating System :: MacOS'
5455
],
5556
)

trackerjacker/__main__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@ def __init__(self,
9999
self.logger.info('Map output file: %s', self.map_file)
100100
if os.path.exists(self.map_file):
101101
self.dot11_map = dot11_mapper.Dot11Map.load_from_file(self.map_file)
102+
if self.dot11_map:
103+
self.logger.info('Loaded %d devices and %d ssids from %s',
104+
len(self.dot11_map.devices),
105+
len(self.dot11_map.ssid_to_access_point),
106+
self.map_file)
102107
else:
103108
self.logger.warning('Specified map file not found - creating new map file.')
104109

@@ -206,7 +211,7 @@ def start(self):
206211
try:
207212
# macOS
208213
if platform.system() == 'Darwin':
209-
self.logger.warning('trackerjacker macOS support is pre-alpha - most functionality is linux-only')
214+
self.logger.warning('macOS support is pre-alpha - many improvements coming soon')
210215
scapy.sniff(iface=self.iface_manager.iface, monitor=True, prn=self.process_packet, store=0)
211216
break
212217
# linux

trackerjacker/dot11_frame.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,14 @@ def __init__(self, frame, channel=0, iface=None):
5959
#print('Error decoding ssid: {}'.format(frame[scapy.Dot11Elt].info))
6060

6161
if frame.haslayer(scapy.RadioTap):
62-
try:
63-
self.signal_strength = frame[scapy.RadioTap].dbm_antsignal
64-
except AttributeError:
65-
try:
66-
self.signal_strength = -(256-ord(frame.notdecoded[-4:-3]))
67-
except Exception:
68-
self.signal_strength = -257
62+
# This will be uncommented once this scapy PR is merged: https://github.com/secdev/scapy/pull/1381
63+
#try:
64+
# self.signal_strength = frame[scapy.RadioTap].dBm_AntSignal
65+
#except AttributeError:
66+
# try:
67+
self.signal_strength = -(256-ord(frame.notdecoded[-4:-3]))
68+
# except Exception:
69+
# self.signal_strength = -257
6970

7071
def frame_type(self):
7172
"""Returns the 802.11 frame type."""

trackerjacker/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.8.0"
1+
__version__ = "1.8.1"

0 commit comments

Comments
 (0)