Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/ PiFi Public

Raspberry pi zero wifi pentesting kit (in early development phase)

License

Notifications You must be signed in to change notification settings

czQery/PiFi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

102 Commits

Repository files navigation

Banner
report build release

⚠️ In Early development!

Setup

1. Install Raspbian

  • Flash using rpi-imager
  • Set username, password, hostname etc.
  • Enable ssh

2. Setup system

  • Install updates
    sudo apt update
    sudo apt upgrade
    sudo rpi-update
    sudo reboot
  • Use raspi-config to set wlan country
  • Use raspi-config to enable predictable interface names

3. Install Dependencies

sudo apt install bettercap bettercap-caplets bettercap-ui
sudo systemctl stop bettercap
sudo systemctl disable bettercap

4. Install PiFi

  • Download latest release
    curl -L https://github.com/czQery/PiFi/releases/download/v0.0.4/release-arm.tar.gz | tar -xzv

5. Create service

  • Edit the example pifi.service file in this repo and put it in /etc/systemd/system/
  • Reload systemd daemon
    sudo systemctl daemon-reload
  • Enable service
    sudo systemctl enable pifi.service
  • Start service
    sudo systemctl start pifi.service

GPS

  • Enable serial interface
    sudo raspi-config
  • Select -> Interfacing Options
  • Select -> Serial
  • Login shell -> No
  • Hardware Serial -> Yes
    sudo apt install pps-tools gpsd gpsd-clients chrony
    sudo systemctl stop gpsd
    sudo systemctl stop gpsd.socket
    # Edit these settings to match your gps module
    sudo ubxtool -S 460800 -s 38400 -f /dev/serial0
    sudo ubxtool -s 460800 -e GPS -e GALILEO -e GLONASS -e BEIDOU -e SBAS -e QZSS -f /dev/serial0
    sudo ubxtool -s 460800 -z CFG-RATE-MEAS,100 -f /dev/serial0
    sudo ubxtool -s 460800 -z CFG-NAVSPG-DYNMODEL,4 -f /dev/serial0
    sudo ubxtool -s 460800 -p SAVE -f /dev/serial0
  • Edit /etc/default/gpsd
    DEVICES="/dev/serial0"
    GPSD_OPTIONS="-n -s 460800"
    USBAUTO="true"
  • Apply
    sudo systemctl enable gpsd
    sudo reboot

About

Raspberry pi zero wifi pentesting kit (in early development phase)

Resources

License

Stars

Watchers

Forks

Sponsor this project

AltStyle によって変換されたページ (->オリジナル) /