少校
- 注册时间
- 2008-7-29
- 金币
- 623 个
- 威望
- 86 个
- 荣誉
- 25 个
尚未签到
|
9. GPS
3 C/ a/ ]1 Q: ?# ~* u, u; p, H" [+ P u
7 }% Y# l% w0 H5 |; r' v Kismet can integrate with a GPS device to provide coordinates for( U2 w. M+ ^2 E: p9 m
networks it has detected. These can be logged to the pcap file when PPI; S7 j4 q7 T# S
logging is enabled, and to an XML file for processing with Kismap, included 4 U- n3 y" x+ m8 w4 h
with the Kismet source, as well as other third-party tools.
" A9 p- R& D+ }4 K$ K4 R1 ~- ?
7 X2 H9 B$ L/ N! w( r Kismet can use the GPS network daemon 'gpsd', or can parse NMEA directly
1 i7 Y* {% B: ?: k+ B from the GPS unit.
7 C+ ~3 p) e& z3 L: l. J" u9 v$ j; s& W
The GPS is controlled with the Kismet server config, kismet.conf. For
% V% L% E. s# x6 W using gpsd with gpsd running on the local system:% w7 L2 p: y- I( J4 T% v
7 e( m; K3 F# u" s gps=true
% U5 m7 B- C* \" M8 g gpstype=gpsd/ l: }8 X& F* i2 c
gpshost=localhost:2947
( C r$ o1 U5 W% `1 M' W gpsmodelock=false4 L N7 \7 f' B, Y
gpsreconnect=true
2 {# M5 |. M, x/ k( S% `; D4 A; ^0 {5 c( j/ g* W
By specifying gpsreconnect, if gpsd crashes or Kismet otherwises looses' ]1 T" [$ u4 c! c
its connection, it will be re-established. Gpsmodelock compensates for) p6 x8 b* L/ c5 W
certain broken GPS/GPSd combinations, where the GPS never reports a2 B% O6 Q" R: K- |7 U- m
valid lock. By forcing a gpsmodelock=true, Kismet assumes the GPS
8 E- y6 n8 l4 T3 D+ y$ _ always has a 2d lock.
, b3 p8 H7 ?8 U! Q6 L/ g6 a) K9 S l7 u2 i
For using a GPS device without gpsd:5 U6 `2 T& w/ ]8 X, R. S
0 \* A* \; o& f gps=true6 ^+ Y; {0 S+ Y( m- |* F2 q+ r1 p2 b
gpstype=serial: i: g$ q3 a& i+ u; P
gpsdevice=/dev/ttyS05 G0 E/ `9 {' M& v7 n
gpsreconnect=true
( _9 b: ~, A' u7 b( R, ^. z9 f& c+ u; v5 [3 h F( H2 F4 t1 ]" ^
The gpsdevice parameter should be set to the proper serial device for
3 N. |, ?: b9 k4 m( A your GPS. For USB GPS devices this will typically be /dev/ttyUSB0, and . ]3 o, P$ v# Y% _* D: d
for bluetooth devices this will often by /dev/rfcomm0 or similar. Check
+ f3 [7 k; J' K$ H2 m the output of "dmesg" after plugging in your device.
( B0 x1 V0 E, |) \2 G& h' |$ n# r" _$ I6 a
Kismet cannot know the location of a network, it can only know the" B8 d4 K' A3 [7 `& D+ J3 Y
location where it saw a signal. By circling the suspected location,
7 l/ k) _/ y1 R# r+ Q$ N6 c) Q you can provide more GPS data for processing the network center point.. L6 t- f( g- V3 B) F4 [* h
3 s8 }! F7 Q; v# `# q* |
Kismet keeps running averages of the network location, however this is; ?: A, }# t: W, P
not incredibly accurate, due to averaging and imprecision in" o! R9 @% q7 b
floating point math. For plotting network locations, the GPSXML file* {* _7 K/ v8 j& d2 h8 J
should be used. |
|