少校
- 注册时间
- 2008-7-29
- 金币
- 623 个
- 威望
- 86 个
- 荣誉
- 25 个
尚未签到
|
9. GPS
* u: v- ]- ~3 a( Q8 h
" Y% Y8 N- V& W7 E: g Q Kismet can integrate with a GPS device to provide coordinates for% j. _( U3 W p* E" Q, G; M P
networks it has detected. These can be logged to the pcap file when PPI5 x( E8 C$ K0 P4 p
logging is enabled, and to an XML file for processing with Kismap, included
# ?. D" \: S" N5 K6 p ~5 s) m2 E1 g with the Kismet source, as well as other third-party tools.3 w; ?& k+ I7 r W$ c3 `: {; f
7 A& k, i/ | s6 ?
Kismet can use the GPS network daemon 'gpsd', or can parse NMEA directly
. x0 f: P# ^$ ]! ? from the GPS unit.2 B. h/ ]3 B% p% o$ P
, A# }, F& I3 n$ K# I
The GPS is controlled with the Kismet server config, kismet.conf. For/ d |$ z9 |; h" L
using gpsd with gpsd running on the local system:* \# |' _! t7 r# v& G; h6 I
" d9 I( e6 ?% c( j" ` f" \
gps=true9 F4 a, B- S" [7 c
gpstype=gpsd( D8 u0 m5 T/ M* L( @; C9 h% P& X
gpshost=localhost:29477 x; ]' m& F- |- y0 ?# L) _
gpsmodelock=false( @" a3 _" h: `$ V# ]8 C8 @7 ?4 b
gpsreconnect=true* ^: U# c9 O7 ]' w+ `+ l) ?& u& ?
! v* B# a4 g9 }: @% n- r$ [ By specifying gpsreconnect, if gpsd crashes or Kismet otherwises looses
) f7 s% K+ i3 Q0 x3 t) G its connection, it will be re-established. Gpsmodelock compensates for' y* Y1 U0 m+ [
certain broken GPS/GPSd combinations, where the GPS never reports a4 @. z9 b+ q8 @( g7 M
valid lock. By forcing a gpsmodelock=true, Kismet assumes the GPS
% |% |0 R; R2 k0 \. g always has a 2d lock.+ \% [5 t. v1 k, h# J5 v
4 ~/ }; R3 y% f. K For using a GPS device without gpsd:% R$ M4 t9 |( W7 F+ m W4 B
& b% d+ ~+ E* Q2 J6 X gps=true4 `4 W$ b4 f% h N! E6 ` J
gpstype=serial
. q9 _! n! n9 d" m: o1 R( e% b gpsdevice=/dev/ttyS02 i( y( r' g* r. X" q
gpsreconnect=true" O" C2 ]; R3 n0 u
4 G; y0 i; D6 ~. N" n b+ W The gpsdevice parameter should be set to the proper serial device for. ]6 _+ {7 ~# d- ]! A9 r
your GPS. For USB GPS devices this will typically be /dev/ttyUSB0, and / q7 D0 ?: y# L$ C4 [7 | n' T- Q
for bluetooth devices this will often by /dev/rfcomm0 or similar. Check7 ?' t0 K: l& _
the output of "dmesg" after plugging in your device.
3 i" {* @: n( b) {/ A x
9 t' n* i, Z4 _1 C9 C6 ]( u Kismet cannot know the location of a network, it can only know the
/ j1 K$ v7 ^7 C% ^+ L/ p! {9 b2 } location where it saw a signal. By circling the suspected location,* E) y7 e4 A* I# v$ H
you can provide more GPS data for processing the network center point.1 \* p9 Y, d9 K) n% l
. v+ x# v5 U/ p9 x9 Z Kismet keeps running averages of the network location, however this is: z2 N! j }* [" w9 I" _
not incredibly accurate, due to averaging and imprecision in
# |7 x6 T* ~' \+ P! _$ l floating point math. For plotting network locations, the GPSXML file& k2 j2 ~, o. T: ]: I0 W
should be used. |
|