少校
- 注册时间
- 2008-7-29
- 金币
- 623 个
- 威望
- 86 个
- 荣誉
- 25 个
尚未签到
|
9. GPS" f' i5 D7 |* R0 {7 b
9 S+ q; _5 n9 T, N" ~9 L4 a; D
Kismet can integrate with a GPS device to provide coordinates for! F0 W: |$ I+ h" \$ I3 i
networks it has detected. These can be logged to the pcap file when PPI
+ ~6 K9 E% m" V) s$ I X t logging is enabled, and to an XML file for processing with Kismap, included
# p6 Z, ~. g6 W1 a5 B( q with the Kismet source, as well as other third-party tools.
1 Y9 Q- N8 n* H4 v% j [4 w2 T
4 d6 |; ] v+ A; t Kismet can use the GPS network daemon 'gpsd', or can parse NMEA directly9 t; E4 c; |1 f& @
from the GPS unit.! E& M4 J# }$ O5 u( \8 l
, S7 ^% Y W. z: z6 | The GPS is controlled with the Kismet server config, kismet.conf. For' U# L' K$ i8 R! m
using gpsd with gpsd running on the local system:' ]9 k3 z; Y( }* `+ `' @8 }
4 } |7 F( [7 T% Q p3 I3 x
gps=true
a2 H6 Q/ p9 ]3 y! L7 M& L2 P/ U gpstype=gpsd& }0 v/ k! ?; H4 H7 z1 c; l! O# G- F
gpshost=localhost:2947
/ w% [6 H; D% J- W gpsmodelock=false
. k; I4 S2 ~9 P4 g' T! o( J7 h- N* D gpsreconnect=true% q' E% n: H/ \- J
7 M' T# ^! T1 U3 d: V' M( O
By specifying gpsreconnect, if gpsd crashes or Kismet otherwises looses
4 G. z+ [7 @! _+ I* u: c its connection, it will be re-established. Gpsmodelock compensates for! e, ?7 o0 p! d
certain broken GPS/GPSd combinations, where the GPS never reports a; G9 K) z6 g5 h" m
valid lock. By forcing a gpsmodelock=true, Kismet assumes the GPS
2 P+ E6 F; }/ o* P always has a 2d lock.
1 n0 E. x" \& _) v0 _! ]5 k" s: ~
' `6 z0 F# K% r( x) I. } For using a GPS device without gpsd:
4 ?" p% {, m8 \$ J& b& J/ m; v) S) D! ?! @3 I3 L1 \
gps=true
. ` A. F G" L5 k gpstype=serial
+ m. A9 u( B6 Y7 i/ D gpsdevice=/dev/ttyS0
& x+ P2 S+ p/ m. i" I. i- u gpsreconnect=true9 ?+ t; ~% z2 B
6 R! ?1 [- {" s! Z) `: _9 B The gpsdevice parameter should be set to the proper serial device for y* b1 t+ G, C) E1 y/ n
your GPS. For USB GPS devices this will typically be /dev/ttyUSB0, and
4 K8 t4 `* S; l' e+ f for bluetooth devices this will often by /dev/rfcomm0 or similar. Check
& c2 w$ Q. J0 e& _( t the output of "dmesg" after plugging in your device.2 o( |* a* x; }7 x5 i6 c% o9 M) Q" @ D
- a1 \) q# o4 H7 J4 P; A
Kismet cannot know the location of a network, it can only know the
; z6 N k$ [4 y& R7 i1 O location where it saw a signal. By circling the suspected location,; Q j: j/ k8 G5 w Z$ m; r
you can provide more GPS data for processing the network center point.. z0 L) W! f6 y
3 Y5 Y* F9 b* b, | j5 ?: h
Kismet keeps running averages of the network location, however this is
- l3 w" W1 S" U% o not incredibly accurate, due to averaging and imprecision in& x' w3 G: C% a4 U$ a8 N" G: t
floating point math. For plotting network locations, the GPSXML file% [ V @6 R4 O2 K8 e6 ^* z
should be used. |
|