少校
- 注册时间
- 2008-7-29
- 金币
- 623 个
- 威望
- 86 个
- 荣誉
- 25 个
尚未签到
|
9. GPS+ I, u" |2 a* o; k- i
' T' W, X$ q: {+ q Kismet can integrate with a GPS device to provide coordinates for
" \3 z* \! s0 [/ F. @* ? networks it has detected. These can be logged to the pcap file when PPI
' }8 Y) h! t5 c& Q- J logging is enabled, and to an XML file for processing with Kismap, included
- X7 \9 g% v% E$ Y5 y* i7 d with the Kismet source, as well as other third-party tools.6 s% y- ~# V' d% B; w; l- h
+ A- P2 G, f' t7 m s Kismet can use the GPS network daemon 'gpsd', or can parse NMEA directly1 }4 S; C' L5 f3 b
from the GPS unit.
% a2 }4 T7 c+ {3 V: [4 r& y3 F$ O; y/ ?8 R n
The GPS is controlled with the Kismet server config, kismet.conf. For
0 p7 k& Z* e, B8 u/ B6 s5 ? using gpsd with gpsd running on the local system:, p0 e1 i6 r6 X2 J
2 e# A) e i6 {% K gps=true
. j( Y. k A# Z( } gpstype=gpsd9 {& M/ f6 T2 r, w5 \3 V. `% @
gpshost=localhost:2947
/ [* \ c; o' {- ` gpsmodelock=false
0 L$ e# s! N/ S d0 k gpsreconnect=true
" | `: p* \1 f0 z& T1 d
$ l6 J- C _ T By specifying gpsreconnect, if gpsd crashes or Kismet otherwises looses2 R4 f+ q3 c; R+ [/ |. O( l7 k( K* J' ^
its connection, it will be re-established. Gpsmodelock compensates for
% d6 }% f9 c+ g* y. z# w+ k3 v) b certain broken GPS/GPSd combinations, where the GPS never reports a0 v) ]) g( C, W: f5 t
valid lock. By forcing a gpsmodelock=true, Kismet assumes the GPS ?) g' s! D0 V u7 W5 q, M# S, Y
always has a 2d lock.7 }3 ~7 ?9 u. g @3 M
; R/ F/ c H: K) R1 |" \
For using a GPS device without gpsd: T- d+ u8 R1 e/ L6 Y0 x
3 L, n% g% C5 P, y7 E2 n
gps=true
% y9 e% ]* z3 G- Y+ d gpstype=serial
8 n! T8 [1 k6 v& M$ F gpsdevice=/dev/ttyS0
& e" c$ t, R c7 P gpsreconnect=true
& a* N, L' B0 l; D/ x+ w
$ k- p4 b% d8 Z# n* o The gpsdevice parameter should be set to the proper serial device for
" l. c) E( j) X: {8 O3 ^* z your GPS. For USB GPS devices this will typically be /dev/ttyUSB0, and ( x* v# [- @' m* p' f( D
for bluetooth devices this will often by /dev/rfcomm0 or similar. Check
( @: v6 Q9 d% ] the output of "dmesg" after plugging in your device.
( D, C) @8 z. |- g9 f6 t; k& a) h1 t) T/ d9 |" _# Z# d1 h/ ^
Kismet cannot know the location of a network, it can only know the! S. T$ M$ ]2 L- s b9 J& a
location where it saw a signal. By circling the suspected location,: v9 E2 F' O: d3 q. F
you can provide more GPS data for processing the network center point.
$ ~% D" K: I! W6 ^ `4 O6 L' A: q) u2 W+ d* F8 s" l; o" R& `% P
Kismet keeps running averages of the network location, however this is
7 \9 |) @$ |/ ? not incredibly accurate, due to averaging and imprecision in
, K8 h! `8 A) x2 {; a {1 | floating point math. For plotting network locations, the GPSXML file
a/ T) Z" c( J8 z% \( G+ L6 |) e: E should be used. |
|