少校
- 注册时间
- 2008-7-29
- 金币
- 623 个
- 威望
- 86 个
- 荣誉
- 25 个
尚未签到
|
9. GPS. a0 f4 s$ a% ?+ e! i5 U5 m
9 z- Q+ {: q) a9 h% L
Kismet can integrate with a GPS device to provide coordinates for
; o5 [5 J# r) c- P# g networks it has detected. These can be logged to the pcap file when PPI# n9 J* g; z u
logging is enabled, and to an XML file for processing with Kismap, included
8 f% N, I H! l6 U$ T4 U, Q with the Kismet source, as well as other third-party tools.% x3 @7 V% b: R$ Z7 g
& k' Y- I' r5 d F1 L Kismet can use the GPS network daemon 'gpsd', or can parse NMEA directly$ `3 ?% D' R- }% V! s
from the GPS unit.
' w- @9 e) z6 h% @6 J% P, j9 r
0 k) _; x, u4 G7 r; o+ c2 v The GPS is controlled with the Kismet server config, kismet.conf. For
: v# @, [) |2 R O/ v using gpsd with gpsd running on the local system:5 }9 F C0 A x0 K8 ?
. Z4 |8 f, }' i9 ]8 x. m! b) S gps=true, j; f; t: F! k
gpstype=gpsd/ ~% z/ p) e) X6 Y; r
gpshost=localhost:2947
* i% b; O! [7 k. T' @5 W gpsmodelock=false
3 o1 k) X1 ~- r# [% U* F gpsreconnect=true# a8 Y: Z, G. w4 Q/ _
! r* F) L2 v/ t( i1 I+ D
By specifying gpsreconnect, if gpsd crashes or Kismet otherwises looses
4 b6 t( d" t7 T9 |+ i its connection, it will be re-established. Gpsmodelock compensates for
I2 V' n; c; j$ k certain broken GPS/GPSd combinations, where the GPS never reports a
8 q$ ^& [3 y% O) Y6 p2 x) b valid lock. By forcing a gpsmodelock=true, Kismet assumes the GPS- a; r4 _; H8 R' E
always has a 2d lock.
0 @( x4 b; u! q% E9 Q5 v8 b1 T* g- ^; g/ v& S# E
For using a GPS device without gpsd:" r/ T7 W# C$ x- N
' Z* E* d+ @: X" x& D: ^! b1 z, j
gps=true; r8 M% R) s, G0 v) P! @! ~
gpstype=serial
/ ]1 r4 A, t! F4 o) X gpsdevice=/dev/ttyS0( }) d0 S8 V' o8 H. R; {8 V
gpsreconnect=true
1 S' h1 _* l5 L' z- a" m& q+ V: A5 W- E( w! z' t4 B
The gpsdevice parameter should be set to the proper serial device for
" Z3 b/ ^; e9 m2 p, o/ Z your GPS. For USB GPS devices this will typically be /dev/ttyUSB0, and # C3 _9 y# w8 ^5 w& q$ ^4 k
for bluetooth devices this will often by /dev/rfcomm0 or similar. Check) ]5 o: m- e( t7 M+ B
the output of "dmesg" after plugging in your device.
) ]* E9 X, |$ M5 p+ y7 V! X* T
( X2 f1 f) N' D8 ]! S% T Kismet cannot know the location of a network, it can only know the, H" X: k' O: @/ ^* u0 y/ }
location where it saw a signal. By circling the suspected location,
. u& N6 v" o6 a4 h. v you can provide more GPS data for processing the network center point.
2 p8 |: Y' [7 p) `) E/ H) h0 I# c* c, _5 R, B
Kismet keeps running averages of the network location, however this is2 q6 v' `+ n/ c! j: \# _
not incredibly accurate, due to averaging and imprecision in
# {% p1 {/ F: b- G6 l/ ?% p+ L* e floating point math. For plotting network locations, the GPSXML file: j5 P; d( b7 Q5 _- C8 L
should be used. |
|