少校
- 注册时间
- 2008-7-29
- 金币
- 623 个
- 威望
- 86 个
- 荣誉
- 25 个
尚未签到
|
9. GPS
9 w/ W1 d5 @$ {! L( {4 J: C
* `" h; u2 F( U+ c, p& } Kismet can integrate with a GPS device to provide coordinates for
+ }" Q! m% ?3 u/ y) a+ \ }& e networks it has detected. These can be logged to the pcap file when PPI
( |2 N( I% N& C logging is enabled, and to an XML file for processing with Kismap, included
% Y2 p |* J- r, ^; y5 i with the Kismet source, as well as other third-party tools.
4 Y& O9 t5 I. [# X1 d% h2 s& Y2 g( d
# Q! P7 ~' x2 F# c6 G8 O Kismet can use the GPS network daemon 'gpsd', or can parse NMEA directly
! b ?- T! a7 ~- ~4 v" e from the GPS unit.) Y( w# j7 H0 Q; l8 c/ _
& {+ R |1 L2 N0 p- _ The GPS is controlled with the Kismet server config, kismet.conf. For0 }3 j1 t5 j+ v6 c& U
using gpsd with gpsd running on the local system:0 |7 b- l* X+ |" `6 `) {& A% h
' h; C/ ?% B/ H" W& @5 ` gps=true
( [. o/ _/ @$ A o, ?3 I gpstype=gpsd/ v/ c! `0 g( v. k0 u- p
gpshost=localhost:29475 X) ~4 Z8 @/ G9 n$ j9 a
gpsmodelock=false
( T! }6 S$ t( v* e& A gpsreconnect=true
7 @0 a1 I. d8 Q$ Q3 y; m& H0 k B4 e+ t/ R! R8 x* p
By specifying gpsreconnect, if gpsd crashes or Kismet otherwises looses6 T- n1 S, i, G" l% |
its connection, it will be re-established. Gpsmodelock compensates for
4 c& p8 {/ W0 R5 w6 ]# w( R certain broken GPS/GPSd combinations, where the GPS never reports a
0 ~( F# B. V$ j; U. u valid lock. By forcing a gpsmodelock=true, Kismet assumes the GPS
- N1 C) M# n0 y3 a5 s always has a 2d lock.
; y8 B {) b" y' L$ v s+ O# } w) R1 ^
For using a GPS device without gpsd:9 i4 s& s6 x6 p# _! @) b
$ N7 f9 q J- u5 L
gps=true
1 R& K1 m( ^+ m: {$ A D7 x gpstype=serial0 v4 ]: M( ` F: R8 I! g
gpsdevice=/dev/ttyS0
6 _& J' h6 q' ?' v4 k gpsreconnect=true
3 I4 v* |& i' C3 f6 J
6 A/ U! W" k) d1 S4 C8 b* d The gpsdevice parameter should be set to the proper serial device for8 p) C/ U# }0 B/ ~# a$ s3 X
your GPS. For USB GPS devices this will typically be /dev/ttyUSB0, and 0 }6 K- P8 H$ k9 e- u' M0 L
for bluetooth devices this will often by /dev/rfcomm0 or similar. Check
! o; C# t/ U0 q! H1 y7 d the output of "dmesg" after plugging in your device.
8 H N1 N$ u* x3 E) ^# a% J* B$ ^, D' S* k
Kismet cannot know the location of a network, it can only know the2 Y$ H% j; L- h2 X. d
location where it saw a signal. By circling the suspected location,
' J7 ~" ?0 A( {4 [ you can provide more GPS data for processing the network center point.
4 x, z6 V& c9 n
" [7 E; x+ b3 x( r+ S5 B. v% A Kismet keeps running averages of the network location, however this is
5 J9 r7 X& O7 ?3 I not incredibly accurate, due to averaging and imprecision in
, @8 k0 P: d- S& `0 W2 _ floating point math. For plotting network locations, the GPSXML file
3 Z8 W! h$ `: u9 y- _ should be used. |
|