This script scans a given IP or range of IP addresses for the status of Network Level Authentication (NLA) on RDP port 3389.
- Initial scan to identify hosts with port 3389 open using
nmap
. - Detailed scan to check NLA status using
rdesktop
with an option to run quietly in the background usingxvfb-run
. - Concurrent scanning to speed up the process.
- Python 3.6+
nmap
rdesktop
xvfb
sudo apt-get install nmap rdesktop xvfb
pip install psutil termcolor
python3 rdp-scanner.py --ip 192.168.1.1
python3 rdp-scanner.py --range 192.168.1.0/24
python3 rdp-scanner.py --range 192.168.1.0/24 --quiet
--ip
: Single IP address to scan.--range
: CIDR range of IP addresses to scan.--quiet
: Run the commands in the background without opening RDP windows.
python3 rdp-scanner.py --range 10.0.0.3/24 --quiet