https://github.com/an0n-00/blockportscript
🚫Block Ports with a PowerShell script
https://github.com/an0n-00/blockportscript
block ports ports-blocker powershell powershell-script
Last synced: about 2 months ago
JSON representation
🚫Block Ports with a PowerShell script
- Host: GitHub
- URL: https://github.com/an0n-00/blockportscript
- Owner: An0n-00
- Created: 2024-03-28T09:22:06.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-28T09:26:17.000Z (about 1 year ago)
- Last Synced: 2025-01-29T10:28:53.357Z (4 months ago)
- Topics: block, ports, ports-blocker, powershell, powershell-script
- Language: PowerShell
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Port Checker Script
## Author: An0n-00
## Description
This script is designed to check if a specified port is open and determine which service is running on it.## Usage
To use this script, simply execute it in a PowerShell environment:```powershell
./check_for_port.ps1
```## Version
1.0
---
## Instructions
1. When prompted, enter the port number you want to check.
2. The script will indicate whether the port is open or closed.
3. If the port is open, it will display the service running on that port along with its Process ID (PID).
4. You will be prompted whether you want to block the port.
5. If elevation (administrative privileges) is required and the user confirms, the script will attempt to block the port using Windows Firewall.
6. If elevation is not required, or if the user declines elevation, the script will not block the port.
7. After each port check, you will be asked if you want to check another port. Type 'y' to continue or 'n' to exit.
8. Once finished, the script will display "Bye!" and terminate.---
**Note**: Administrative privileges may be required to block ports using Windows Firewall. If prompted, please provide the necessary permissions.