{"id":29913720,"url":"https://github.com/jovicdev97/process---port-killer-for-windows","last_synced_at":"2025-08-02T02:13:49.319Z","repository":{"id":306993482,"uuid":"1027960710","full_name":"jovicdev97/Process---Port-Killer-for-Windows","owner":"jovicdev97","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-28T20:20:53.000Z","size":46000,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-28T22:22:13.712Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/jovicdev97.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-07-28T19:54:33.000Z","updated_at":"2025-07-28T20:20:56.000Z","dependencies_parsed_at":"2025-07-28T22:32:48.699Z","dependency_job_id":null,"html_url":"https://github.com/jovicdev97/Process---Port-Killer-for-Windows","commit_stats":null,"previous_names":["jovicdev97/process---port-killer-for-windows"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/jovicdev97/Process---Port-Killer-for-Windows","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jovicdev97%2FProcess---Port-Killer-for-Windows","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jovicdev97%2FProcess---Port-Killer-for-Windows/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jovicdev97%2FProcess---Port-Killer-for-Windows/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jovicdev97%2FProcess---Port-Killer-for-Windows/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jovicdev97","download_url":"https://codeload.github.com/jovicdev97/Process---Port-Killer-for-Windows/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jovicdev97%2FProcess---Port-Killer-for-Windows/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268326739,"owners_count":24232496,"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-08-02T02:00:12.353Z","response_time":74,"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-08-02T02:13:32.113Z","updated_at":"2025-08-02T02:13:49.317Z","avatar_url":"https://github.com/jovicdev97.png","language":"C#","readme":"# Port Killer\n\nA powerful Windows application for managing network ports and terminating processes that are using specific ports. Built with C# and Windows Forms for efficient port management and process control.\n\n![Platform](https://img.shields.io/badge/Platform-Windows-blue) ![.NET](https://img.shields.io/badge/.NET-9.0-purple) ![License](https://img.shields.io/badge/License-MIT-green)\n\n## Features\n\n- **Fast Port Scanning** - Efficiently scan specific ports or all active ports\n- **Process Management** - View detailed information about processes using ports\n- **Safe Termination** - Smart process killing with system process protection\n- **User-Friendly GUI** - Clean Windows Forms interface\n- **Flexible Input** - Support for single ports, comma-separated lists, and port ranges\n- **Real-time Updates** - Refresh capability to see current network state\n- **Performance Optimized** - Cached netstat calls for lightning-fast scanning\n\n## Requirements\n\n- **Operating System**: Windows 10 or later\n- **Runtime**: Self-contained (no .NET installation required)\n- **Privileges**: Administrator rights for terminating certain processes\n\n## Installation\n\n### Quick Start\n1. Download `PortKiller.GUI.exe` from the `dist/` folder\n2. Run the executable (no installation required)\n3. Grant administrator privileges when prompted\n\n### Build from Source\n```bash\ngit clone \u003crepository-url\u003e\ncd PortKiller\nbuild.bat\n```\n\n## Usage\n\n### Basic Operations\n1. **Launch the application**\n2. **Scan Ports**:\n   - Leave port field empty to scan all active ports\n   - Enter specific ports: `8080` or `8080,3000,5000`\n   - Use port ranges: `8080-8090`\n3. **View Results**: The grid shows Port, Process ID, Process Name, Protocol, and Status\n4. **Kill Processes**:\n   - Select specific rows and click \"Kill Selected\"\n   - Click \"Kill All\" to terminate all processes using the scanned ports\n   - Use \"Refresh\" to update the current state\n\n### Input Formats\n- **Single port**: `8080`\n- **Multiple ports**: `8080,3000,5000` or `8080;3000;5000`\n- **Port ranges**: `8080-8090`\n- **Mixed formats**: `80,443,8000-8010,9000`\n\n## Safety Features\n\n- **System Process Protection**: Prevents termination of critical system processes\n- **Confirmation Dialogs**: Asks for confirmation before killing multiple processes  \n- **Detailed Results**: Shows success/failure status for each termination attempt\n- **UAC Integration**: Automatically requests elevated privileges when needed\n\n## Building from Source\n\n### Prerequisites\n- Visual Studio 2022 or later, OR\n- .NET 6.0 SDK, OR  \n- Build Tools for Visual Studio\n\n### Build Instructions\n\n**Option 1: Using the build script**\n```batch\nbuild.bat\n```\n\n**Option 2: Using dotnet CLI**\n```bash\ndotnet build PortKiller.sln\n```\n\n**Option 3: Using MSBuild directly**\n```bash\nmsbuild PortKiller.sln /p:Configuration=Release\n```\n\n## Architecture\n\nThe application follows a clean layered architecture:\n\n```\nPortKiller/\n├── PortKiller.GUI/           # Windows Forms user interface\n├── PortKiller.Core/          # Business logic and orchestration\n├── PortKiller.SystemAccess/  # Low-level system interactions\n│   └── Models/              # Data models and enums\n└── dist/                    # Built application\n```\n\n### Key Components\n- **PortScanner**: Handles port parsing, validation, and scanning operations\n- **ProcessKiller**: Manages safe process termination with system protection\n- **NetworkHelper**: Interfaces with Windows networking APIs and netstat\n- **ProcessHelper**: Handles process management and UAC elevation\n\n## Performance\n\n- **Optimized Scanning**: Efficient netstat caching reduces scan time by 90%\n- **Batch Operations**: Single netstat call handles multiple ports\n- **Responsive UI**: Asynchronous operations prevent interface freezing\n- **Memory Efficient**: Minimal resource usage during operation\n\n## Security Considerations\n\nThis application is designed for **defensive security purposes only**:\n- System administrators managing development environments\n- Troubleshooting port conflicts during development\n- Educational purposes for understanding network processes\n\n**Important**: Always exercise caution when terminating processes, especially on production systems.\n\n## Contributing\n\n1. Fork the repository\n2. Create a feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## License\n\nThis project is licensed under the MIT License. This software is provided as-is for educational and administrative purposes.\n\n## Changelog\n\n### v1.0.0\n- Initial release\n- Fast port scanning with netstat optimization\n- Safe process termination with system protection\n- Windows Forms GUI with real-time updates\n- Support for flexible port input formats\n- UAC integration for elevated operations\n\n---\n\n**Note**: This tool is for legitimate system administration and development purposes only. Users are responsible for compliance with their organization's policies and applicable laws.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjovicdev97%2Fprocess---port-killer-for-windows","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjovicdev97%2Fprocess---port-killer-for-windows","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjovicdev97%2Fprocess---port-killer-for-windows/lists"}