少校
- 注册时间
- 2008-7-29
- 金币
- 623 个
- 威望
- 86 个
- 荣誉
- 25 个
尚未签到
|
9. GPS: t7 ]* x# u. [
( v3 H( ^0 y5 z0 \# S+ C% W
Kismet can integrate with a GPS device to provide coordinates for2 B3 K- g. |) C- k& n& I9 c8 o
networks it has detected. These can be logged to the pcap file when PPI/ h+ C6 j' p4 U% |% [" s
logging is enabled, and to an XML file for processing with Kismap, included
) Q8 d* N, [; D4 a T% x' P7 d2 d( a with the Kismet source, as well as other third-party tools.
, `# L) n- \7 J& B$ ]1 m$ b8 J, Q
7 i" l# X4 j5 i1 A Kismet can use the GPS network daemon 'gpsd', or can parse NMEA directly- t% K2 m; R6 X, R. y) R! y: \
from the GPS unit.
; I) i2 u4 ]1 i
+ x, x/ {6 D" M0 D- o9 ?) o$ l The GPS is controlled with the Kismet server config, kismet.conf. For
3 y) T8 M* u: W. C$ E using gpsd with gpsd running on the local system:
3 M/ ^6 T) M6 V7 [, X% f" W9 ]& b% g+ \
gps=true
% {0 U$ s& ^& Z7 z( P gpstype=gpsd
7 I, N. E, p) t gpshost=localhost:29479 x8 V- `5 H' o4 L9 Q
gpsmodelock=false
2 L/ P% m$ {7 p | gpsreconnect=true
! R# R8 |* e) F0 \0 z* q9 j. J- E6 F3 i( C. B; j4 P
By specifying gpsreconnect, if gpsd crashes or Kismet otherwises looses
2 H; K* l* F0 l its connection, it will be re-established. Gpsmodelock compensates for4 M* z6 |0 C8 R" M$ b$ \2 F9 R
certain broken GPS/GPSd combinations, where the GPS never reports a7 m* N; R: ?6 F4 L( \/ C! z
valid lock. By forcing a gpsmodelock=true, Kismet assumes the GPS
) M3 D; N3 S2 I7 v9 |: D always has a 2d lock.8 P7 e* r0 j+ o# L! @
8 u# U% x- X: U& x! V! d& D% f5 K3 a
For using a GPS device without gpsd:' r9 o0 x4 J& a, [! D7 L" @: R
3 V+ e1 W- O: W% ^* ~: I gps=true- p: ]" j2 E+ { _% b: w$ F; X# z; |
gpstype=serial
# \' l3 I, n$ ]2 Q- n' F gpsdevice=/dev/ttyS0
1 _' T# T8 ]7 T( r) |9 E5 r gpsreconnect=true/ p- r" p: Y% ^6 R% j
8 j5 P5 R9 c- S8 k i The gpsdevice parameter should be set to the proper serial device for
' E. v& w% \8 t* G* u3 r5 h4 D your GPS. For USB GPS devices this will typically be /dev/ttyUSB0, and
5 x( k$ A4 c$ U7 H1 T* d1 J7 e for bluetooth devices this will often by /dev/rfcomm0 or similar. Check6 n( {0 E9 R3 [! J3 t5 s2 a
the output of "dmesg" after plugging in your device.
1 _6 b- p' I: j4 H$ y9 y$ O# m* t6 ^- y; b
Kismet cannot know the location of a network, it can only know the
( I3 b E. P0 G location where it saw a signal. By circling the suspected location,' @) [! Y) h" z o# w f
you can provide more GPS data for processing the network center point.3 Q/ B) X1 [4 V9 H# P$ v
* Y# n& ^# ~, H" u Kismet keeps running averages of the network location, however this is2 K5 k0 Y( E, L+ a4 N/ n
not incredibly accurate, due to averaging and imprecision in: o8 g0 y5 y3 r2 e1 x0 g T
floating point math. For plotting network locations, the GPSXML file3 ~' {0 |* X* @& b- x; a
should be used. |
|