@echo off
SET ONECHECK=%1EMPTY
SET TWOCHECK=%2EMPTY
SET MAXPORT=80
IF %ONECHECK%==EMPTY goto help
IF %TWOCHECK%==EMPTY goto help
goto doit
:help
echo NMAP single port scan wrapper 1.0.0
echo.
echo Usage:
echo nmapfull target port
echo.
echo Will scan the given port on target, TCP and UDP
echo Will attempt to determine service name and version if the port is open
echo Will attempt to determine target operating system
echo Will write results to "nmap-TARGET.pPORT.txt"
goto end
:doit
nmap -A -vv -D google.com -oN nmapPORT-%1.p%MAXPORT%.txt %1 -P0 -sV -sSU -O --version-all -r -p%MAXPORT%
:end