In the past i had Bluetooth GPS + Kismet + Alfa Awus036h working.
Now 2 years later, i try again and it is not working anymore.
What is changed?
# Install required packages:
$ sudo apt-get install bluetooth bluez bluez-tools blueman gpsd gpsd-clients
# Unblock & Start Bluetooth:
$ rfkill unblock bluetooth
$ systemctl start bluetooth
$ hciconfig hci0 up
$ hciconfig
# Pair and Connect Bluetooth with Smartphone:
$ bluetoothctl
$ list
$ pair <mac address>
$ connect <mac address>
# run blueman as root:
$ sudo blueman-manager ##Can't make Serial port with Blueman anymore!
## From here you will need to set up a bluetooth serial port and NMEA:
- Install app for Android: GPS over BT beta
- Start the app
# Bind using rfcomm (start Serial Port):
$ sudo rfcomm bind 0 xx:xx:xx:xx:xx:xx 1
$ gpsd -n -N -D4 /dev/rfcomm0
# Put Wi-Fi in Monitoring Mode:
$ airmon-ng start wlan0
# Start Kismet:
$ kismet
(interface = wlan0mon)
# Start Giskismet:
$ giskismet -x /root/Kismet-20171211-08-50-26-1.netxml
$ giskismet -q "select * from wireless" -o /root/Desktop/output_all.kml
# Open kml file in Google Earth or Google Maps
It looks like JSON is the standard now for GPSd + Kismet, but the apps in the Android Playstore are using all NMEA or network broadcasting instead of JSON...
root@kali:~# sudo rfcomm bind 0 xx:xx:xx:xx:xx:xx 1
root@kali:~# gpsd -n -N -D4 /dev/rfcomm0
gpsd:INFO: launching (Version 3.17)
gpsd:INFO: listening on port gpsd
gpsd:PROG: NTP: shmat(557056,0,0) succeeded, segment 0
gpsd:PROG: NTP: shmat(589828,0,0) succeeded, segment 1
gpsd:PROG: NTP: shmat(622597,0,0) succeeded, segment 2
gpsd:PROG: NTP: shmat(655366,0,0) succeeded, segment 3
gpsd:PROG: NTP: shmat(688135,0,0) succeeded, segment 4
gpsd:PROG: NTP: shmat(720904,0,0) succeeded, segment 5
gpsd:PROG: NTP: shmat(753673,0,0) succeeded, segment 6
gpsd:PROG: NTP: shmat(786442,0,0) succeeded, segment 7
gpsd:PROG: successfully connected to the DBUS system bus
gpsd:PROG: shmget(0x47505344, 8936, 0666) for SHM export succeeded
gpsd:PROG: shmat() for SHM export succeeded, segment 819211
gpsd:INFO: stashing device /dev/rfcomm0 at slot 0
gpsd:PROG: no /etc/gpsd/device-hook present, skipped running ACTIVATE hook
gpsd:INFO: SER: opening GPS data source type 4 at '/dev/rfcomm0'
gpsd:INFO: SER: speed 9600, 8N1
gpsd:PROG: Probing "Garmin USB binary" driver...
gpsd:PROG: Probe not found "Garmin USB binary" driver...
gpsd:PROG: Probing "GeoStar" driver...
gpsd:PROG: Sent GeoStar packet id 0xc1
gpsd:PROG: Probe not found "GeoStar" driver...
gpsd:PROG: Probing "Trimble TSIP" driver...
gpsd:INFO: SER: speed 9600, 8O1
gpsd:INFO: SER: speed 9600, 8N1
gpsd:PROG: Probe not found "Trimble TSIP" driver...
gpsd:PROG: Probing "iSync" driver...
gpsd:INFO: SER: speed 9600, 8N1
gpsd:INFO: SER: speed 9600, 8N1
gpsd:PROG: Probe not found "iSync" driver...
gpsd:PROG: no probe matched...
gpsd:INFO: gpsd_activate(2): activated GPS (fd 6)
gpsd:INFO: PPS:/dev/rfcomm0 ntpshm_link_activate: 1
gpsd:INFO: device /dev/rfcomm0 activated
gpsd:INFO: running with effective group ID 20
gpsd:INFO: running with effective user ID 135
gpsd:INFO: startup at 2017-12-11T18:43:54.000Z (1513017834)
gpsd:CLIENT: => client(0): {"class":"VERSION","release":"3.17","rev":"3.17"," proto_major":3,"proto_minor":12}\x0d\x0a
gpsd:INFO: GPS on /dev/rfcomm0 is offline (37.731331 sec since data)
gpsd:INFO: closing GPS=/dev/rfcomm0 (6)
gpsd:PROG: no /etc/gpsd/device-hook present, skipped running DEACTIVATE hook
gpsd:PROG: checking client(0)
gpsd:CLIENT: <= client(0): ?DEVICES;\x0d\x0a
gpsd:CLIENT: => client(0): {"class":"DEVICES","devices":[{"class":"DEVICE","path":"/dev/rfcomm0"}]}\x0d\x0a
gpsd:INFO: reconnection attempt on device 0
gpsd:PROG: no /etc/gpsd/device-hook present, skipped running ACTIVATE hook
gpsd:INFO: SER: opening GPS data source type 4 at '/dev/rfcomm0'
gpsd:INFO: SER: speed 9600, 8N1
gpsd:PROG: Probing "Garmin USB binary" driver...
gpsd:PROG: Probe not found "Garmin USB binary" driver...
gpsd:PROG: Probing "GeoStar" driver...
gpsd:PROG: Sent GeoStar packet id 0xc1
gpsd:PROG: Probe not found "GeoStar" driver...
gpsd:PROG: Probing "Trimble TSIP" driver...
gpsd:INFO: SER: speed 9600, 8O1
gpsd:INFO: SER: speed 9600, 8N1
gpsd:PROG: Probe not found "Trimble TSIP" driver...
gpsd:PROG: Probing "iSync" driver...
gpsd:INFO: SER: speed 9600, 8N1
gpsd:INFO: SER: speed 9600, 8N1
gpsd:PROG: Probe not found "iSync" driver...
gpsd:PROG: no probe matched...
gpsd:INFO: gpsd_activate(2): activated GPS (fd 6)
gpsd:INFO: closing GPS=/dev/rfcomm0 (6)
gpsd:PROG: no /etc/gpsd/device-hook present, skipped running DEACTIVATE hook
gpsd:PROG: checking client(0)
gpsd:CLIENT: <= client(0): ?WATCH={"enable":true,"json":true};\x0a
gpsd:PROG: no /etc/gpsd/device-hook present, skipped running ACTIVATE hook
gpsd:INFO: SER: opening GPS data source type 4 at '/dev/rfcomm0'
gpsd:INFO: SER: speed 9600, 8N1
gpsd:PROG: Probing "Garmin USB binary" driver...
gpsd:PROG: Probe not found "Garmin USB binary" driver...
gpsd:PROG: Probing "GeoStar" driver...
gpsd:PROG: Sent GeoStar packet id 0xc1
gpsd:PROG: Probe not found "GeoStar" driver...
gpsd:PROG: Probing "Trimble TSIP" driver...
gpsd:INFO: SER: speed 9600, 8O1
gpsd:INFO: SER: speed 9600, 8N1
gpsd:PROG: Probe not found "Trimble TSIP" driver...
gpsd:PROG: Probing "iSync" driver...
gpsd:INFO: SER: speed 9600, 8N1
gpsd:INFO: SER: speed 9600, 8N1
gpsd:PROG: Probe not found "iSync" driver...
gpsd:PROG: no probe matched...
gpsd:INFO: gpsd_activate(2): activated GPS (fd 6)
gpsd:CLIENT: => client(0): {"class":"DEVICES","devices":[{"class":"DEVICE","path":"/dev/rfcomm0","activated":"2017-12-11T18:44:36.247Z","native":0,"bps":9600,"parity":" N","stopbits":1,"cycle":1.00}]}\x0d\x0a{"class":"WATCH","enable":true,"json":tru e,"nmea":false,"raw":0,"scaled":false,"timing":fal se,"split24":false,"pps":false}\x0d\x0a
gpsd:INFO: closing GPS=/dev/rfcomm0 (6)
gpsd:PROG: no /etc/gpsd/device-hook present, skipped running DEACTIVATE hook
Kismet console log:
ERROR: No update from GPSD in 15 seconds or more, trying to reconnect.
INFO: Connected to a JSON-enabled GPSD version 3.17, turning on JSON mode.
I have tried with gpsctl to set mode to NMEA, but it doesn't work...
Does anybody has the same problem?
My specs:
Kali 2017.3, fully updated.
Kali VM / Vmware Fusion / Mac Book Pro late 2013.
Bluetooh 4.0 dongle from icicu.
Awus036h