少校
- 注册时间
- 2008-7-29
- 金币
- 623 个
- 威望
- 86 个
- 荣誉
- 25 个
尚未签到
|
9. GPS
D! y! t1 ^4 P; h( |" {: {, W2 ~# b) ]& g
Kismet can integrate with a GPS device to provide coordinates for" P) ` K# `1 V" X( c1 \* O5 Z
networks it has detected. These can be logged to the pcap file when PPI% K7 ~2 O8 T+ k8 Z: d$ P
logging is enabled, and to an XML file for processing with Kismap, included
Y6 y* K, f% y* y- f with the Kismet source, as well as other third-party tools.
g% H: m* `/ J( C1 X7 G' r H U* m
Kismet can use the GPS network daemon 'gpsd', or can parse NMEA directly
- `# J( _; J9 Y- B' Z from the GPS unit.
$ O& c9 M6 Q0 f1 H( t; F8 l A3 q/ ?
The GPS is controlled with the Kismet server config, kismet.conf. For
4 Q g# e' C; T4 C/ B using gpsd with gpsd running on the local system:( Z; j% E* J3 ^2 y6 d
- A: z: G! M( H! g# C: D5 k gps=true
$ Z/ X/ m$ B$ {" B5 V/ S" r/ T& ? gpstype=gpsd8 H# }5 T7 i+ i- d$ k# Z
gpshost=localhost:2947
- E9 K6 b+ M+ Y8 \1 ?) M8 S. V% D gpsmodelock=false
; t( m9 }" _/ O gpsreconnect=true
' R, ^$ w9 l- N' b( f! F" r# q \ E# W9 m
By specifying gpsreconnect, if gpsd crashes or Kismet otherwises looses2 N5 R# D! ]! }* o6 N; L
its connection, it will be re-established. Gpsmodelock compensates for5 D! u6 K- N; c" u; D: q2 W; E
certain broken GPS/GPSd combinations, where the GPS never reports a
3 L8 a+ G1 ]- J0 s7 H valid lock. By forcing a gpsmodelock=true, Kismet assumes the GPS' k1 n+ F, z; n( `( @
always has a 2d lock.$ ~- m- j+ C8 \9 B5 U
! _3 ^& _& p6 G) A* c For using a GPS device without gpsd:
4 o8 E& \$ c$ B- }; l" a9 c9 V6 {, U- h% x0 Q' z4 Z
gps=true
; C+ c+ J7 ]* b! A1 o) y( Q gpstype=serial
. `* r( F3 E7 f l' {# o y gpsdevice=/dev/ttyS01 O* ]' I6 `: N; M8 V
gpsreconnect=true9 o! }3 |% j9 T; {3 r; s
! y+ z- m9 E8 v
The gpsdevice parameter should be set to the proper serial device for: {+ L) S' {- s% h/ O
your GPS. For USB GPS devices this will typically be /dev/ttyUSB0, and
% [5 m0 K& X1 q4 j( S for bluetooth devices this will often by /dev/rfcomm0 or similar. Check0 g0 Z V2 [% {. p
the output of "dmesg" after plugging in your device.
1 \/ K: f. N9 ?0 o( R6 ]6 Z3 a. t5 \. b9 l9 z$ E) y/ T
Kismet cannot know the location of a network, it can only know the
8 j* ]3 \1 G% h' k+ k) J location where it saw a signal. By circling the suspected location, Q2 A/ V1 n# J8 R3 c( ~% t
you can provide more GPS data for processing the network center point.
2 P) Z' p- z! `' c& ?/ G5 w
) r0 y! [, O* Q8 y! x Kismet keeps running averages of the network location, however this is
' j+ r& r6 p* Q' U: c4 ]/ }# K# v1 U not incredibly accurate, due to averaging and imprecision in
; p/ O) B" t' x3 f1 S floating point math. For plotting network locations, the GPSXML file
8 E" [# B) n5 A' G& m( l should be used. |
|