{"id":19739928,"url":"https://github.com/sudo-arash/network-scanner","last_synced_at":"2025-02-27T22:28:35.881Z","repository":{"id":257246416,"uuid":"857721730","full_name":"sudo-arash/network-scanner","owner":"sudo-arash","description":"A Python-based network scanner that uses ARP requests to discover active clients on a local network. This tool includes features for device name and operating system detection, with the option to export results to CSV or JSON files.","archived":false,"fork":false,"pushed_at":"2024-09-15T14:11:20.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-25T15:52:17.659Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/sudo-arash.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-09-15T12:41:18.000Z","updated_at":"2024-09-15T14:11:23.000Z","dependencies_parsed_at":"2024-09-15T14:15:01.600Z","dependency_job_id":"3f6bf58a-b0f5-4f7c-a476-d8979aa5bcfd","html_url":"https://github.com/sudo-arash/network-scanner","commit_stats":null,"previous_names":["sudo-arash/network-scanner"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudo-arash%2Fnetwork-scanner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudo-arash%2Fnetwork-scanner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudo-arash%2Fnetwork-scanner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudo-arash%2Fnetwork-scanner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sudo-arash","download_url":"https://codeload.github.com/sudo-arash/network-scanner/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241068321,"owners_count":19904009,"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","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":"2024-11-12T01:18:50.561Z","updated_at":"2025-02-27T22:28:35.854Z","avatar_url":"https://github.com/sudo-arash.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Network Scanner\n\nA Python-based network scanner that uses ARP requests to discover active clients on a local network. This tool includes features for device name and operating system detection, with options to export results to CSV or JSON files and support for IPv6 addresses.\n\n## Features\n- **Customizable Network Range**: Scan a specific IP range or use the local IP to derive the default range.\n- **Concurrency**: Utilizes Python's `ThreadPoolExecutor` for fast scanning with customizable thread count.\n- **Timeout Control**: Adjustable ARP request timeout to balance speed and accuracy.\n- **Export Results**: Save scan results to CSV or JSON files.\n- **Device Name Detection**: Retrieve device names using reverse DNS lookup.\n- **Operating System Detection**: Basic OS fingerprinting based on TCP/IP stack analysis.\n- **IPv6 Support**: Placeholder for future IPv6 scanning functionality.\n- **Colorful Output**: Clear, colorful output using the `colorama` library for easier result interpretation.\n- **Modular Design**: Core functionalities split into multiple files for maintainability and scalability.\n\n## Requirements\n- Python 3.x\n- `scapy` library\n- `colorama` library\n\n## Installation\n\n1. Clone the repository:\n    ```bash\n    git clone https://github.com/sudo-arash/network-scanner.git\n    cd network-scanner\n    ```\n\n2. Install required dependencies:\n    ```bash\n    pip install scapy colorama\n    ```\n\n## Usage\n\nRun the `network_scanner.py` with the following customizable options:\n\n```bash\npython network_scanner.py [--timeout TIMEOUT] [--threads THREADS] [--range RANGE] [--export FILE]\n```\n\n### Arguments:\n- `--timeout`: (Optional) Set the timeout for ARP requests (in seconds). Default is `1`.\n- `--threads`: (Optional) Number of threads to use for concurrent scanning. Default is `100`.\n- `--range`: (Optional) Specify a custom IP range to scan (e.g., `192.168.1.0/24`). If not provided, the script uses the local network IP range.\n- `--export`: (Optional) Export results to a file in CSV or JSON format (e.g., `results.csv` or `results.json`).\n\n### Examples:\n\n1. **Scan the default network range (based on local IP) with default settings**:\n    ```bash\n    python network_scanner.py\n    ```\n\n2. **Scan a custom IP range with a 2-second timeout and 50 threads**:\n    ```bash\n    python network_scanner.py --range 192.168.1.0/24 --timeout 2 --threads 50\n    ```\n\n3. **Export results to a CSV file**:\n    ```bash\n    python network_scanner.py --export results.csv\n    ```\n\n## Project Structure\n\n```\nnetwork-scanner/\n├── network_scanner.py    # Main script with network scanning functionality\n├── utils.py              # Utility functions for network scanning\n├── README.md             # Project documentation\n```\n\n## Future Enhancements\n\n- Implement full IPv6 scanning functionality.\n- Advanced network analysis features.\n- GUI for easier configuration and result viewing.\n\n## License\n\nThis project is licensed under the MIT License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsudo-arash%2Fnetwork-scanner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsudo-arash%2Fnetwork-scanner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsudo-arash%2Fnetwork-scanner/lists"}