少校
- 注册时间
- 2008-7-29
- 金币
- 623 个
- 威望
- 86 个
- 荣誉
- 25 个
尚未签到
|
9. GPS3 O8 ` w. W4 M( `, Y
3 Z4 U* b2 y+ ~5 e Kismet can integrate with a GPS device to provide coordinates for
# {% D) x" Q% p' m# c( G networks it has detected. These can be logged to the pcap file when PPI
5 M# A$ T- F D5 ]1 U logging is enabled, and to an XML file for processing with Kismap, included
" C5 Y3 d1 I5 [* ] with the Kismet source, as well as other third-party tools.8 }, {; X4 B2 ?
^, w# c' w R( g# S/ J Kismet can use the GPS network daemon 'gpsd', or can parse NMEA directly( q" t. U- v+ h, I+ v0 U( g- k
from the GPS unit.
! d5 @6 [+ z0 s% ^5 [0 M _6 B, v- N4 u# I% h1 s
The GPS is controlled with the Kismet server config, kismet.conf. For
) i' Y4 M6 ]& B4 W; o using gpsd with gpsd running on the local system:
|/ R, ^! ?& E7 T+ x7 J; U- `1 A$ i: K+ b! H$ B
gps=true
( n( `+ |7 q" h2 [0 V0 o. H9 d gpstype=gpsd5 G& _% u' y7 p- N
gpshost=localhost:2947+ b5 N, W' m; L& N) Y3 a3 d
gpsmodelock=false
- a* |" B. k2 W- t gpsreconnect=true
* @0 D+ m8 ~4 K+ h+ ^. m2 b+ p6 T9 [. B& }
By specifying gpsreconnect, if gpsd crashes or Kismet otherwises looses
9 h4 d4 {+ k& r' k6 h. [6 Q its connection, it will be re-established. Gpsmodelock compensates for( n! F5 U1 @" R0 y8 |/ c* o5 j) ^
certain broken GPS/GPSd combinations, where the GPS never reports a
# [5 U6 ^1 |5 } d3 B) g valid lock. By forcing a gpsmodelock=true, Kismet assumes the GPS4 y, K9 l/ a$ n |
always has a 2d lock.
$ f# F4 ^7 M3 G2 Z. [! F) u. p* M1 U
For using a GPS device without gpsd:
; k& }. x/ T1 b% a. g% I: Z7 p) Z n! h
gps=true
- z) d4 u4 i2 ^, i& N gpstype=serial0 b+ f2 f$ g b8 x( u
gpsdevice=/dev/ttyS07 h+ P9 S# ]3 E k/ l
gpsreconnect=true2 o, f `7 H, u* N) [
% y: M" j& {6 `# M
The gpsdevice parameter should be set to the proper serial device for
- }, V3 D0 @' G2 m0 D your GPS. For USB GPS devices this will typically be /dev/ttyUSB0, and 0 X) E. c5 z8 X6 w
for bluetooth devices this will often by /dev/rfcomm0 or similar. Check
' p9 g+ i: X4 P+ h& H the output of "dmesg" after plugging in your device.
! v. r' t7 N, T, e3 [7 f; R2 b2 J/ i' ?
Kismet cannot know the location of a network, it can only know the
& H, U3 i. s- K: b location where it saw a signal. By circling the suspected location,
5 T& ^7 m1 \9 u% Z you can provide more GPS data for processing the network center point.# I3 i- A3 n( M \7 \8 S5 c/ U7 C
T& L4 t' b' q- O, @( C; F; h
Kismet keeps running averages of the network location, however this is8 e8 i7 X: t, t( W
not incredibly accurate, due to averaging and imprecision in! m; y2 G9 ^! h$ G
floating point math. For plotting network locations, the GPSXML file
* z6 V* F% n6 Y5 n/ e% i should be used. |
|