少校
- 注册时间
- 2008-7-29
- 金币
- 623 个
- 威望
- 86 个
- 荣誉
- 25 个
尚未签到
|
9. GPS# W- t* V; _- E. ~- M0 p1 F
+ Q, B t: n% ~* ~
Kismet can integrate with a GPS device to provide coordinates for5 m" U5 l& ?# S; Q: Z% t
networks it has detected. These can be logged to the pcap file when PPI9 X% E0 `: \8 {* {; U& l
logging is enabled, and to an XML file for processing with Kismap, included : A" o6 f. C6 i: I+ N' [
with the Kismet source, as well as other third-party tools.9 k6 Z7 T8 M; I- {. F
4 t6 l2 A0 J0 K- ?, d
Kismet can use the GPS network daemon 'gpsd', or can parse NMEA directly+ y9 G. M; v" N. N
from the GPS unit.
" @) C% Z, d A- r
6 C3 g# ^3 W$ `+ t The GPS is controlled with the Kismet server config, kismet.conf. For% p- V* Z1 J3 o: a6 N
using gpsd with gpsd running on the local system:
/ D, r2 P M2 Q& E [) O; C" k
- P8 [! {! ~$ F B: R6 t' { gps=true
# s# I+ e& H5 j5 A7 Z R. Y gpstype=gpsd7 ?9 b: q1 U2 u7 P) d5 N9 a7 L
gpshost=localhost:29472 a4 e! a! o K
gpsmodelock=false* G3 t4 x7 L+ r! B1 m
gpsreconnect=true* b& A/ U; w% q/ [- k" U9 C/ r, |- X9 M
. C" E1 {) ]% y) s3 _0 Y% S! @% d By specifying gpsreconnect, if gpsd crashes or Kismet otherwises looses
7 C6 H( Z: E3 _ its connection, it will be re-established. Gpsmodelock compensates for
5 h7 R7 ~0 j' Y' ?2 K- q certain broken GPS/GPSd combinations, where the GPS never reports a* T+ l7 p O- z
valid lock. By forcing a gpsmodelock=true, Kismet assumes the GPS
; A) [) ~8 T4 k7 J9 ` always has a 2d lock.
9 H# S2 Q) M1 o: G/ X0 a5 \" X7 N. h0 D, I4 H
For using a GPS device without gpsd:
]5 f4 k/ T8 P L7 d/ g+ Z: z# _! [* w# }7 b' r1 i) r% e
gps=true X: O0 F& s1 r, Z( g8 Z
gpstype=serial
, o' |8 a* Y: u" M- Z gpsdevice=/dev/ttyS0
7 w( R, z+ `. Z* R7 d% ^ gpsreconnect=true
( ^$ `/ C% j& F! r: [( b, e
0 Z, j) _3 M' B# B The gpsdevice parameter should be set to the proper serial device for; ?5 h& A4 p" ?* A
your GPS. For USB GPS devices this will typically be /dev/ttyUSB0, and
1 v; i5 a9 W3 M) @# x6 N& z for bluetooth devices this will often by /dev/rfcomm0 or similar. Check
+ A# Y. ~1 Y1 j# V$ I0 R the output of "dmesg" after plugging in your device.8 P$ n/ W+ f( Y% ?
8 M8 r, ?3 U2 R: s: A3 d' q- H5 L2 V
Kismet cannot know the location of a network, it can only know the& y* @# W, u2 n; [; F. R' N% p
location where it saw a signal. By circling the suspected location,
% J4 }0 b! S; j2 @7 R6 Y, ~7 l O you can provide more GPS data for processing the network center point.
8 h/ u, v; |: V
" W( x5 R! X0 I/ u# C! ]# u Kismet keeps running averages of the network location, however this is0 ]; D- ]4 f! n% L* J: v/ ^
not incredibly accurate, due to averaging and imprecision in
/ |: q) e( K6 Z+ a7 u. t- z floating point math. For plotting network locations, the GPSXML file
! P: U6 C9 M4 e6 j3 t should be used. |
|