{"id":23849078,"url":"https://github.com/9de/ip-range-web-title-checker","last_synced_at":"2025-11-12T03:31:15.057Z","repository":{"id":228569635,"uuid":"774352488","full_name":"9de/IP-Range-Web-Title-Checker","owner":"9de","description":"This cript allows you to check the HTML titles of web pages within a specified IP range. ","archived":false,"fork":false,"pushed_at":"2025-06-10T08:39:14.000Z","size":20,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-24T22:29:41.740Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/9de.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-19T11:59:34.000Z","updated_at":"2025-02-18T07:57:22.000Z","dependencies_parsed_at":"2024-03-19T13:27:44.221Z","dependency_job_id":"c69d2109-db55-4ca3-8d74-0c940f5b4062","html_url":"https://github.com/9de/IP-Range-Web-Title-Checker","commit_stats":null,"previous_names":["9de/ip-range-web-title-checker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/9de/IP-Range-Web-Title-Checker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9de%2FIP-Range-Web-Title-Checker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9de%2FIP-Range-Web-Title-Checker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9de%2FIP-Range-Web-Title-Checker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9de%2FIP-Range-Web-Title-Checker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/9de","download_url":"https://codeload.github.com/9de/IP-Range-Web-Title-Checker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9de%2FIP-Range-Web-Title-Checker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":283971786,"owners_count":26925495,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-12T02:00:06.336Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-02T21:50:57.911Z","updated_at":"2025-11-12T03:31:15.040Z","avatar_url":"https://github.com/9de.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IP Range Scanner\n\n## Table of Contents\n- [Overview](#overview)\n- [Features](#features)\n- [Requirements](#requirements)\n- [Installation](#installation)\n- [Usage](#usage)\n  - [Command Line Interface](#command-line-interface)\n  - [Interactive Mode](#interactive-mode)\n  - [Configuration Options](#configuration-options)\n- [Output](#output)\n- [Examples](#examples)\n- [Security Considerations](#security-considerations)\n- [Troubleshooting](#troubleshooting)\n- [Contributing](#contributing)\n- [License](#license)\n- [Technical Documentation](#technical-documentation)\n\n## Overview\n\nIP Range Scanner is a powerful Python tool designed to scan ranges of IP addresses for web servers and collect their HTML titles. It supports concurrent scanning, multiple protocols (HTTP/HTTPS), custom port configurations, and provides comprehensive logging and CSV export capabilities.\n\n## Features\n\n- **Concurrent Scanning**: Utilizes multi-threading for efficient scanning of large IP ranges\n- **Protocol Support**: Handles both HTTP and HTTPS protocols\n- **Flexible Input**: Supports both command-line arguments and interactive input\n- **Comprehensive Logging**: Detailed logging with both file and console output\n- **Data Export**: Automatic CSV export of scan results\n- **Input Validation**: Robust IP address and range validation\n- **Configurable Settings**: Customizable timeout, worker threads, and ports\n- **Error Handling**: Comprehensive error handling and graceful exits\n\n## Requirements\n\n- Python 3.7+\n- Required packages:\n  ```\n  requests\u003e=2.26.0\n  beautifulsoup4\u003e=4.9.3\n  ```\n\n## Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/9de/IP-Range-Web-Title-Checker.git\n   cd ip-scanner\n   ```\n\n2. Create and activate a virtual environment (recommended):\n   ```bash\n   python -m venv venv\n   source venv/bin/activate  # On Windows: venv\\Scripts\\activate\n   ```\n\n3. Install required packages:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n## Usage\n\n### Command Line Interface\n\n```bash\npython ip_scanner.py --start-ip START_IP --end-ip END_IP [OPTIONS]\n```\n\n### Interactive Mode\n\nSimply run:\n```bash\npython ip_scanner.py\n```\n\n### Configuration Options\n\n| Option | Description | Default |\n|--------|-------------|---------|\n| `--start-ip` | Starting IP address | Required |\n| `--end-ip` | Ending IP address | Required |\n| `--ports` | Ports to scan (space-separated) | 80 443 |\n| `--timeout` | Request timeout in seconds | 5 |\n| `--workers` | Number of concurrent workers | 10 |\n| `--output` | Output CSV filename | scan_results_[timestamp].csv |\n\n## Output\n\n### Log Files\n- Location: `scan_[timestamp].log`\n- Format: `YYYY-MM-DD HH:MM:SS - LEVEL - MESSAGE`\n\n### CSV Export\n- Location: `scan_results_[timestamp].csv`\n- Columns:\n  - IP Address\n  - URL\n  - HTML Title\n\n## Examples\n\n1. Basic scan with default options:\n   ```bash\n   python ip_scanner.py --start-ip 192.168.1.1 --end-ip 192.168.1.255\n   ```\n\n2. Custom port scan:\n   ```bash\n   python ip_scanner.py --start-ip 10.0.0.1 --end-ip 10.0.0.100 --ports 80 8080 8443\n   ```\n\n3. Adjusted performance settings:\n   ```bash\n   python ip_scanner.py --start-ip 172.16.0.1 --end-ip 172.16.255.255 --timeout 3 --workers 20\n   ```\n\n## Security Considerations\n\n1. **Network Policies**: Ensure compliance with network policies before scanning\n2. **Rate Limiting**: Be aware of potential rate limiting on target networks\n3. **Legal Implications**: Obtain necessary permissions before scanning non-owned networks\n4. **SSL Verification**: Default SSL verification is enabled for security\n\n## Troubleshooting\n\n### Common Issues\n\n1. **Connection Timeouts**\n   - Increase timeout value using `--timeout`\n   - Reduce number of workers using `--workers`\n\n2. **Memory Issues**\n   - Reduce the IP range size\n   - Decrease number of concurrent workers\n\n3. **Permission Errors**\n   - Ensure write permissions for log and CSV files\n   - Run with appropriate privileges\n\n### Debug Mode\n\nSet environment variable for detailed logging:\n```bash\nexport IP_SCANNER_DEBUG=1  # On Windows: set IP_SCANNER_DEBUG=1\n```\n\n## Technical Documentation\n\n### Class Structure\n\n#### IPScanner\n\nMain class handling the scanning operations.\n\n```python\nclass IPScanner:\n    def __init__(self, timeout: int = 5, max_workers: int = 10)\n    def setup_logging(self)\n    def get_html_title(self, url: str) -\u003e Optional[str]\n    def validate_ip_range(self, start_ip: str, end_ip: str) -\u003e bool\n    def scan_ip(self, ip: str, ports: List[int]) -\u003e List[Tuple[str, str, str]]\n    def scan_ip_range(self, start_ip: str, end_ip: str, ports: List[int]) -\u003e List[Tuple[str, str, str]]\n    def save_results(self, results: List[Tuple[str, str, str]], filename: str)\n```\n\n### Data Flow\n\n1. User input validation\n2. IP range conversion\n3. Concurrent scanning\n4. Result collection\n5. Data export\n\n### Performance Optimization\n\n- Thread pool for concurrent scanning\n- Configurable timeout and worker count\n- Efficient IP address handling\n- Minimal memory footprint\n\n## Contributing\n\n1. Fork the repository\n2. Create a feature branch\n3. Commit your changes\n4. Push to the branch\n5. Create a Pull Request\n\n### Coding Standards\n\n- Follow PEP 8 guidelines\n- Include type hints\n- Add unit tests for new features\n- Update documentation\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n---\n\n## Disclaimer\n\nThis tool is provided for educational and legitimate network administration purposes only. Users are responsible for ensuring compliance with applicable laws and regulations.\n\n## Support\n\nFor bug reports and feature requests, please use the GitHub issue tracker.\n\nFor questions and discussions:\n- GitHub Discussions\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F9de%2Fip-range-web-title-checker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F9de%2Fip-range-web-title-checker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F9de%2Fip-range-web-title-checker/lists"}