$ show rabbitmask/AssetsHunter
AssetsHunter is a Python-based information gathering framework designed for asset discovery and reconnaissance. It provides both active and passive modules for tasks such as web service detection (Hawkeye), information leakage checks (InfoRisk), CMS fingerprinting (WhatCMS), and various passive data collection methods including DNS resolution, WHOIS queries, SSL certificate transparency logs, and IP reputation services. The framework uses a modular architecture with command-line argument parsing to select specific reconnaissance modules. While functional, the code exhibits several quality issues: inconsistent error handling, tight coupling between modules and configuration, repetitive code patterns (especially in the passive modules), and limited use of modern Python practices. The framework demonstrates basic reconnaissance capabilities but lacks sophistication in areas like rate limiting, robust error handling, and modular extensibility.
The LLM identified 2 files worth highlighting for reuse:
Implements reusable decorator patterns for cross-cutting concerns: @Print_info for standardized output formatting and @Save_info for automatic result persistence. These decorators demonstrate good separation of concerns by isolating presentation and persistence logic from business logic, making them easily extractable for use in other projects.
Provides clean, focused utilities for CIDR notation manipulation including IP range extraction and CIDR range calculation. The functions are self-contained, have minimal dependencies (only standard library ipaddress and netaddr), and follow single responsibility principles, making them suitable for reuse in other networking applications.