Typo in the first example.
$ nmap -sp 127.0.0.1/32
Starting Nmap 7.93 ( https://nmap.org ) at 2023-04-14 19:26 UTC
Could not parse as a prefix nor find as a vendor substring the given --spoof-mac argument: 127.0.0.1/32.
If you are giving hex digits, there must be an even number of them.
QUITTING!
should be -sP (which is actaully a deprecated alias for the current -sn option). o Switched to -Pn and -sn and as the preferred syntax for skipping
ping scan and skipping port scan, respectively. Previously the -PN
and -sP options were recommended. This establishes a more regular
syntax for some options that disable phases of a scan:
+ -n no reverse DNS
+ -Pn no host discovery
+ -sn no port scan
We also felt that the old -sP ("ping scan") option was a bit
misleading because current versions of Nmap can go much further
(including -sC and --traceroute) even with port scans disabled. We
will retain support for the previous option names for the foreseeable
future.