This commit is contained in:
parent
3a1fbb5b80
commit
9aab550a91
@ -1,9 +1,7 @@
|
||||
# Network
|
||||
|
||||
## Netcat
|
||||
# Netcat
|
||||
Manual `man nc`
|
||||
|
||||
### Port Scanning
|
||||
## Port Scanning
|
||||
scan a single port
|
||||
```bash
|
||||
nc -v -w 2 z 192.168.56.1 22
|
||||
@ -19,7 +17,7 @@ scan range of ports
|
||||
nc -v -w 2 z 192.168.56.1 20-25
|
||||
```
|
||||
|
||||
### Find a Service Running on Port
|
||||
## Find a Service Running on Port
|
||||
```bash
|
||||
nc -v -n 192.168.56.110 80
|
||||
```
|
21
docs/windows_pw.md
Normal file
21
docs/windows_pw.md
Normal file
@ -0,0 +1,21 @@
|
||||
# Windows Powershell
|
||||
|
||||
## Test NetConnection
|
||||
|
||||
From Module [NetTCPIP](https://docs.microsoft.com/en-us/powershell/module/nettcpip/?view=windowsserver2019-ps)
|
||||
|
||||
[Windows Documentation](https://docs.microsoft.com/en-us/powershell/module/nettcpip/test-netconnection?view=windowsserver2019-ps)
|
||||
|
||||
|
||||
```powershell
|
||||
Test-NetConnection
|
||||
[[-ComputerName] <String>]
|
||||
-Port <Int32>
|
||||
[-InformationLevel <String>]
|
||||
[<CommonParameters>]
|
||||
```
|
||||
|
||||
Example
|
||||
```powershell
|
||||
Test-NetConnection -ComputerName 192.168.1.123 -Port 3389
|
||||
```
|
@ -15,4 +15,6 @@ nav:
|
||||
- CD: cd.md
|
||||
- Docker: docker.md
|
||||
- Linux: linux.md
|
||||
- Network: network.md
|
||||
- Network:
|
||||
- Netcat: netcat.md
|
||||
- Windows PS: windows_pw.md
|
Loading…
Reference in New Issue
Block a user