少校
- 注册时间
- 2008-7-29
- 金币
- 623 个
- 威望
- 86 个
- 荣誉
- 25 个
尚未签到
|
9. GPS
/ j2 i. L' }$ q6 `7 s6 Z1 c7 ?0 G' |) C# {
Kismet can integrate with a GPS device to provide coordinates for8 N0 \' D3 t- v/ W
networks it has detected. These can be logged to the pcap file when PPI$ ^0 X1 i1 Z# b$ S* u
logging is enabled, and to an XML file for processing with Kismap, included # p% f, a) M( E/ }; G0 R6 N
with the Kismet source, as well as other third-party tools.
" L b: t @8 f1 L* |3 C% a( w. C W& g$ q u
Kismet can use the GPS network daemon 'gpsd', or can parse NMEA directly
# X) e- k5 C: ^7 y+ \& j from the GPS unit.6 s/ E9 K2 D( R4 G. e2 f% O! H
! w: t4 H, F6 n2 z- D& r The GPS is controlled with the Kismet server config, kismet.conf. For! k0 x# a) i2 f: W- K
using gpsd with gpsd running on the local system: \8 U# o* ]2 h% T p7 Q8 M* j
c2 z2 k" t# n/ t# j, Q gps=true
- U: s" h5 k [# V gpstype=gpsd h. D9 i6 E: [0 |
gpshost=localhost:2947% j8 O; z# F: O, _8 A
gpsmodelock=false
) _% z+ k* G' s; T gpsreconnect=true& r# h$ B8 b/ Z3 P; o$ ~2 B
/ K6 D. ^0 Y4 _& u! d
By specifying gpsreconnect, if gpsd crashes or Kismet otherwises looses
& j/ k& T; x K, e+ P4 W its connection, it will be re-established. Gpsmodelock compensates for
. n5 V' m: T7 ~. b9 \ certain broken GPS/GPSd combinations, where the GPS never reports a
! [5 C3 v/ n, _9 U valid lock. By forcing a gpsmodelock=true, Kismet assumes the GPS3 Q' K0 r3 f# D7 u9 s1 p, U
always has a 2d lock.9 O2 w. Y' Q" \7 O/ o7 d# p
% D5 ]" J+ B/ o1 @; b& L$ u
For using a GPS device without gpsd:) N/ X5 \1 ?9 o6 d2 K0 D- r& Z4 T
! [- D4 K' z8 U( d& U gps=true9 C' o. t; p! F3 g9 s3 |+ e4 \4 E
gpstype=serial4 k5 {* L$ R* P# ]3 M' L
gpsdevice=/dev/ttyS04 B2 p0 ~2 P' n% `: \
gpsreconnect=true
& k: }: d- U/ [1 _( b2 A8 r) J6 [4 A; D5 X7 k
The gpsdevice parameter should be set to the proper serial device for8 E( r. X2 j& v
your GPS. For USB GPS devices this will typically be /dev/ttyUSB0, and 4 q$ D6 B: \8 @ v
for bluetooth devices this will often by /dev/rfcomm0 or similar. Check
8 Q) {* N, V& N- U1 T: g the output of "dmesg" after plugging in your device.
* Y% [4 A: [9 u: w, h+ m2 M5 k& v
: f+ M! u/ e5 S U1 ~. u9 K Kismet cannot know the location of a network, it can only know the* Y/ I/ ]9 ?+ K, A8 u
location where it saw a signal. By circling the suspected location,
3 T ~7 `/ G! y6 ? you can provide more GPS data for processing the network center point.$ w/ \/ Z0 Q8 s4 X7 t8 n% x2 w
1 ]7 S$ ], Q! n Z& I/ r: e
Kismet keeps running averages of the network location, however this is8 X* l0 x2 a! L3 q( w
not incredibly accurate, due to averaging and imprecision in
& H5 t3 c- n" [- O floating point math. For plotting network locations, the GPSXML file
' I9 _( k- e+ X should be used. |
|