From 9aab550a9121dbacbecd4b4ed40ee83cc440a103 Mon Sep 17 00:00:00 2001 From: francesco Date: Mon, 24 May 2021 15:39:23 +0200 Subject: [PATCH] Refactor Network --- docs/{network.md => netcat.md} | 8 +++----- docs/windows_pw.md | 21 +++++++++++++++++++++ mkdocs.yml | 4 +++- 3 files changed, 27 insertions(+), 6 deletions(-) rename docs/{network.md => netcat.md} (76%) create mode 100644 docs/windows_pw.md diff --git a/docs/network.md b/docs/netcat.md similarity index 76% rename from docs/network.md rename to docs/netcat.md index 859c32b..6bbb1e2 100644 --- a/docs/network.md +++ b/docs/netcat.md @@ -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 ``` \ No newline at end of file diff --git a/docs/windows_pw.md b/docs/windows_pw.md new file mode 100644 index 0000000..714c3d9 --- /dev/null +++ b/docs/windows_pw.md @@ -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] ] + -Port + [-InformationLevel ] + [] +``` + +Example +```powershell +Test-NetConnection -ComputerName 192.168.1.123 -Port 3389 +``` \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index c2a515f..a80e99c 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -15,4 +15,6 @@ nav: - CD: cd.md - Docker: docker.md - Linux: linux.md - - Network: network.md \ No newline at end of file + - Network: + - Netcat: netcat.md + - Windows PS: windows_pw.md \ No newline at end of file