少校
- 注册时间
- 2008-7-29
- 金币
- 623 个
- 威望
- 86 个
- 荣誉
- 25 个
尚未签到
|
9. GPS
& A6 m/ a& u3 O, ?
. j- F% U4 \8 s0 k6 p2 [8 l2 L; F Kismet can integrate with a GPS device to provide coordinates for. e8 E" T0 J; p8 d/ j
networks it has detected. These can be logged to the pcap file when PPI
! Y' s- x- Q% }- X; P& } logging is enabled, and to an XML file for processing with Kismap, included 7 s4 c* v5 }4 V& \; |4 j
with the Kismet source, as well as other third-party tools.9 j# Q& y8 P3 _+ i/ r% I+ w
3 I+ @% n. E* d' p9 H) P Kismet can use the GPS network daemon 'gpsd', or can parse NMEA directly' T# K3 e! B/ e1 n
from the GPS unit.
1 O" J* `5 w' O% s, Z2 O \: y. V; k& C+ L; J% U$ i- u v
The GPS is controlled with the Kismet server config, kismet.conf. For: w: v l4 C. o! o
using gpsd with gpsd running on the local system:8 e* O0 q- ]8 X9 J. T/ j, i4 z
2 a N2 O0 M5 [2 l% O
gps=true
7 g, v F; \- M gpstype=gpsd
& \, R" Y# {: R& e2 W$ [# v gpshost=localhost:29474 G U; e! X. S4 h4 x" f
gpsmodelock=false
) i: R. T. K; _3 b gpsreconnect=true
* n: \1 I& a) _
& F# J5 N8 V6 D( V( d& U$ s' v t By specifying gpsreconnect, if gpsd crashes or Kismet otherwises looses
: R: g4 I8 v5 y0 B its connection, it will be re-established. Gpsmodelock compensates for
+ Z7 _4 k6 P% J, f$ ? certain broken GPS/GPSd combinations, where the GPS never reports a# N, C% |" t' X, p$ x1 W4 m0 P- D
valid lock. By forcing a gpsmodelock=true, Kismet assumes the GPS% b6 F/ D3 o1 ?: \$ X2 v
always has a 2d lock.
0 @ q$ Q( t% P v! Z
* a# ?1 g' M7 ~% r+ f) s: T$ X- R For using a GPS device without gpsd:
' |" X, b7 d; W2 C5 ]4 N' e, {- g( O ?$ V
gps=true
8 T& i$ P- R6 P+ y4 ? gpstype=serial
4 U. V8 J1 T5 L9 a' w* M; q4 w gpsdevice=/dev/ttyS08 Y9 @$ {) C! x5 g# \
gpsreconnect=true2 G# b4 z8 i- C6 Y
* f0 S+ e4 \3 @! Z. b& h
The gpsdevice parameter should be set to the proper serial device for
$ E2 G2 S/ m+ @ your GPS. For USB GPS devices this will typically be /dev/ttyUSB0, and
. R. L* h% P5 S* i8 k1 k for bluetooth devices this will often by /dev/rfcomm0 or similar. Check
! ?5 P' P/ C5 s3 \) N0 R, S the output of "dmesg" after plugging in your device.
( i2 n' p6 f7 i$ B! S: P/ V, B) C0 ^ d; i) V- I
Kismet cannot know the location of a network, it can only know the$ u3 z4 D* `9 F
location where it saw a signal. By circling the suspected location,( D! @# A7 o% O* l. |1 o
you can provide more GPS data for processing the network center point.
& ~3 [" d0 x& S n3 \ I9 n/ H5 X# s8 e6 {
Kismet keeps running averages of the network location, however this is! Z4 p) H# z& k
not incredibly accurate, due to averaging and imprecision in
& V( W. c; R) _, [( H% { floating point math. For plotting network locations, the GPSXML file7 x% C1 n+ ^1 K6 i) E( I" E
should be used. |
|