少校
- 注册时间
- 2008-7-29
- 金币
- 623 个
- 威望
- 86 个
- 荣誉
- 25 个
尚未签到
|
9. GPS! L, p$ ^. @3 t: z* U
8 h! g' J+ U. P. s2 E) Z8 Y/ t Kismet can integrate with a GPS device to provide coordinates for7 M. N' {. X+ }' G) A
networks it has detected. These can be logged to the pcap file when PPI) b+ S& v6 n; Z" ^: Y. v1 j4 ]% E' ?
logging is enabled, and to an XML file for processing with Kismap, included
5 B( F$ \% N/ V/ v* S- ^ Z with the Kismet source, as well as other third-party tools.7 Y, M0 M7 s( r3 A6 ], A4 V$ Y
8 f5 ]. o; r7 j% S, a6 V
Kismet can use the GPS network daemon 'gpsd', or can parse NMEA directly
7 {/ m `( A4 z from the GPS unit.
1 j" h! n5 m* ~$ ?3 t; k6 [& t
$ T2 @' T& K! V) X7 b% Y! ^ The GPS is controlled with the Kismet server config, kismet.conf. For9 V6 k; l+ h0 T
using gpsd with gpsd running on the local system:
% C& F0 O! R) |2 i ^/ X
3 \6 H# x! M8 w; i# o7 V; Q$ X gps=true: G( o7 M5 Z% g: e
gpstype=gpsd
. B) q5 K/ j; Z Z% n9 T: K6 G gpshost=localhost:2947
- R% B6 c3 {' Y* m: E, | gpsmodelock=false5 n1 n* A4 I: |% e0 e
gpsreconnect=true
- c- Q( |0 T& @) O% I4 j8 k: S m' u R% ]
By specifying gpsreconnect, if gpsd crashes or Kismet otherwises looses W1 A7 \! ?- S0 p5 b9 O3 J( H" T
its connection, it will be re-established. Gpsmodelock compensates for, A& {, s" l7 ~ t
certain broken GPS/GPSd combinations, where the GPS never reports a% j ?, v7 @, v( f
valid lock. By forcing a gpsmodelock=true, Kismet assumes the GPS
+ j `7 o7 n w* F) M1 M0 I always has a 2d lock.! L3 s; Q! a! D" |/ ?* L+ T
4 i( N& ?, p2 X+ m4 T9 X For using a GPS device without gpsd:" M9 ?2 O% x" b( s2 ~
* T0 m# R* @* G- i gps=true5 E& X u4 g/ d3 a; n
gpstype=serial) y* e- ?* l; T9 K8 C7 }
gpsdevice=/dev/ttyS0" ?# G$ ~* D, D7 O' R
gpsreconnect=true" H p- i. ~4 ~ w" z- O3 N
% i, ~& i. s- Y' B$ j
The gpsdevice parameter should be set to the proper serial device for
$ a% W# V# v; d4 C9 L4 }# ` your GPS. For USB GPS devices this will typically be /dev/ttyUSB0, and ! e" N# N8 C' B0 q
for bluetooth devices this will often by /dev/rfcomm0 or similar. Check
. `0 Q: V+ g2 b3 U the output of "dmesg" after plugging in your device.. k" b- @2 M7 k9 \
/ f3 k4 @$ t. G
Kismet cannot know the location of a network, it can only know the
, g" B9 p0 \/ p) G location where it saw a signal. By circling the suspected location,% m2 b7 c1 P* K) M% B* Q
you can provide more GPS data for processing the network center point.
* G: H' v3 t* i e$ t* w7 L$ ~, |) }* f9 T
Kismet keeps running averages of the network location, however this is
- n0 j; ?$ Y3 q- c! z2 W* X not incredibly accurate, due to averaging and imprecision in
6 ?5 Z( W1 E+ a: U( t2 K3 ^" v$ D floating point math. For plotting network locations, the GPSXML file
: T; \9 V, z, O! t should be used. |
|