{"id":19207655,"url":"https://github.com/gill-singh-a/port-scanner","last_synced_at":"2026-06-19T17:33:07.938Z","repository":{"id":152459706,"uuid":"626100044","full_name":"Gill-Singh-A/Port-Scanner","owner":"Gill-Singh-A","description":"Scans for Open ports in the given IPv4 Targets using TCP Protocol","archived":false,"fork":false,"pushed_at":"2024-07-31T19:06:05.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-04T15:41:46.668Z","etag":null,"topics":["multiprocessing","network","port-scanner","ports","python","python-3","scanner","scapy","socket","tcp"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Gill-Singh-A.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-04-10T19:51:23.000Z","updated_at":"2024-07-31T19:06:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"ca663e14-d9fd-4307-9c90-4bad492ffd27","html_url":"https://github.com/Gill-Singh-A/Port-Scanner","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gill-Singh-A%2FPort-Scanner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gill-Singh-A%2FPort-Scanner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gill-Singh-A%2FPort-Scanner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gill-Singh-A%2FPort-Scanner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gill-Singh-A","download_url":"https://codeload.github.com/Gill-Singh-A/Port-Scanner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240280835,"owners_count":19776414,"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":["multiprocessing","network","port-scanner","ports","python","python-3","scanner","scapy","socket","tcp"],"created_at":"2024-11-09T13:21:42.114Z","updated_at":"2026-06-19T17:33:07.919Z","avatar_url":"https://github.com/Gill-Singh-A.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Port Scanner\n\nScans for Open ports in the given IPv4 Targets using TCP Protocol\n\n# Requirements\n\n* Python 3.x\n\n### Python Libraries\n\n```\ncolorama\nscapy\ntqdm\n```\n\nInstall dependencies:\n\n```bash\npip install -r requirements.txt\n```\n\n\u003e Note: `scapy` scanner requires **root privileges**.\n\n# Tools Included\n\n## 1. port_scanner.py\n\nA **multi-threaded TCP connect scanner** using Python sockets.\n\n### Features\n\n* Multi-threaded scanning (fast)\n* Host discovery using ping\n* Custom port ranges / lists\n* Timeout control\n* Save \u0026 load scan results\n* Colored terminal output\n\n## 2. scapy_port_scanner.py\n\nA **SYN-based (half-open) port scanner** using Scapy.\n\n### Features\n\n* SYN packet scanning (stealthier than TCP connect)\n* Packet sniffing for responses\n* Multi-processing support\n* Interface selection\n* Root privilege enforcement\n* Save \u0026 load results\n\n# Usage\n\n## port_scanner.py\n\n```\nusage: port_scanner.py [-h] [-t TARGET] [-p PORT] [-s PORT_RANGE]\n                       [-P] [-d TIMEOUT] [-T THREADS]\n                       [-l LOAD] [-r READ] [-w WRITE]\n\nPort Scanner\n```\n\n### Arguments\n\n| Argument             | Description                       |\n| -------------------- | --------------------------------- |\n| `-t`, `--target`     | Target IP(s), comma-separated     |\n| `-p`, `--port`       | Port(s), comma-separated          |\n| `-s`, `--port-range` | Port range (e.g., `20-80`)        |\n| `-P`, `--ping`       | Enable ping check for alive hosts |\n| `-d`, `--timeout`    | Timeout for each port scan        |\n| `-T`, `--threads`    | Number of threads (default: 100)  |\n| `-l`, `--load`       | Load targets from file            |\n| `-r`, `--read`       | Read previous scan results        |\n| `-w`, `--write`      | Save output to file               |\n\n---\n\n## scapy_port_scanner.py\n\n```\nusage: scapy_port_scanner.py [-t TARGET] [-i INTERFACE]\n                             [-p PORT] [-s PORT_RANGE]\n                             [-l LOAD] [-T TIMEOUT]\n                             [-r READ] [-w WRITE]\n```\n\n### Arguments\n\n| Argument             | Description                     |\n| -------------------- | ------------------------------- |\n| `-t`, `--target`     | Target IP(s), comma-separated   |\n| `-i`, `--interface`  | Network interface to use        |\n| `-p`, `--port`       | Port(s), comma-separated        |\n| `-s`, `--port-range` | Port range (e.g., `20-80`)      |\n| `-l`, `--load`       | Load targets from file          |\n| `-T`, `--timeout`    | Sniffing timeout (default: 30s) |\n| `-r`, `--read`       | Read previous scan results      |\n| `-w`, `--write`      | Save output to file             |\n\n# Output\n\n* Displays:\n\n  * Alive hosts\n  * Open ports\n  * Scan duration\n* Optionally saves results using **pickle format**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgill-singh-a%2Fport-scanner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgill-singh-a%2Fport-scanner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgill-singh-a%2Fport-scanner/lists"}