• Stars
    star
    152
  • Rank 244,685 (Top 5 %)
  • Language
    PowerShell
  • License
    MIT License
  • Created over 5 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Powershell Wrapper for the Nmap Network Discovery Tool

PoshNmap

PSGallery PSGalleryDL

ADO GHRelease

ADOvNext GHPreRelease


This project's goal is to deliver an effective wrapper around the Nmap Network Discovery tool, providing Powershell-y behavior and sensible autocomplete as well as formatting output into usable, parseable Powershell objects for better filtering and analysis than trying to use the nmap raw text or XML output formats.

Why

People are constantly trying to reinvent the wheel on network discovery in Powershell, via Test-Netconnection, Test-Connection, ping sweep scripts. Immediately they realize the timeout issues with these options make them slow, slow, slow. Nmap is an extremely well optimized and mature tool for this purpose, and available everywhere Powershell Core is. However, its syntax is obtuse, and its default output does not lend itself well to parsing and analytics by other tools. PoshNmap aims to solve those problems by providing a friendly Powershell interface to the tool.

Features

  • PS 5.1 and Core Compatible
  • Powershell Cmdlet to interact with Nmap in a friendly way.
  • Intellisense and Tab Autocomplete for relevant parameters (-Preset, -OutFormat, etc.)
  • Power users can do advanced scans with -ArgumentList parameter
  • Real time status updates via Write-Progress including percent complete and ETA
  • Default output is a friendly list of Powershell objects representing scanned hosts
  • Multiple output format options: Raw Nmap, XML, JSON, PSObject, Hashtable
  • Detailed Verbose output including the underlying nmap command line that was run

Demo

Simple Scan

Simple Scan with Custom Arguments (nmap-style)

Scan of Home Router using QuickPlus Preset (Includes OS/Service Fingerprinting)

Scan using various output formats

Installation

Visit the Powershell Gallery for installation options.

You must also have Nmap already installed and in your path. Visit nmap.org for various install options. It is usually available in Various package managers, and is available in Chocolatey for windows with choco install nmap

Output Notes

Currently all outputs but the default PoshNmap output can be considered "stable" and used as input to other scripts or commands. The PoshNmap output "nmapResult" property is also stable, however all other properties should be considered "in flux" and may change in minor revisions "0.x.0" without notice until this project reaches 1.0.0

More Repositories

1

SecretManagement.KeePass

PowerShell
115
star
2

PowerCD

Powershell Continuous Delivery Framework
PowerShell
41
star
3

PoshAnywhere

Access a PowerShell instance from anywhere using Websockets and Cloudflare Quick Tunnels
C#
40
star
4

FSharp

Provides the FSharp.Core Library to implement F# modules in a non-conflicting manner. Also provides Add-FSharpType
PowerShell
39
star
5

SecretManagement.Chromium

A Powershell SecretManagement vault extension for accessing the passwords stored in Chromium-based browsers.
PowerShell
38
star
6

ModuleFast

A "fast and loose" way to install modules from Powershell Gallery quickly. Meant for CICD, not production
PowerShell
36
star
7

PowerHTML

HTML Agility Pack implementation in Powershell for parsing and manipulating HTML
PowerShell
34
star
8

JAz.PIM

PowerShell
29
star
9

Scripts

Miscellaneous one-off scripts or functions I use that aren't consolidated into a module
PowerShell
25
star
10

Press

A continuous developement environment for Powershell Modules either via local development or leveraging GitHub and Github Actions
PowerShell
25
star
11

dotfiles

My dotfiles that I sync with chezmoi
PowerShell
24
star
12

PWSH24Examples

PowerShell
24
star
13

PowerServe

Run PowerShell scripts repeatedly in a high performance manner.
C#
21
star
14

PowerShellAssistant

PowerShell implementation of OpenAI and Other Providers
C#
21
star
15

Super-Duper-Linter

Inspired by github/super-linter, but using Powershell
PowerShell
20
star
16

PowerConfig

Configure your Script or Module with an overlaying config engine. Uses Microsoft.Extensions.Configuration
PowerShell
18
star
17

powershell-extension-pack

18
star
18

ScriptFeedbackProvider

Write PowerShell Feedback Providers using PowerShell!
C#
15
star
19

Mortar

PowerShell
14
star
20

PulumiPowershellTest

Attempted Proof of Concept to Run the new Pulumi dotnet provider in Powershell
C#
13
star
21

IPNetwork

PowerShell
10
star
22

WindowsCredentialManager

PowerShell
10
star
23

MicrosoftMvp

PowerShell Module for Submitting MVP Activities
PowerShell
9
star
24

terraform-azurerm-azure-function-powershell

Deploys a Azure Functions Powershell Worker along with Application Insights and a Key Vault
HCL
9
star
25

ExchangeOnlineManagement

A rework of the Exchange Online Management Module as much as possible to use Powershell best practices
PowerShell
8
star
26

TaskJob

PowerShell
7
star
27

PowerPrompt

Yet another prompt theme module. Trying to take the magic of Oh-My-Posh, Pansies, Powerline and make them cross-platform compatible
PowerShell
6
star
28

SecretManagement.CSV

PowerShell
6
star
29

Az.PortalAPI

*COMPLETELY UNSUPPORTED* Powershell module to invoke commands against the Azure Portal API (aka Screenscraping)
PowerShell
6
star
30

JustinGrote.Microsoft.Graph.Extensions

PowerShell
5
star
31

ScriptPredictor

PowerShell
5
star
32

ModuleFast-action

PowerShell
5
star
33

PoshRegistry

This module contains functions to create, modify or delete registry subkeys and values on local or remote computers.
PowerShell
5
star
34

AzurePrice

C#
4
star
35

AzureEnterpriseLandingZone

Bicep
3
star
36

AzSpotPricing

PowerShell
3
star
37

AzureFunctionsMissingManual

PowerShell
3
star
38

AzResourcesExtensions

PowerShell
3
star
39

PowerBot

PowerShell
3
star
40

act-dockerimage

Dockerfile
3
star
41

justingrote.github.io

Powershell Tips, Tricks, and Best Practices
SCSS
3
star
42

vscode-better-powershell-syntax-highlighting

Provides Powershell Syntax Highlighting Enhancements for VSCode
3
star
43

PWSHGallery

A nuget v2 to v3 bridge using Cloudflare Workers for the PowerShell Gallery
TypeScript
3
star
44

Traverse

[Unofficial] Kaseya Traverse Powershell Module
PowerShell
2
star
45

Presentations

PowerShell
2
star
46

FortigateAzureHA

2
star
47

SecretManagement.JustinGrote.Credman

2
star
48

PowerShellGithubActions

PowerShell
2
star
49

JAz.LogIngestion

C#
2
star
50

PRTGHistory

C#
1
star
51

JMg.Files

PowerShell
1
star
52

ModulePath

PowerShell Module to get and set the primary PSModulePath config
PowerShell
1
star
53

20210203-IronScripterChallenge

PowerShell
1
star
54

GitDsc

A DSC Module for checking out Git Repositories and related credential management. Supports Azure Devops private repositories.
PowerShell
1
star
55

AzurePIMApp

A Privileged Identity Management Static Web App meant for easy activation via Blazor WASM
CSS
1
star
56

PSSummit2023Demo

PowerShell
1
star
57

MgAqDetect

Detects Microsoft Graph PowerShell SDK Situations where Advanced Queries are Required
C#
1
star
58

vscode-crisp-logs

TypeScript
1
star
59

NinjaOne

C#
1
star