LinuxCommandLibrary

rdp_check.py

TLDR

Check if credentials are valid on a target (password prompted if omitted)

$ rdp_check.py [domain]/[username]@[target]
copy

Check credentials using NTLM hashes
$ rdp_check.py -hashes [LM_Hash]:[NT_Hash] [domain]/[username]@[target]
copy

Check credentials with explicit password
$ rdp_check.py [domain]/[username]:[password]@[target]
copy

Check credentials for a local account on the target (no domain)
$ rdp_check.py [username]:[password]@[target]
copy

SYNOPSIS

rdp_check.py [options] hostname port

PARAMETERS

-h
    Show help message and exit

--version
    Show version number and exit

-v
    Increase verbosity of the script

-t
    Set connection timeout in seconds

-p
    Specify the RDP port to use (default: 3389)

-u
    Specify the username to use for authentication

-d
    Specify the password to use for authentication

DESCRIPTION

The rdp_check.py command is a Python script that checks the status of Remote Desktop Protocol (RDP) connections on a given server. It can be used to test RDP connectivity, check server availability, and diagnose connection issues.
The script is often used for monitoring and troubleshooting purposes in Linux environments.

CAVEATS

The rdp_check.py script requires the python and rdp libraries to be installed on the system. Additionally, the script may not work if the RDP server is configured to use SSL/TLS encryption or if the firewall is blocking the RDP port.

TROUBLESHOOTING

To troubleshoot issues with the rdp_check.py script, check the system logs for error messages, verify that the RDP server is running and accepting connections, and ensure that the firewall is not blocking the RDP port.

CONFIGURING THE SCRIPT

The rdp_check.py script can be configured by modifying the config.py file, which contains settings such as the RDP port, username, and password.
The script can also be customized by adding custom plugins and modules to extend its functionality.

SEE ALSO

nc(1), telnet(1)

Copied to clipboard