Difference between revisions of "WiFi-Pumpkin"

From Embedded Lab Vienna for IoT & Security
Jump to navigation Jump to search
 
Line 1: Line 1:
== Summary ==  
== Summary ==  


Create a [https://en.wikipedia.org/wiki/Rogue_access_point rogue Wi-Fi access point] on [https://en.wikipedia.org/wiki/Raspberry_Pi Raspberry Pi].
Create a [https://en.wikipedia.org/wiki/Rogue_access_point rogue Wi-Fi access point] on [[Raspberry Pi 3, Model B+, WLAN, BT|Raspberry Pi]].


== Requirements ==
== Requirements ==
Line 13: Line 13:
=== Setup ===
=== Setup ===


==== Touchscreen ====
==== [[Raspberry Pi 7" Display Touch Screen LCD|Touchscreen]] ====


* Connect the small ribbon cable to the connector on the top of the board
* Connect the small ribbon cable to the connector on the top of the board
Line 19: Line 19:
* Connect the white ribbon cable to the connector on the board
* Connect the white ribbon cable to the connector on the board
* Connect the four jumper wires to the 5V, GND, SCL and SDA pins on the display driver board
* Connect the four jumper wires to the 5V, GND, SCL and SDA pins on the display driver board
* Mount your [https://en.wikipedia.org/wiki/Raspberry_Pi Raspberry Pi] onto the four spacers
* Mount your [[Raspberry Pi 3, Model B+, WLAN, BT|Raspberry Pi]] onto the four spacers
* Connect the white ribbon to the Display Connector of the [https://en.wikipedia.org/wiki/Raspberry_Pi Raspberry Pi]
* Connect the white ribbon to the Display Connector of the [[Raspberry Pi 3, Model B+, WLAN, BT|Raspberry Pi]]
* Connect the jumper wires (assuming your [https://en.wikipedia.org/wiki/Raspberry_Pi Raspberry Pi] is in front of you with the [https://en.wikipedia.org/wiki/General-purpose_input/output GPIO] on the right side):
* Connect the jumper wires (assuming your [[Raspberry Pi 3, Model B+, WLAN, BT|Raspberry Pi]] is in front of you with the [https://en.wikipedia.org/wiki/General-purpose_input/output GPIO] on the right side):
** GND to the third pin down on the right hand side
** GND to the third pin down on the right hand side
** 5V to the second pin down on the right
** 5V to the second pin down on the right
Line 27: Line 27:
** SDA to the second pin down on the left hand side
** SDA to the second pin down on the left hand side
** Click [https://thepihut.com/blogs/raspberry-pi-tutorials/45295044-raspberry-pi-7-touch-screen-assembly-guide here] for more detailed information of the assembly
** Click [https://thepihut.com/blogs/raspberry-pi-tutorials/45295044-raspberry-pi-7-touch-screen-assembly-guide here] for more detailed information of the assembly
* Connect your keyboard and mouse to the [https://en.wikipedia.org/wiki/Raspberry_Pi Raspberry Pi]
* Connect your keyboard and mouse to the [[Raspberry Pi 3, Model B+, WLAN, BT|Raspberry Pi]]
* Connect the [https://www.alfa.com.tw/WiFi%20USB%20Antenna.html ALFA] wireless interface to the [https://en.wikipedia.org/wiki/Raspberry_Pi Raspberry Pi]
* Connect the [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter|ALFA]] wireless interface to the [[Raspberry Pi 3, Model B+, WLAN, BT|Raspberry Pi]]
* Do NOT power on yet
* Do NOT power on yet


Line 34: Line 34:


* Download, unzip and install [https://www.offensive-security.com/kali-linux-arm-images/ Kali Linux RaspberryPi 2 and 3] (version 2019.1) on your SD card with the PC
* Download, unzip and install [https://www.offensive-security.com/kali-linux-arm-images/ Kali Linux RaspberryPi 2 and 3] (version 2019.1) on your SD card with the PC
* Insert the SD card into the [https://en.wikipedia.org/wiki/Raspberry_Pi Raspberry Pi] and connect it with the power source
* Insert the SD card into the [[Raspberry Pi 3, Model B+, WLAN, BT|Raspberry Pi]] and connect it with the power source
* Login with username "root" and password "toor"
* Login with username "root" and password "toor"
* Open a terminal and update:
* Open a terminal and update:
Line 77: Line 77:
== Usage ==
== Usage ==


* Connect to the Internet with the internal interface of the [https://en.wikipedia.org/wiki/Raspberry_Pi Raspberry Pi] (either wired or wireless)
* Connect to the Internet with the internal interface of the [[Raspberry Pi 3, Model B+, WLAN, BT|Raspberry Pi]] (either wired or wireless)
* Identify the name of [https://www.alfa.com.tw/WiFi%20USB%20Antenna.html ALFA] wireless interface (wlan1 in my case):
* Identify the name of [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter|ALFA]] wireless interface (wlan1 in my case):


   iwconfig
   iwconfig


* Set [https://www.alfa.com.tw/WiFi%20USB%20Antenna.html ALFA] wireless interface to [https://en.wikipedia.org/wiki/Monitor_mode monitor mode]:
* Set the [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter|ALFA]] wireless interface to [https://en.wikipedia.org/wiki/Monitor_mode monitor mode]:


   ifconfig wlan1 down
   ifconfig wlan1 down
Line 95: Line 95:


* Check the [https://en.wikipedia.org/wiki/List_of_WLAN_channels channel] of your target network (1 in my case)
* Check the [https://en.wikipedia.org/wiki/List_of_WLAN_channels channel] of your target network (1 in my case)
* Set your [https://www.alfa.com.tw/WiFi%20USB%20Antenna.html ALFA] to the appropriate [https://en.wikipedia.org/wiki/List_of_WLAN_channels channel]:
* Set your [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter|ALFA]] to the appropriate [https://en.wikipedia.org/wiki/List_of_WLAN_channels channel]:


   iwconfig wlan1 channel 1
   iwconfig wlan1 channel 1
Line 123: Line 123:
== Used Hardware ==
== Used Hardware ==


* [https://www.raspberrypi.org/products/raspberry-pi-3-model-b-plus/ Raspberry Pi 3 Model B]
* [[Raspberry Pi 3, Model B+, WLAN, BT]]
* Micro SD Card 8GB + adapter
* [[Kingston 8GB micro SD-HC class 4]]
* [https://www.raspberrypi.org/products/raspberry-pi-touch-display/ Raspberry Pi 7" Touchscreen Display]
* [[Raspberry Pi 7" Display Touch Screen LCD]]
* Micro USB charger 2.5 A for Raspberry Pi
* [[Goobay micro-USB Netzteil 2.5A for Raspberry Pi]]
* [https://www.alfa.com.tw/WiFi%20USB%20Antenna.html ALFA NETWORK AWUS036ACH]
* [https://www.alfa.com.tw/WiFi%20USB%20Antenna.html ALFA NETWORK AWUS036ACH]
* external mouse + keyboard
* external mouse + keyboard

Latest revision as of 13:00, 12 March 2019

Summary

Create a rogue Wi-Fi access point on Raspberry Pi.

Requirements

Description

Setup

Touchscreen

  • Connect the small ribbon cable to the connector on the top of the board
  • Fix the board to the screen with the four spacers
  • Connect the white ribbon cable to the connector on the board
  • Connect the four jumper wires to the 5V, GND, SCL and SDA pins on the display driver board
  • Mount your Raspberry Pi onto the four spacers
  • Connect the white ribbon to the Display Connector of the Raspberry Pi
  • Connect the jumper wires (assuming your Raspberry Pi is in front of you with the GPIO on the right side):
    • GND to the third pin down on the right hand side
    • 5V to the second pin down on the right
    • SCL to the third pin down on the left hand side
    • SDA to the second pin down on the left hand side
    • Click here for more detailed information of the assembly
  • Connect your keyboard and mouse to the Raspberry Pi
  • Connect the ALFA wireless interface to the Raspberry Pi
  • Do NOT power on yet

Installation

  • Download, unzip and install Kali Linux RaspberryPi 2 and 3 (version 2019.1) on your SD card with the PC
  • Insert the SD card into the Raspberry Pi and connect it with the power source
  • Login with username "root" and password "toor"
  • Open a terminal and update:
  apt-get update
  apt-get upgrade

Optional

  • Change the password:
  passwd
  • Regenerate SSH keys:
  dpkg-reconfigure openssh-server
  • Expand the image to use all SD card space:
  apt-get install gparted
  • Launch the tool and resize the ext4 partition to use the rest of the unused space

  git clone https://github.com/P0cL4bs/WiFi-Pumpkin.git
  cd WiFi-Pumpkin
  chmod +x installer.sh
  sudo ./installer.sh --install
  • Install dependencies:
  pip install -r requirements.txt

Usage

  • Connect to the Internet with the internal interface of the Raspberry Pi (either wired or wireless)
  • Identify the name of ALFA wireless interface (wlan1 in my case):
  iwconfig
  ifconfig wlan1 down
  iwconfig wlan1 mode monitor
  ifconfig wlan1 up
  • Start monitoring the networks:
  airodump-ng wlan1
  • Check the channel of your target network (1 in my case)
  • Set your ALFA to the appropriate channel:
  iwconfig wlan1 channel 1
  • Check the frequency:
  iwlist channel
  iwconfig wlan1
  wifi-pumpkin
  • A GUI opens
  • Go to "Settings":
    • Change "SSID" to the same name as your target network (OpenHotSpot in my case)
    • Change "Channel" to the channel you discovered before (1 in my case)
    • Change "Network Adapter" to your ALFA's name (wlan1 in my case)
    • My target network does not have any security, so I leave "Wireless Security" unchecked
  • Go to "Plugins":
  • Hit start and watch the clients connect to your rogue AP!!

Used Hardware

References