Coder Social home page Coder Social logo

furiousfowl / pifi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hariss-gills/pifi

0.0 0.0 0.0 22 KB

Whenever the Raspberry Pi Device is turned on, it attempts to attack all the wifi networks within the area using wifite and then 📧 emails the succesful results to an email address of your choosing by running the script.sh script.

Shell 100.00%

pifi's Introduction

🥧 PiFi - A Raspberry Pi wifi hacker 📡

Whenever the Raspberry Pi Device is turned on, it attempts to attack all the wifi networks within the area using wifite and then 📧 emails the succesful results to an email address of your choosing by running the script.sh script.

2022022001335.mp4

📝Prerequisites📝

  • Any Raspberry Pi Zero/Zero W, Zero 2/ Zero 2 W, 1, 2, 3, 4 or 400
  • Bootable USB or microSD with the latest 🐧 Kali Linux image (32-bit recommended). At least 16GB capacity. Class 10 cards are highly recommended.
  • all Raspberry Pi models from the Raspberry Pi 3 Model B (2016) and later ship with on-board WiFi. If you have an older model on hand, or if your on-board WiFi module is not functioning, you will need to use an external USB WiFi adapter.

✔️Steps for Setup✔️

Creating a bootable USB or microSD

  1. Download the Kali Linux image
  2. Flash the image onto the USB or microSD card using balenaEtcher or any other preffered method of flashing. Note! This will format the drive so make sure to backup any needed data on the drive.

Startup the Pi

  1. With the newly flashed microSD card or USB drive in the Raspberry Pi, plug it into power, and plug the Micro-HDMI cable into a monitor. Plug in a keyboard and mouse to the Pi 4 Model B’s USB ports, and wait for it to boot to the loading screen. (Note this is possible without a Monitor using ssh)
  2. Once at the Kali loading screen, enter the default login and password, kali and kali , to log in.
  3. Connect to network and then open a terminal window and run the following command. Keep in mind that it can take up to an hour to upgrade on a slow connection. sudo apt update && apt upgrade

Optional Change Root Password and Optional SSH Setup

  1. Switch to root user sudo su root

  2. Change the password with: passwd root

  3. Setup SSH with starting the service on boot by going into the root directory and running the following commandss

    cd ~/../..
    cd /etc/ssh/
    dpkg-reconfigure openssh-server
    update-rc.d -f ssh remove
    update-rc.d -f ssh defaults
    nano /etc/ssh/sshd_config

    In the nano window that opens, make sure that “PermitRootLogin” is un-tabbed to allow root login. After this is done, you can hit Control-x to exit the nano window after applying the changes. Enable the updates with:

    sudo service ssh restart
    update-rc.d -f ssh enable 2 3 4 5

Autologin to Root When Booting

  1. Open the configuaration file nano /etc/lightdm/lightdm.conf
  2. Under [Seat:*] uncomment and set the variables to these values
    autologin-user=root
    autologin-user-timeout=0

Making the PI headless

  1. Some Pi's will not boot if there is nothing plugged into the HDMI port so we will uncomment a line to circumvent this issue nano /boot/config.txt. Yet again use ctrl+x to exit and save
    hdmi_force_hotplug=1

Installing Dependencies for the Attack

  1. clone this repo and then run the dependency.sh script
    git clone https://github.com/Hariss-Gills/pifi
    cd pifi
    bash dependency.sh

Run Attack on Startup

  1. edit the bash.bashrc by:
    nano /etc/bash.bashrc
  2. Add these lines at the end of the file, Yet again use ctrl+x to exit and save:
    echo Running at boot 
    bash /root/pifi/script.sh

⚠️Going through an Attack⚠️

Right before

  1. Go to TempMail and generate a temporary email address - you'll recieve the passwords/handshakes on this address
  2. replace the [email protected] with the generated address. This can be done remotely with ssh or using sed before commiting an attack with: sed -i 's/[email protected]/[email protected]/g' script.sh

During

  1. Just plug in the Pi and wait until you get the email

After

  1. Escape the scene

📖Sources📖

pifi's People

Contributors

hariss-gills 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.