Skip to content

Commit 35e398c

Browse files
committed
Pineapple Mk7 wardriving
1 parent 08a0f66 commit 35e398c

10 files changed

Lines changed: 96 additions & 1 deletion

‎_posts/2023-05-11-atak-zero-tier-tut.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Also install [ZeroTier](https://play.google.com/store/apps/details?id=com.zeroti
2020
Create an account on the [ZeroTier](https://www.zerotier.com/) website.
2121

2222
Then create a new network.
23-
![Create new network](/assets/images/createZTNetwork.PNG)
23+
![Create new network](/images/createZTNetwork.PNG)
2424

2525
## Network Config
2626
![Network Config](/assets/images/ztNetworkConfig.PNG)
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
---
2+
title: Wifi Pineapple Mk7 Wardriving
3+
author_profile: false
4+
toc: true
5+
toc_label: "Table of Contents"
6+
toc_icon: "cog"
7+
tags: wifi kismet mk7 pineapple openwrt hak5
8+
categories: self-hosted
9+
header:
10+
teaser: /assets/images/vps.PNG
11+
---
12+
# Pineapple Mk7
13+
14+
15+
## Wardriving
16+
17+
First you'll want to install a few dependencies in order to start wardriving.
18+
19+
You can use this script below, or just install the packages
20+
```bash
21+
#!/bin/bash
22+
23+
opkg update
24+
25+
opkg install gpsd gpsd-clients kismet kismet-capture-liux-wifi
26+
```
27+
## Kismet setup
28+
After installing the dependencies you will need to modify the kisment.conf file in `/etc/kismet/kismet.conf`
29+
30+
add this line in the `GPS` section: `gps=gpsd:host=localhost,port=2947`
31+
32+
## GPS Options
33+
34+
There are 2 options that you can use for your GPS module.
35+
1. A USB GPS dongle
36+
2. Android phone over Wi-Fi with GPSd Forwarder
37+
38+
## Option 2
39+
40+
Follow the steps below to setup wardriving with an Android Phone.
41+
42+
### GPSd
43+
---
44+
1. Download GPSd Forwarder for Android off of [Google Play](https://play.google.com/store/apps/details?id=io.github.tiagoshibata.gpsdclient) or [F-Droid](https://f-droid.org/packages/io.github.tiagoshibata.gpsdclient/)
45+
2. Open the app and set the IP address to the address of your pineapple. (Default is 172.16.42.1)
46+
3. Set the port to 9999
47+
48+
After you've donwloaded and setup the app. Connect your Android phone to the Pineapple via the management Wi-Fi.
49+
50+
### Wardriving Script
51+
---
52+
The following script assumes 2 things.
53+
54+
1. You do not have the 5Ghz wifi module for the pineapple.
55+
2. You are using GPSd for your GPS forwarding with an Android Phone.
56+
57+
```bash
58+
#!/bin/bash
59+
60+
pkill gpsd # kill any current gpsd process
61+
pkill kismet # kill any kismet process
62+
ifconfig wlan1 down # bring down wlan1
63+
ifconfig wlan2 down # bring down wlan2
64+
#ifconfig wlan3 down # if you have the 5GHz module oncomment this line
65+
66+
gpsd udp://172.16.42.1:9999 # Set the GPSD input from the android phone
67+
68+
sleep 1 # wait for a lock
69+
#gpspipe -w | grep -qm 1 '"mode":3'
70+
71+
UTCDATE=`gpspipe -w | grep -m 1 "TPV" | sed -r 's/.*"time":"([^"]*)".*/\1/' | sed -e 's/^\(.\{10\}\)T\(.\{8\}\).*/\1 \2/'`
72+
# SET THE PINEAPPLE'S CLOCK
73+
date -u -s "$UTCDATE"
74+
75+
# LAUNCH KISMET DAEMON
76+
# If you have the 5Ghz module you will need to add wlan3 to the config
77+
iwconfig wlan1 mode Monitor
78+
iwconfig wlan2 mode Monitor
79+
kismet -p /root/kismetlogs -t wardirve --override wardrive -c wlan1 -c wlan2
80+
```
81+
82+
Copy this script to your Wifi Pineapple. After you've copied it over and your Android phone is streaming GPS information over wifi you can begin this script.
83+
84+
`chmod +x <filename>` to make the script executable.
85+
86+
`./<filename>` to run the script
87+
88+
## Kismet UI
89+
If you want to modify other settings in Kismet you can start the service by typing:
90+
```bash
91+
kismet
92+
```
93+
in the terminal
94+
95+
Then navigate to `172.16.42.1:2501`.

‎assets/images/Activated.PNG‎

49.9 KB
Loading

‎assets/images/EvilPortal.PNG‎

55.6 KB
Loading

‎assets/images/EvilPortalPage.PNG‎

49.7 KB
Loading

‎assets/images/EvilPortalPin.PNG‎

5.4 KB
Loading

‎assets/images/GoogleEx.PNG‎

19.6 KB
Loading

‎assets/images/Pin.PNG‎

5.37 KB
Loading

‎assets/images/TestCreds.PNG‎

17.9 KB
Loading

‎assets/images/plugin.PNG‎

6.46 KB
Loading

0 commit comments

Comments
 (0)