Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/BornToBeRoot/PowerShell_IPv4NetworkScanner
Powerful asynchronus IPv4 network scanner for PowerShell
https://github.com/BornToBeRoot/PowerShell_IPv4NetworkScanner
ipscanner ipv4-address ipv4-network-scanner network open-source ping powershell powershell-script scanner
Last synced: about 1 month ago
JSON representation
Powerful asynchronus IPv4 network scanner for PowerShell
- Host: GitHub
- URL: https://github.com/BornToBeRoot/PowerShell_IPv4NetworkScanner
- Owner: BornToBeRoot
- License: gpl-2.0
- Created: 2015-12-07T13:34:16.000Z (about 9 years ago)
- Default Branch: main
- Last Pushed: 2022-12-13T00:36:51.000Z (about 2 years ago)
- Last Synced: 2024-11-13T13:12:49.871Z (2 months ago)
- Topics: ipscanner, ipv4-address, ipv4-network-scanner, network, open-source, ping, powershell, powershell-script, scanner
- Language: PowerShell
- Homepage:
- Size: 1.71 MB
- Stars: 387
- Watchers: 29
- Forks: 98
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - BornToBeRoot/PowerShell_IPv4NetworkScanner - Powerful asynchronus IPv4 network scanner for PowerShell (PowerShell)
README
# PowerShell | IPv4 network scanner
Powerful asynchronus IPv4 network scanner for PowerShell.
## Description
This powerful asynchronus IPv4 network scanner for PowerShell allows you to scan every IPv4 range you want (172.16.1.47 to 172.16.2.5 would work). But there is also the possibility to scan an entire subnet based on an IPv4 address withing the subnet and a the subnetmask/CIDR.
The default result will contain the the IPv4 address, status (Up or Down) and the hostname. Other values can be displayed via parameter (Try Get-Help for more details).
![Screenshot](Documentation/Images/IPv4NetworkScan.png?raw=true "IPv4NetworkScan")
To reach the best possible performance, this script uses a [RunspacePool](https://msdn.microsoft.com/en-US/library/system.management.automation.runspaces.runspacepool(v=vs.85).aspx). As you can see in the following screenshot, the individual tasks are distributed across all cpu cores:
![Screenshot](Documentation/Images/IPv4NetworkScan_CPUusage.png?raw=true "CPU usage")
If you are looking for a module containing this script as function... you can find it [here](https://github.com/BornToBeRoot/PowerShell)!
Maybe you're also interested in my asynchronus [IPv4 Port Scanner](https://github.com/BornToBeRoot/PowerShell_IPv4PortScanner).
## Syntax
```powershell
.\IPv4NetworkScan.ps1 [-StartIPv4Address] [-EndIPv4Address] [[-Tries] ] [[-Threads] ] [[-DisableDNSResolving]] [[-EnableMACResolving]] [[-ExtendedInformations]] [[-IncludeInactive]] [].\IPv4NetworkScan.ps1 [-IPv4Address] [-Mask] [[-Tries] ] [[-Threads] ] [[-DisableDNSResolving]] [[-EnableMACResolving]] [[-ExtendedInformations]] [[-IncludeInactive]] []
.\IPv4NetworkScan.ps1 [-IPv4Address] [-CIDR] [[-Tries] ] [[-Threads] ] [[-DisableDNSResolving]] [[-EnableMACResolving]] [[-ExtendedInformations]] [[-IncludeInactive]] []
```## Example 1
```powershell
PS> .\IPv4NetworkScan.ps1 -StartIPv4Address 192.168.178.0 -EndIPv4Address 192.168.178.20IPv4Address Status Hostname
----------- ------ --------
192.168.178.1 Up fritz.box
```## Example 2
```powershell
PS> .\IPv4NetworkScan.ps1 -IPv4Address 192.168.178.0 -Mask 255.255.255.0 -DisableDNSResolvingIPv4Address Status
----------- ------
192.168.178.1 Up
192.168.178.22 Up
```## Example 3
```powershell
PS> .\IPv4NetworkScan.ps1 -IPv4Address 192.168.178.0 -CIDR 25 -EnableMACResolvingIPv4Address Status Hostname MAC Vendor
----------- ------ -------- --- ------
192.168.178.1 Up fritz.box XX-XX-XX-XX-XX-XX AVM Audiovisuelles Marketing und Computersysteme GmbH
192.168.178.22 Up XXXXX-PC.fritz.box XX-XX-XX-XX-XX-XX ASRock Incorporation
```