GithubHelp home page GithubHelp logo

karelvendla / pieviltwin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nickjongens/pieviltwin

0.0 1.0 0.0 137 KB

Raspberry Pi WiFi Evil Twin Captive Portal

License: GNU General Public License v3.0

Shell 21.50% HTML 45.70% PHP 3.22% CSS 29.57%

pieviltwin's Introduction

PiEvilTwin Portable Access Point

A fake credential harvesting rogue captive portal for Raspberry Pi ZeroW / 3 / 3 B+ using Kali Linux

I do NOT take any responsibility for your actions while using any material provided from this repository. Performing attacks on public users is illegal and should require permission from all users within the radius of the network.

Software:

Balena Etcher: https://www.balena.io/etcher/

Kali Linux 2019.3 for Raspberry Pi 3,3+: https://images.offensive-security.com/arm-images/kali-linux-2019.3-rpi3-nexmon-64.img.xz

Fresh install of Kali Linux ARM 64-bit: Flash the Kali Image to the Pi using Etcher OR follow the steps below if you are using a linux OS to image the SD Card:

#Download the image
wget https://images.offensive-security.com/arm-images/kali-linux-2019.3-rpi3-nexmon-64.img.xz

#Extract
unxz kali-linux-2019.2a-rpi3-nexmon-64.img.xz

#Find the SD Card device name
sudo fdisk -l
#In my case it was /dev/mmcblk1

#Flash the image to the SD
sudo dd if=/home/PROFILE NAME/kali-linux-2019.2a-rpi3-nexmon-64.img of=/dev/mmcblk1 status=progress bs=4M

Insert the SD Card into the Pi and ssh to the new system with the following details:

username: root
password: toor

Please ensure you regenerate the SSH keys and update the password, otherwise you will be hacked.

cd /etc/ssh/
mkdir default_kali_keys
mv ssh_host_* default_kali_keys/

dpkg-reconfigure openssh-server
passwd
exit

To reconnect, you'll need to clear the key from your system. on linux and macOS it'll usually give you a command to run e.g:

ssh-keygen -f "/home/username/.ssh/known_hosts" -R "IP/Hostname of Pi"

This is performed differently on each system.

Once you've done this, reconnect using your new password, install dependencies and run the install script:

sudo apt-get update
sudo apt-get install -y git php dnsmasq dnsmasq-base macchanger hostapd
git clone https://github.com/NickJongens/PiEvilTwin
cd PiEvilTwin
chmod +x install.sh
sudo ./install.sh
sudo reboot

During installation, macchanger may ask whether or not MAC addresses should be changed automatically - choose "No". The startup script will perform this task more reliably.

If you receive a similar message with "Restart services during package upgrades without asking?" - choose "Yes". This is required for cron to work.

After the reboot, wait 30 seconds and then look for an access point named "Google Free WiFi."

Connecting to it from an Apple, Android or Windows device should automatically bring up a captive portal login screen. The Windows captive portal is a bit harder to introduce properly. (BETA) It requires a folder called 'redirect' with it's own 'index.html' file redirecting to the root website index.html

Credentials are logged in /var/www/html/usernames.txt. Website data will be able to be modified under /var/www/html

To use an external WiFi Adapter for better range, please change the 'wlan0' value in the following files:

hostapd.conf
PiEvilTwinStart.sh 

To:

Your WiFi adapter interface name e.g 'wlan1' without quotes before running the install script.

I do NOT take any responsibility for your actions while using any material provided from this repository. Performing attacks on public users is illegal and should require permission from all users within the radius of the network.

pieviltwin's People

Contributors

nickjongens avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.