Portable Pentesting Device
A comprehensive wireless penetration testing tool that provides a web-based dashboard for network reconnaissance, deauthentication attacks, and packet capture analysis.
Note
mod2 Branch for the nextVersion and fork from Here.
main The latest stable version.
design For the latest UI/UX updates in progress.
Features
- Web Dashboard: Clean, intuitive interface accessible via browser
- Network Scanning: Discover and analyze nearby wireless networks
- Deauthentication Attacks: Targeted deauth packet injection
- Packet Capture: Real-time packet sniffing and analysis
- Portable Design: Works on Raspberry Pi or any Linux system
- Auto-startup: Automatically launches on boot (Pi configuration)
Hardware Requirements
Option 1: Raspberry Pi Setup (Recommended for Portability)
- Raspberry Pi 4 (2GB+ RAM recommended)
- MicroSD card (16GB+)
- USB WiFi adapter with monitor mode support (e.g., Alfa AWUS036ACS)
- Power supply/power bank
- Optional: Small display for headless operation
Option 2: Linux PC Setup
- Any Linux computer/laptop
- USB WiFi adapter with monitor mode support
- Built-in WiFi can be used but external adapter recommended
Compatible WiFi Adapters
Ensure your WiFi adapter supports monitor mode and packet injection:
- Alfa AWUS036ACS (Recommended)
- Alfa AWUS036ACH
- Panda PAU09
- TP-Link AC600 T2U Plus
- Any adapter with Realtek RTL8812AU/RTL8811AU chipset
Installation
Prerequisites
Update your system:
sudo apt update && sudo apt upgrade -y
Install required packages:
sudo apt install -y python3 python3-pip git aircrack-ng hostapd dhcp-helper bridge-utils
Install Python dependencies:
pip3 install -r requirements.txt
Clone Repository
git clone https://github.com/KhushneetSingh/PiSentinel.git
cd PiSentinel
Setup Instructions
For Raspberry Pi
- Enable SSH and configure headless setup (optional):
sudo systemctl enable ssh
sudo systemctl start ssh
- Set up auto-start service:
sudo cp pentesting-device.service /etc/systemd/system/
sudo systemctl enable pentesting-device.service
sudo systemctl daemon-reload
- Configure network interfaces:
sudo cp interfaces /etc/dhcpcd.conf.backup
# Edit /etc/dhcpcd.conf to configure static IP if needed
For Linux PC
- Install additional dependencies if needed:
# For Ubuntu/Debian
sudo apt install -y wireless-tools wpasupplicant
# For Arch Linux
sudo pacman -S wireless_tools wpa_supplicant
# For CentOS/RHEL
sudo yum install -y wireless-tools wpa_supplicant
- Set up permissions:
sudo usermod -a -G netdev $USER
# Logout and login again for changes to take effect
Configuration
Identify your wireless adapter:
iwconfig
# or
ip link show
Edit Backend/config.py and update the interface name, or set the environment variable:
# Option 1: Edit Backend/config.py directly
# Option 2: Set environment variable
export PISENTINEL_INTERFACE="wlan1" # Replace with your adapter name
2. Set Monitor Mode
The application will automatically set monitor mode, but you can manually test:
sudo airmon-ng start wlan1
# Your interface might become wlan1mon
Edit Backend/config.py for custom settings, or use environment variables:
# Server settings
export PISENTINEL_HOST="0.0.0.0" # Listen on all interfaces
export PISENTINEL_PORT=5000 # Dashboard port
export PISENTINEL_DEBUG=false # Debug mode
# Paths
export PISENTINEL_CAPTURE_DIR="/path/to/captures"
export PISENTINEL_LOG_DIR="/path/to/logs"
Usage
Starting the Application
Method 1: Direct Python Execution
cd PiSentinel/Backend
sudo python3 app.py
Method 2: Using the Service (Raspberry Pi)
sudo systemctl start pentesting-device
sudo systemctl status pentesting-device # Check status
Accessing the Dashboard
- Find the device IP address:
hostname -I
# or
ip addr show
- Open web browser and navigate to:
http://[DEVICE_IP]:5000
Example: http://192.168.1.100:5000
- For Raspberry Pi headless setup, you can also try:
http://raspberrypi.local:5000
Using the Interface
- Network Scan: Click “Scan Networks” to discover nearby WiFi networks
- Select Target: Choose a network from the discovered list
- Deauth Attack: Click “Start Deauth” to begin deauthentication
- Packet Capture: Use “Start Capture” to begin packet sniffing
- View Results: Monitor real-time results in the dashboard
File Structure
PiSentinel/
├── Backend/
│ ├── app.py # Main Flask + SocketIO application
│ └── config.py # Centralized configuration
├── static/
│ ├── styles.css # Dashboard styling
│ └── script.js # Frontend JavaScript
├── templates/
│ └── index.html # Web interface template (Jinja2)
├── captures/ # Captured packets (.pcap / .cap)
├── logs/ # Application logs (auto-rotated)
├── pisentinel.service # Systemd service file
├── startup.sh # Startup / bootstrap script
├── requirements.txt # Python dependencies
├── LICENSE # MIT License
└── README.md # This file
Troubleshooting
Common Issues
“No wireless interface found”
- Check if your WiFi adapter is connected and recognized:
lsusb
- Verify driver installation:
dmesg | grep -i wifi
- Try different USB port
“Permission denied”
- Run with sudo:
sudo python3 app.py
- Check user permissions:
groups $USER
“Monitor mode not supported”
- Verify your adapter supports monitor mode
- Install proper drivers for your chipset
- Try:
sudo airmon-ng check kill before starting
Dashboard not accessible
- Check if service is running:
sudo systemctl status pentesting-device
- Verify firewall settings:
sudo ufw status
- Check IP address:
hostname -I
Raspberry Pi won’t start automatically
- Check service status:
sudo systemctl status pentesting-device
- View logs:
sudo journalctl -u pentesting-device -f
- Verify service file permissions
For Raspberry Pi:
- Use Class 10 SD card or better
- Ensure adequate power supply (2.5A+)
- Consider active cooling for extended use
For Linux PC:
- Close unnecessary applications
- Use dedicated USB 3.0 port for WiFi adapter
- Monitor CPU and memory usage
Security Considerations
⚠️ IMPORTANT: This tool is for educational and authorized testing purposes only.
- Only use on networks you own or have explicit permission to test
- Ensure compliance with local laws and regulations
- Change default passwords before deployment
- Use in controlled environments
- Monitor for unintended network disruption
Development
Contributing
- Fork the repository
- Create a feature branch from
mod2 branch
- Make your changes
- Test thoroughly
- Submit a pull request
Custom Modules
Add custom pentesting modules in the modules/ directory following the existing pattern.
License
This project is intended for educational purposes. Users are responsible for compliance with applicable laws.
Support
For issues and questions:
- Check the troubleshooting section
- Review system logs:
sudo journalctl -u pentesting-device
- Open an issue on GitHub with system details and error logs
Changelog
v1.0.0
- Initial release
- Basic network scanning
- Deauthentication attacks
- Web dashboard interface
- Raspberry Pi auto-startup support
评论