Skip to content

whxitte/cutie-pie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Cutie-Pie Scanner

Cutie-Pie, is a live internet scanning tool to dynamically scan exposed devices and classify them.

Features

  • 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.

Prerequisites

  • Operating System: Tested on Kali Linux (root access needed).

  • Dependencies:

    • masscan (install with sudo apt install masscan).

    • geoiplookup

    • dig

    • whois

    • curl

    • nc

    • THC-Hydra

    • bash (pre-installed on most Linux distributions).

    • coreutils (for stat, 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.

Installation

  1. Clone the repository:

    git clone https://github.com/whxitte/cutie-pie.git
    cd cutie-pie
  2. Install masscan if not already present:

    sudo apt update
    sudo apt install masscan
  3. Make the script executable:

    chmod +x masscan_live.sh

Configuration

  • Set Live Environment:

    • export KALI_SCANNER=/root/cutie-pie/Backend
  • Directory Structure:

    • /root/cutie-pie/Backend: Base directory (adjust KALI_SCANNER in the script if needed).
    • /root/cutie-pie/Backend/config/: Contains ports.conf and masscan_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 # http or 8080 # http-extra). Comments start with #.

  • masscan_exclude.conf: Optional file to exclude IP ranges (format per masscan docs).

Example ports.conf

80 # http
21 # ftp
8080 # http-extra
143 # imap

Usage

  1. Start the scanner:

    ./masscan_live.sh
  2. Modify ports.conf to add/remove ports (e.g., add 443 # https).

  3. Watch the console for real-time updates and check output files in /root/cutie-pie/Backendlogs/scanner/classified/.

Output Files

  • http.txt, ftp.txt, etc.: Logs IPs with format IP:PORT:TIMESTAMP for each service.
  • all.txt: Aggregates all scan results.

Controls

  • Interrupt: Press Ctrl+C to stop the script cleanly.
  • Change Detection: Edit ports.conf or touch config/.ports_changed to trigger a restart.

Example Output

[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...

Troubleshooting

  • No IPs Logged: Ensure masscan has internet access and no firewall blocks it. Check ports.conf for valid ports.
  • Killed Process: The Killed message is normal when masscan is terminated on config changes—ignore it.
  • Permission Denied: Run with sudo or adjust file permissions.
  • Infinite Loop: If scans restart too quickly, increase the sleep 3 delay in the script.

Contributing

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!

License

MIT License—use it, tweak it, share it! Check the LICENSE file for details.

Acknowledgements

  • Built with love using masscan and Bash wizardry.
  • Inspired by the need for a dynamic, real-time scanning tool.

About

cutie-pie is a live internet scanning tool

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published