M
M
marataziat2016-11-16 10:02:52
Python
marataziat, 2016-11-16 10:02:52

How to check data for RDP authorization?

Is there a library for RDP authorization? I just need to check if it is possible to connect to the RDP server. I tried to write a script to check, but it says that it was stopped by the user!

#!/usr/bin/python           # This is client.py file

import socket# Import socket module

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
host = '81.140.63.53'#
Get local machine name
port = 3389# Reserve a port
for your service.

s.connect((host, port))
s.recv(1024)
s.send("### Syntax that allows login ###")
s.close

dumpz.org/2487722

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2016-11-16
@goodcat32

It is necessary to check if the user belongs to groups that can connect to the server via RDP.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question