少校
- 注册时间
- 2008-7-29
- 金币
- 623 个
- 威望
- 86 个
- 荣誉
- 25 个
尚未签到
|
9. GPS' |6 q, {0 ?: D1 a2 Z
2 L1 F% @* T, t0 v k
Kismet can integrate with a GPS device to provide coordinates for
9 d5 O3 W: p# B8 l7 G networks it has detected. These can be logged to the pcap file when PPI
, C# v b! Y) m+ s" V, G& u; `) K logging is enabled, and to an XML file for processing with Kismap, included ) G$ }2 J$ O, l3 `/ j1 n
with the Kismet source, as well as other third-party tools.* C4 X3 ?* F# b% W
+ i9 A4 Q, \: M. I! O" n _$ C9 }
Kismet can use the GPS network daemon 'gpsd', or can parse NMEA directly* ?! F+ u( r! y! [
from the GPS unit.
$ y, ~. k0 Y% j3 S: o
% C5 t+ e% m% p9 g5 M The GPS is controlled with the Kismet server config, kismet.conf. For
) o: s8 T9 P( X5 k; s6 `4 u: x using gpsd with gpsd running on the local system:
. ~& T' Y% c7 ^# b: r( I4 c! R5 r6 d1 V# u. u
gps=true9 U. Z1 P4 @2 ?6 y% g: c h
gpstype=gpsd
" a5 V8 K6 j" L6 p u4 b) Y gpshost=localhost:29473 C X2 A4 X/ V3 E7 a; z3 M3 \" [
gpsmodelock=false7 r: \4 z; o3 c, ]: R0 V/ e
gpsreconnect=true, w5 a# I8 p* V g# ^' g W- m* m S$ N
7 g+ H6 d z* [, A By specifying gpsreconnect, if gpsd crashes or Kismet otherwises looses$ C% O9 J1 z+ [$ v0 X
its connection, it will be re-established. Gpsmodelock compensates for
$ V d, U8 t% g: f+ [2 B certain broken GPS/GPSd combinations, where the GPS never reports a
: D" Q5 }6 B' I2 X valid lock. By forcing a gpsmodelock=true, Kismet assumes the GPS
. M2 q- x8 j! A( ~ always has a 2d lock.( Z1 g5 i" L9 P% K9 l: H
7 f3 U: o" Z8 Y
For using a GPS device without gpsd:
5 q: X h( R7 c- A
5 e) _+ W, X I gps=true
3 R" R# ?0 x/ Q" e/ y+ f$ V' ` gpstype=serial
. p- s; X( I8 W% k gpsdevice=/dev/ttyS0
, g+ V: B7 o' \* t9 q+ M gpsreconnect=true2 F, t5 M$ _4 p f
. ~. Q+ }4 o1 n$ {& f' {, k# r6 j
The gpsdevice parameter should be set to the proper serial device for
' _0 {5 P5 K" v your GPS. For USB GPS devices this will typically be /dev/ttyUSB0, and
8 k' y% l/ F# [0 [ for bluetooth devices this will often by /dev/rfcomm0 or similar. Check
% ^" G$ @+ G) f# ~# E the output of "dmesg" after plugging in your device.
) ]& |) l, M8 X8 _4 i$ Y
; A' u4 e1 t) p( W: `; v x9 n9 q Kismet cannot know the location of a network, it can only know the
# V: I; W$ L: W' i8 Q9 | location where it saw a signal. By circling the suspected location,. i2 {) F( ~" S0 D0 {7 s+ [1 K
you can provide more GPS data for processing the network center point.1 y& n# }; S5 y; \
1 u! Z7 X4 L& N" J. q Kismet keeps running averages of the network location, however this is. P6 c" ^: n* q# ~& V$ Z9 S
not incredibly accurate, due to averaging and imprecision in
* Q/ j) E3 [ Z3 q- f3 j floating point math. For plotting network locations, the GPSXML file8 T1 U; `0 d& j( H9 R
should be used. |
|