少校
- 注册时间
- 2008-7-29
- 金币
- 623 个
- 威望
- 86 个
- 荣誉
- 25 个
尚未签到
|
9. GPS: l+ M5 ~, o$ Q- Z* C7 A
e) h& B% y1 B
Kismet can integrate with a GPS device to provide coordinates for6 R* B" @& O+ N, f. o& ]+ v
networks it has detected. These can be logged to the pcap file when PPI
8 d/ W6 E+ o$ A+ p' v logging is enabled, and to an XML file for processing with Kismap, included
+ H0 g: P9 r- ]: h9 s/ }1 T with the Kismet source, as well as other third-party tools.' V+ z! h! t# G- t; G
8 W+ Z- ]( D2 x* D# n& u9 B Kismet can use the GPS network daemon 'gpsd', or can parse NMEA directly. H! F. [ t3 v; s$ H2 @2 E
from the GPS unit.6 B$ {; u$ |: p1 ]' ?3 F% y
: [9 S2 H8 J( |
The GPS is controlled with the Kismet server config, kismet.conf. For
, E+ j: n8 V! N8 F' x! x5 Y using gpsd with gpsd running on the local system:2 Y( D, ?4 V' U& E, I6 H9 f
5 Y$ ?8 n3 O/ q' W: l) M
gps=true5 @. I8 h& G @$ u- ^1 v
gpstype=gpsd
% x/ E2 `( }6 D gpshost=localhost:2947
: Y! t" v+ M4 j! T! T3 W gpsmodelock=false; H, ?4 `& k! t6 _
gpsreconnect=true# B S- B3 X* T
5 W7 P2 P3 i. F2 B By specifying gpsreconnect, if gpsd crashes or Kismet otherwises looses2 C: i- f+ A0 y) s) Q
its connection, it will be re-established. Gpsmodelock compensates for
- k" J/ Z; G5 p6 ~ certain broken GPS/GPSd combinations, where the GPS never reports a
( W5 i, Y6 a- K$ v# u3 g valid lock. By forcing a gpsmodelock=true, Kismet assumes the GPS
f% K0 y; t; j" q2 c% }& T% H always has a 2d lock.* U( M7 G" k& ?7 ^' Q
8 a( {- o! F' p4 O0 w* ] For using a GPS device without gpsd:0 a) t4 o- X$ s9 v) e: ]
! [. h+ ^' h0 P& [4 F gps=true
4 A( l4 [0 ^# W: w1 Y& t gpstype=serial5 c4 E3 e; W% d. n) c4 M% S
gpsdevice=/dev/ttyS0, z& h2 W$ E, h! e9 i# y7 i
gpsreconnect=true, p4 F5 x+ O: s% S# u2 k1 W4 P
, \; Z+ F4 g, Y2 e1 j The gpsdevice parameter should be set to the proper serial device for
# H6 Z, s6 C2 ], F$ f3 { your GPS. For USB GPS devices this will typically be /dev/ttyUSB0, and
3 K& Z ?5 t3 c' M0 h$ b, W for bluetooth devices this will often by /dev/rfcomm0 or similar. Check) h% R$ K3 z4 c: Q$ S/ D* b$ B! A
the output of "dmesg" after plugging in your device.- K6 j( ^! O$ y
4 B% I. Y+ m* k z7 J- p
Kismet cannot know the location of a network, it can only know the
" S/ z+ i& Q' w! u& E; H1 ] location where it saw a signal. By circling the suspected location,
% C% s1 I% H6 c0 ?6 D! H you can provide more GPS data for processing the network center point., O; k9 I2 u' B% s
! m+ [# {3 l: o& ^1 S, }& E+ D7 X
Kismet keeps running averages of the network location, however this is
4 ?* m5 N6 r5 J9 s6 G. V' }. H not incredibly accurate, due to averaging and imprecision in
/ q0 d7 V3 D' X: G* i, P& t# j! g floating point math. For plotting network locations, the GPSXML file" u9 w. q2 P9 Y3 ]* [7 R k; E+ B* W. L
should be used. |
|