Skip to content

PrettyRecon-cli is an unofficial cli client for PrettyRecon. This tool can be used to trigger various tasks on prettyrecon as well as fetch output of those tasks/scans.

Notifications You must be signed in to change notification settings

SiddharthBharadwaj/prettyrecon-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PrettyRecon CLI

A command-line interface for PrettyRecon, a web-based reconnaissance and security scanning platform.

Features

Core Scanning Capabilities

  • Subdomain Enumeration: Comprehensive subdomain discovery
  • DNS Information: Detailed DNS record analysis
  • Port Scanning: Service and port identification
  • Wayback URLs: Historical URL discovery
  • Vulnerability Assessment: Security misconfiguration detection
  • Secrets Detection: Exposed credentials and sensitive information scanning
  • Custom Subdomain Scanning: Support for bulk scanning with custom target lists

Advanced Features

  • Pagination Support: Efficiently handle large datasets with automatic pagination
  • Interrupt Handling: Use Ctrl+C to gracefully stop scans and save partial results
  • Job Management: Monitor and control running scan tasks
  • Rescan Capability: Ability to retrigger specific scan types
  • Batch Processing: Handle up to 300 targets per batch in custom scans

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/prettyrecon-cli.git
cd prettyrecon-cli
  1. Install dependencies:
pip install -r requirements.txt
  1. Set up environment variables: Create a .env file in the project root:
PRETTYRECON_EMAIL=your_email
PRETTYRECON_PASSWORD=your_password

Usage

Basic Commands

  1. Full Reconnaissance Scan:
python main.py -t example.com -st all -o

Performs complete scanning including subdomains, DNS, ports, URLs, and vulnerabilities.

  1. Basic Scan:
python main.py -t example.com -st basic -o

Performs basic reconnaissance including subdomains, DNS records, ports, and wayback URLs.

  1. Vulnerability-focused Scan:
python main.py -t example.com -st vuln -o

Focuses on security aspects including vulnerabilities, exposed secrets, and CVEs.

  1. Subdomain-only Scan:
python main.py -t example.com -st sub -o

Performs only subdomain enumeration.

Advanced Usage

  1. Custom Subdomain Scan:
python main.py -cscn targets.txt

Process multiple targets from a file (up to 300 per batch).

  1. Retrigger Specific Scan:
python main.py -t example.com -st vuln -r

Restart a specific type of scan.

Command Line Arguments

  • -t, --target: Target domain to scan (e.g., example.com)
  • -st, --scan_type: Scan type (all/basic/vuln/sub)
  • -o, --output: Save results to JSON files
  • -cscn, --customsubscan: File containing targets for custom subdomain scan
  • -r, --rescan: Retrigger scans for the specified type

Output Files

When using the -o flag, results are saved in the output/<target> directory:

  • subdomains.json: Discovered subdomains
  • dnsinfo.json: DNS records and information
  • ports.json: Open ports and services
  • waybackurls.json: Historical URLs
  • common_vulns.json: Common vulnerabilities
  • exposed_creds.json: Exposed credentials/secrets
  • cves.json: Identified CVEs

Error Handling

The tool implements comprehensive error handling for:

  • Network connectivity issues
  • Authentication failures
  • Invalid input validation
  • File operation errors
  • API response errors
  • Session management
  • CSRF token handling

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

Support

For support, please open an issue in the GitHub repository.

Disclaimer

Use this tool responsibly and only on systems you have permission to test. The authors are not responsible for any misuse or damage.

About

PrettyRecon-cli is an unofficial cli client for PrettyRecon. This tool can be used to trigger various tasks on prettyrecon as well as fetch output of those tasks/scans.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages