少校
- 注册时间
- 2008-7-29
- 金币
- 623 个
- 威望
- 86 个
- 荣誉
- 25 个
尚未签到
|
9. GPS! m T0 n( q0 E; J O
8 t7 q6 q/ J: f4 J Kismet can integrate with a GPS device to provide coordinates for
- b! W" `" y5 l: G' R5 F! l b networks it has detected. These can be logged to the pcap file when PPI
" l% h8 I) d' W: r; n logging is enabled, and to an XML file for processing with Kismap, included
( ]# |' S' Z" U with the Kismet source, as well as other third-party tools.+ s5 D( }; Y' u- C- p7 f" u
( e, ^3 ?: M( H
Kismet can use the GPS network daemon 'gpsd', or can parse NMEA directly
/ X3 g: F. T% Z% p, B0 r3 p1 h# x from the GPS unit.
7 m! Q, {3 Y2 C0 \( O! Q1 ?2 E5 ?1 I, Y& g5 g% Y2 w$ g" L
The GPS is controlled with the Kismet server config, kismet.conf. For
N; d A, X, S1 f. s, q using gpsd with gpsd running on the local system:! C. c6 x1 M. s R2 V' Y
; s4 L: s+ x5 n3 X5 W+ n( R" r
gps=true
2 C4 V2 x4 t; c. }( j# I4 E7 | gpstype=gpsd
, |7 H, f q7 S4 j& p' k gpshost=localhost:2947
I0 H( E; K2 k$ b1 I gpsmodelock=false
7 y7 H8 [3 ?6 h* b gpsreconnect=true
+ n" _; w- d/ _& Z$ X/ x; F% P4 ~/ F9 z: f
By specifying gpsreconnect, if gpsd crashes or Kismet otherwises looses
7 K7 z/ o+ A% n& ~5 [ its connection, it will be re-established. Gpsmodelock compensates for
+ y& g1 p! \; }9 [. x certain broken GPS/GPSd combinations, where the GPS never reports a( g; Y% q8 h y8 X V# @
valid lock. By forcing a gpsmodelock=true, Kismet assumes the GPS
# h3 w8 C g7 [6 z always has a 2d lock.+ Q0 R; s8 ^4 u* \5 {( ^
* e' [/ z: h/ G C. d For using a GPS device without gpsd:. l. N4 w6 p6 z1 a
+ W/ Y$ ?+ k; D8 }& a' {
gps=true
. ]9 L2 N4 I. g H0 I7 p gpstype=serial
2 h' u# s% L2 P2 Y gpsdevice=/dev/ttyS0: F, O3 M# a# O/ ~9 N) N! s
gpsreconnect=true0 N- n4 g% d6 j6 h6 j- i/ w
" N" h9 e2 T' I The gpsdevice parameter should be set to the proper serial device for' a( f) R9 U; x" y- g) O u
your GPS. For USB GPS devices this will typically be /dev/ttyUSB0, and
* r* |! G$ E9 Q8 ]' O) Y for bluetooth devices this will often by /dev/rfcomm0 or similar. Check8 S; \0 _8 n/ T0 M$ L. {
the output of "dmesg" after plugging in your device.
* ?* a0 h7 t/ w+ J- m7 a
' y! j' l. z" f! ], k Kismet cannot know the location of a network, it can only know the4 c9 `( T' _; ^' A. e
location where it saw a signal. By circling the suspected location,
5 k0 N8 ]7 ]: J you can provide more GPS data for processing the network center point.
2 \' A5 N7 A# [' w& Z& M( H# \
% Z3 `+ ]; h* ~4 N# a Kismet keeps running averages of the network location, however this is
: j1 r8 [& c6 e a/ e0 T. ] not incredibly accurate, due to averaging and imprecision in& |3 I6 F2 ~/ k0 |
floating point math. For plotting network locations, the GPSXML file
, j V3 A7 [1 t2 \ should be used. |
|