{"id":29091106,"url":"https://github.com/artyom-fedosov/port-scanner","last_synced_at":"2026-04-30T07:32:25.820Z","repository":{"id":301670019,"uuid":"1009973290","full_name":"artyom-fedosov/port-scanner","owner":"artyom-fedosov","description":"Lightweight TCP port scanner for Linux, written in C++.","archived":false,"fork":false,"pushed_at":"2025-06-28T05:21:27.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-28T05:30:39.187Z","etag":null,"topics":["cli","cmake","cpp","linux","network"],"latest_commit_sha":null,"homepage":"","language":"C++","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/artyom-fedosov.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,"zenodo":null}},"created_at":"2025-06-28T04:39:04.000Z","updated_at":"2025-06-28T05:28:37.000Z","dependencies_parsed_at":"2025-06-28T05:41:14.467Z","dependency_job_id":null,"html_url":"https://github.com/artyom-fedosov/port-scanner","commit_stats":null,"previous_names":["artyom-fedosov/port-scanner"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/artyom-fedosov/port-scanner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artyom-fedosov%2Fport-scanner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artyom-fedosov%2Fport-scanner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artyom-fedosov%2Fport-scanner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artyom-fedosov%2Fport-scanner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/artyom-fedosov","download_url":"https://codeload.github.com/artyom-fedosov/port-scanner/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artyom-fedosov%2Fport-scanner/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262382729,"owners_count":23302296,"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":["cli","cmake","cpp","linux","network"],"created_at":"2025-06-28T06:05:34.070Z","updated_at":"2026-04-30T07:32:25.816Z","avatar_url":"https://github.com/artyom-fedosov.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Port Scanner\n\nA simple TCP port scanner written in C++ to check the accessibility of ports on remote IPv4 and IPv6 hosts.\n\n## Features\n\n- Check availability of one or multiple TCP ports on an IPv4/IPv6 address\n- Uses POSIX sockets and system calls\n- Works **only on Linux** systems\n- Built with CMake and C++26 standard\n\n## Installation (Fedora / RHEL-based)\n\nThis package is available via Fedora Copr:\n\n```bash\nsudo dnf copr enable artjom-fedosov/port-scanner\nsudo dnf install port-scanner\n```\n\n## Manual Build\n\n```bash\ngit clone https://github.com/artyom-fedosov/port-scanner.git\ncd port-scanner\n./scripts/install.sh\n```\nor\n```bash\ngit clone https://github.com/artyom-fedosov/port-scanner.git \u0026\u0026 cd port-scanner \u0026\u0026 ./scripts/install.sh\n```\n\n## Requirements\n\n- Linux operating system\n- C++26 compatible compiler\n- CMake version 3.16 or higher\n\n## Documentation\n\n[Online documentation](https://artyom-fedosov.github.io/port-scanner/)\n\nTo generate the documentation locally, run:\n\n```bash\ndoxygen Doxyfile\n```\n\nThe generated HTML documentation will be available in the docs/html directory.\n\n## Usage\n\nRun the port scanner by specifying an IP address (IPv4 or IPv6) followed by one or more ports to check:\n\n```bash\n$ port-scanner 192.168.8.1 22 80 443\n22  is accessible\n80  is not accessible\n443 is accessible\n```\n\n**Note**: In the terminal, accessible ports are displayed in **green**, while inaccessible ports are shown in **red** for better readability.\nThe order of the port scan results may vary because the checks are performed concurrently using threads.\n\nYou can also scan a range of ports using shell brace expansion (bash):\n\n```bash\n$ port-scanner 192.168.8.1 {0..65535} | grep \"is accessible\"\n```\n\n## Testing\n\nThis project uses CTest for running unit tests and integrates Valgrind Memcheck to detect memory errors and leaks.\n\nTo run the tests, use:\n\n```bash\ncd build\nctest\n```\n\nTo run the tests and see detailed output of any failures:\n\n```bash\ncd build\nctest --output-on-failure\n```\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartyom-fedosov%2Fport-scanner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fartyom-fedosov%2Fport-scanner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartyom-fedosov%2Fport-scanner/lists"}