Cutie-Pie, is a live internet scanning tool to dynamically scan exposed devices and classify them.
- Dynamic Port Scanning: Scans for exposed devices with ports defined in a config file, updating in real-time when changes are detected [configurable via frontend].
- Service Classification: Automatically creates and manages output files based on port-service mappings (e.g.,
http.txt,ftp.txt) and shows the classified output in frontend. - Automated Cracking: Cracks services like ssh, ftp automatically (customizable).
- Detailed scan for devices: scans IPs for detailed and enriched outputs.
- File Management: Clears log files when they exceed 500 lines to prevent overflow.
-
Operating System: Tested on Kali Linux (root access needed).
-
Dependencies:
-
masscan(install withsudo apt install masscan). -
geoiplookup -
dig -
whois -
curl -
nc -
THC-Hydra -
bash(pre-installed on most Linux distributions). -
coreutils(forstat,grep, etc.). -
install all at once:
sudo apt install masscan geoip-bin dnsutils whois curl hydra util-linux coreutils
-
-
Permissions: Run as root (
sudo) for full network scanning capabilities.
-
Clone the repository:
git clone https://github.com/whxitte/cutie-pie.git cd cutie-pie -
Install
masscanif not already present:sudo apt update sudo apt install masscan
-
Make the script executable:
chmod +x masscan_live.sh
-
Set Live Environment:
export KALI_SCANNER=/root/cutie-pie/Backend
-
Directory Structure:
/root/cutie-pie/Backend: Base directory (adjustKALI_SCANNERin the script if needed)./root/cutie-pie/Backend/config/: Containsports.confandmasscan_exclude.conf./root/cutie-pie/Backend/logs/scanner/: Stores output files (e.g.,classified/http.txt).
-
ports.conf: Define ports and services to scan. Format:
port # service_name(e.g.,80 # httpor8080 # http-extra). Comments start with#. -
masscan_exclude.conf: Optional file to exclude IP ranges (format per
masscandocs).
80 # http
21 # ftp
8080 # http-extra
143 # imap
-
Start the scanner:
./masscan_live.sh
-
Modify
ports.confto add/remove ports (e.g., add443 # https). -
Watch the console for real-time updates and check output files in
/root/cutie-pie/Backendlogs/scanner/classified/.
http.txt,ftp.txt, etc.: Logs IPs with formatIP:PORT:TIMESTAMPfor each service.all.txt: Aggregates all scan results.
- Interrupt: Press
Ctrl+Cto stop the script cleanly. - Change Detection: Edit
ports.confor touchconfig/.ports_changedto trigger a restart.
[INFO] KALI_SCANNER: /root/Cutie-Pie
====================================
[INFO] Starting live internet scan at Tue Apr 29 10:19:08 AM EDT 2025 with ports: 80,21
[DEBUG] Running masscan with ports: 80,21
# Masscan 1.3.2 scan initiated Tue Apr 29 14:19:08 2025
Timestamp: 1745936391 Host: 54.188.126.198 () Ports: 80/open/tcp//http//
[DEBUG] Processing IP: ip=54.188.126.198, port=80, timestamp=2025-04-29T14:19:52Z
====================================
[CHANGE] Change detected in /root/cutie-pie/Backend/config/ports.conf at Tue Apr 29 10:19:48 AM EDT 2025 - Waiting to process...
====================================
[INFO] Scan completed at Tue Apr 29 10:19:51 AM EDT 2025 - Restarting...
- No IPs Logged: Ensure
masscanhas internet access and no firewall blocks it. Checkports.conffor valid ports. - Killed Process: The
Killedmessage is normal whenmasscanis terminated on config changes—ignore it. - Permission Denied: Run with
sudoor adjust file permissions. - Infinite Loop: If scans restart too quickly, increase the
sleep 3delay in the script.
Feel free to fork this repo, mahn! Submit pull requests or issues for new features (e.g., rate limiting, additional services) or bug fixes. Hell yeah—let’s make it better together!
MIT License—use it, tweak it, share it! Check the LICENSE file for details.
- Built with love using
masscanand Bash wizardry. - Inspired by the need for a dynamic, real-time scanning tool.