How can I check Windows password using cmd or python?

Is there a way to check Windows password using cmd or python?

My approach using cmd:

C:\users\username>net user USERNAME - mypassword
True
C:\users\username>net user USERNAME - pass
False

      

An example of what I need in python:

>>> import win32api
>>> win32api.password.check(mypassword)
True
>>> win32api.password.check(pass)
False

      

Is it possible?

+3


source to share





All Articles