Welcome Guest [Log In] [Register]
Welcome to Pwnie Express. We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Please note you need to use a valid email address to register for member access.

Get your questions answered by other members, share your ideas and feedback, get your problems solved, and give back by helping others! It only takes a minute to get started. Registration is simple, fast, and completely free!

Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
GPS Into Kismet; GPS Data into Kismet
Topic Started: Jun 24 2013, 03:48 AM (3,433 Views)
binkybear
Member Avatar

Hi all,

Here is updated instructions to get GPS data into Kismet with the Pwnpad. If you use mybackup image for Kali all you have to do is start Bluenmea then run Kismet (bluetooth and GPS must be enabled). But for those still using the awesome Pwnpad, here you go!

Installation

Download BlueNMEA 2.1.3 (or through Google Play Store/F-Droid)

Code:
 
apt-get install gpsd socat
nano /usr/local/etc/kismet.conf


Try to match the configuration with mine below under the GPS section:

Posted Image

Code:
 
nano /opt/pwnpad/scripts/kismet.sh


Replace the quotes with the following:

Code:
 
"(socat TCP:127.0.0.1:4352 PTY,link=/tmp/gps & gpsd /tmp/gps) & kismet; bash"


Installation Completed

Turn on Bluetooth & GPS
Run BlueNMEA application
Start Kismet script

Posted Image

Congratulations! It works! Of course you will see networks and your home GPS will not be blacked out like a redacted document. From here you can run Giskismet if you have it installed. I've made an awesome script that will build make a database, build a Google Earth KML, zip/transfer/delete to SDCARD. You can get it here:

https://raw.github.com/binkybear/Kali-Pwnpad-Scripts/master/scripts/giskismet.sh

Still not working? Troubleshoot!

Is GPS on?
Is Bluetooth on?
Make sure you write "127.0.0.1" instead of localhost.

Run BlueNMEA application

In Terminal 1 -

Code:
 
socat TCP:127.0.0.1:4352 PTY,link=/tmp/gps


Open Terminal 2 (roothsell) -

Let's check if were receiving GPS data:

Code:
 
cat /tmp/gps


If your screen is flooding with coordinates it's working. ctrl-c and lets check gpsd

Code:
 
gpsd -D 2 -N /tmp/gps


Check for any errors. I get dbus msg but it still works.
Edited by binkybear, Aug 14 2013, 01:11 AM.
Offline Profile Quote Post Goto Top
 
Replies:
Guest
Unregistered

Guest
Aug 20 2013, 04:09 PM
I confirmed with cat /tmp/gps that I am getting GPS data flowing. But everytime I start Kismet it is not picking up GPS data. I confirmed that:

gps=true
gpstype=gpsd

And other settings match

GPSD 3.4 loaded.

Dave
I was able to get to work by changing the gpsd parameters in the socat line above to:

gpsd -n -N /tmp/gps

So not daemonizing seems to work.
Quote Post Goto Top
 
Guest
Unregistered

First off Awesome post, this is exactly what we wanted from the pwn pad. I did, however, have a couple questions.

First, has this been tried with the new pwn pad 2014? We just got ours and I've been trying to get this to work with no luck. I'm pretty sure I have the config files correct (gps=true, gpstype=gpsd, 127.0.0.1) I even tried setting the type to serial with no luck. Ive done the gpsd and socat troubleshooting and have gotten good results from both, it seems like the kismet simply is not picking up the gps data.

This leads to my second question, really more of a clarification, when you say replace the quotes in the .sh file I assume you mean instead of "Kismet captures saved to..." it should say "socat TCP..." if that is not the issue then I am at a loss.

Thanks for your help,

Jerry
Quote Post Goto Top
 
binkybear
Member Avatar

Guest
Jan 10 2014, 08:11 PM
First off Awesome post, this is exactly what we wanted from the pwn pad. I did, however, have a couple questions.

First, has this been tried with the new pwn pad 2014? We just got ours and I've been trying to get this to work with no luck. I'm pretty sure I have the config files correct (gps=true, gpstype=gpsd, 127.0.0.1) I even tried setting the type to serial with no luck. Ive done the gpsd and socat troubleshooting and have gotten good results from both, it seems like the kismet simply is not picking up the gps data.

This leads to my second question, really more of a clarification, when you say replace the quotes in the .sh file I assume you mean instead of "Kismet captures saved to..." it should say "socat TCP..." if that is not the issue then I am at a loss.

Thanks for your help,

Jerry
Hi Jerry,

I don't have a 2014 Pwnpad (you lucky dog) but this should work for you. This setup works fine on my pwnpad running kali and there's not reason it shouldn't work on yours. Make sure you also have a tmp folder in your root (/tmp). Here are my files:

/etc/kismet/kismet.conf
kismet.sh
giskismet.sh

it looks like my config has it running as localhost instead of 127 also but it may require some playing around. Plus obviously bluenmea is necessary. Let me know if those files help.
Offline Profile Quote Post Goto Top
 
Guest
Unregistered

Aha! That is helpful! So it looks like the issue is my kismet.sh file is completely different. First off the file structure has changed slightly so it is now stored here /opt/pwnix/pwnpad-scripts. The new file looks like this

#!/bin/bash
#Script to start Kismet wireless sniffer

#Set term type to vt100 for now, only thing that displays curses properly atm
export TERM=vt100

#Set ctrl c (break) to gracefully stop wlan1mon that kismet creates
trap f_endclean INT
trap f_endclean KILL

f_endclean(){
ifconfig wlan1mon down
ifconfig wlan1 down
}

##################################################
clear
echo
echo "Kismet captures saved to /opt/pwnix/captures/wireless/"
echo
echo

wait 3

cd /opt/pwnix/captures/wireless/

kismet

f_endclean


Although I can find my way around I am still fairly new to linux so any suggestions on how to proceed are much appreciated (i.e. can I just add lines 3-17 from your file into the new one)

-Jerry
Quote Post Goto Top
 
binkybear
Member Avatar

Guest
Jan 11 2014, 11:04 PM
Aha! That is helpful! So it looks like the issue is my kismet.sh file is completely different. First off the file structure has changed slightly so it is now stored here /opt/pwnix/pwnpad-scripts. The new file looks like this

#!/bin/bash
#Script to start Kismet wireless sniffer

#Set term type to vt100 for now, only thing that displays curses properly atm
export TERM=vt100

#Set ctrl c (break) to gracefully stop wlan1mon that kismet creates
trap f_endclean INT
trap f_endclean KILL

f_endclean(){
ifconfig wlan1mon down
ifconfig wlan1 down
}

##################################################
clear
echo
echo "Kismet captures saved to /opt/pwnix/captures/wireless/"
echo
echo

wait 3

cd /opt/pwnix/captures/wireless/

kismet

f_endclean


Although I can find my way around I am still fairly new to linux so any suggestions on how to proceed are much appreciated (i.e. can I just add lines 3-17 from your file into the new one)

-Jerry
Yeah mine is a bit different but a few things should stay the same. Actually all you have to do is change this part from:

Code:
 

cd /opt/pwnix/captures/wireless/

kismet

f_endclean


to:
Code:
 

cd /opt/pwnix/captures/wireless/

(socat TCP:127.0.0.1:4352 PTY,link=/tmp/gps & gpsd /tmp/gps) & kismet;

f_endclean


You may want to test it first by making a copy and running that (kismet2.sh) or something like that. But yeah also make sure you have gpsd installed and a tmp folder to cover your bases.

edit

I should also mention that my script launches giskismet and creates a google earth kml. You would just have to change some folder locations. But that's entirely up to you.
Edited by binkybear, Jan 12 2014, 12:21 AM.
Offline Profile Quote Post Goto Top
 
Guest
Unregistered

Thanks, binkybear, for all your help that did it. I was having some issues with gpsd not stopping for a little while but it seems I've got it working correctly now.

Cheers and thanks again,

Jerry
Quote Post Goto Top
 
droidshadow

Binky!

I am going to have to try this out...

Anyone get this working with the Nexus 7 2013?

-droidshadow
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Pwn Pad Community Edition Support Forum · Next Topic »
Add Reply