FG
💻 Software

nmap: easily Ping-Scan all addresses in my subnet

Fresh5 days ago
Mar 15, 202644339 views
Confidence Score0%
0%

Problem

Is there an nmap line that will auto-detect my current IP address and subnet mask, and run a ping-scan on all? For example: Instead of manually:

Error Output

#> nmap -sP 0.0.0.0

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: nmap: easily Ping-Scan all addresses in my subnet

Low Risk

I don't think that there is a way with doing that with alone, but you could script it: Here is a quick and dirty solution: You have to install to make that solution work. hth

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment