Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lifailon/portcheck
Module connection check port
https://github.com/lifailon/portcheck
dotnet jobs network port port-check port-scanner powershell powershell-module tcp-port tcp-socket windows
Last synced: 8 days ago
JSON representation
Module connection check port
- Host: GitHub
- URL: https://github.com/lifailon/portcheck
- Owner: Lifailon
- Created: 2023-02-04T15:00:57.000Z (almost 2 years ago)
- Default Branch: rsa
- Last Pushed: 2024-02-05T10:37:38.000Z (11 months ago)
- Last Synced: 2024-12-07T19:25:11.105Z (15 days ago)
- Topics: dotnet, jobs, network, port, port-check, port-scanner, powershell, powershell-module, tcp-port, tcp-socket, windows
- Language: PowerShell
- Homepage:
- Size: 1.9 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PortCheck
[Description in Russian](https://github.com/Lifailon/PortCheck/blob/rsa/README_ru.md)
Module for quick check of open ports on the network
Used class **.NET**: `System.Net.Sockets.TcpClient` and method `BeginConnect`
Install: `Install-Module PortCheck`
Dependencies: `Install-Module ThreadJob`
Format: `Get-PortCheck `
Works in PowerShell versions 5.1 and 7.3
## Examples:
```PowerShell
PS C:\Users\lifailon> Get-PortCheck 192.168.3.102 3000IP Port Status
-- ---- ------
192.168.3.102 3000 OpenedPS C:\Users\lifailon> Get-PortCheck 192.168.3.102 22,80,443,3000,3389,8085,8086
IP Port Status
-- ---- ------
192.168.3.102 22 Closed
192.168.3.102 80 Closed
192.168.3.102 443 Closed
192.168.3.102 3000 Opened
192.168.3.102 3389 Closed
192.168.3.102 8085 Closed
192.168.3.102 8086 OpenedPS C:\Users\lifailon> Get-PortCheck 192.168.3.102 8080-8090
IP Port Status
-- ---- ------
192.168.3.102 8080 Closed
192.168.3.102 8081 Closed
192.168.3.102 8082 Closed
192.168.3.102 8083 Closed
192.168.3.102 8084 Closed
192.168.3.102 8085 Closed
192.168.3.102 8086 Opened
192.168.3.102 8087 Closed
192.168.3.102 8088 Closed
192.168.3.102 8089 Closed
192.168.3.102 8090 ClosedPS C:\Users\lifailon> Get-PortCheck 192.168.3.0 8085 100 -Open
IP Port Status
-- ---- ------
192.168.3.99 8085 Opened
192.168.3.100 8085 Opened
```