少校
- 注册时间
- 2008-7-29
- 金币
- 623 个
- 威望
- 86 个
- 荣誉
- 25 个
尚未签到
|
9. GPS
1 C) a4 w3 u1 w/ @( x4 L, I& Q
$ c+ J' G% l/ g1 Z X& y Kismet can integrate with a GPS device to provide coordinates for# @( i/ K; {: h0 y4 g
networks it has detected. These can be logged to the pcap file when PPI% n7 y9 A1 w0 |. d( J* |
logging is enabled, and to an XML file for processing with Kismap, included ; w. b' F$ F/ t, x* C
with the Kismet source, as well as other third-party tools.1 {( |+ C8 y% r& g! U+ e( p8 [ q
' }$ u# E4 Y& X" T( g" u
Kismet can use the GPS network daemon 'gpsd', or can parse NMEA directly
2 P# G3 i1 ?* ]. |3 S+ U* L0 u8 N" {" _ from the GPS unit.& _4 `) s3 t) a+ D: e1 o% j) f# l% c5 y# G4 @
0 o4 Y* O7 C/ z! ^0 Q! @1 x1 Q _5 Z
The GPS is controlled with the Kismet server config, kismet.conf. For X/ w, ]9 {" |3 _2 C0 O
using gpsd with gpsd running on the local system:
0 k# h9 ]* @8 A# d+ i3 x
8 l: _) z2 _& t" G gps=true
1 F( R6 Y! g% S* B4 V gpstype=gpsd+ N" }6 `) T5 t2 G
gpshost=localhost:2947) ]& l5 z4 Q2 F$ L
gpsmodelock=false+ v4 {: K% G. ]9 Q5 ~/ K7 M: q
gpsreconnect=true
2 I# A* u0 i! v: N
6 R; m. p5 p! k% r1 X3 Y N( Z By specifying gpsreconnect, if gpsd crashes or Kismet otherwises looses1 f7 B8 s. i" i" q
its connection, it will be re-established. Gpsmodelock compensates for8 h; w" ^# Y7 T4 Z" n* t0 T3 {
certain broken GPS/GPSd combinations, where the GPS never reports a
" G% q3 U7 V- F8 K0 h valid lock. By forcing a gpsmodelock=true, Kismet assumes the GPS
9 B( G3 j* U# _9 ~# k! i always has a 2d lock.
1 \7 k$ }1 o! s2 T$ Y! w; p0 c* d5 J% {) u$ ^1 M, L# v
For using a GPS device without gpsd:5 p3 Q8 f4 l% j+ L5 t. c% V5 J8 u9 g
- l) U* T, Z# K+ V2 x
gps=true7 c5 [: G/ y3 V& j
gpstype=serial' U+ c4 X2 e s/ b; x: i
gpsdevice=/dev/ttyS05 j! l2 |) A% c. i. P
gpsreconnect=true! ^+ ~# b: F5 ~' |; v9 M
1 ?; u9 | }& Z The gpsdevice parameter should be set to the proper serial device for
5 B5 e+ {4 X* L0 q. g your GPS. For USB GPS devices this will typically be /dev/ttyUSB0, and / T# l' x) h) \! l5 r h! R
for bluetooth devices this will often by /dev/rfcomm0 or similar. Check; D3 f, r& M2 @# K8 H3 N
the output of "dmesg" after plugging in your device.
/ A/ _- M+ a. ^9 F O/ @/ b! g1 S4 l+ i# w. ^# \/ N- V
Kismet cannot know the location of a network, it can only know the
' C c- r: w/ a% ? ~ location where it saw a signal. By circling the suspected location,
0 a4 u0 R1 u! ?% }* M you can provide more GPS data for processing the network center point.
6 R1 V, a! S* r! @: f$ R" L% `3 I- A: t& e9 t k
Kismet keeps running averages of the network location, however this is
3 J* s% \. i/ c2 \. ?1 i not incredibly accurate, due to averaging and imprecision in
9 w8 @3 Q+ q3 p* E floating point math. For plotting network locations, the GPSXML file7 T+ P, o& A3 `% m/ i
should be used. |
|