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
python windows cmd passwords


source to share


No one has answered this question yet

Check out similar questions:

5504
Does Python have a ternary conditional operator?
5231
What are metaclasses in Python?
5116
How can I check if a file exists without exceptions?
4473
Calling an external command in Python
3790
How can I safely create a subdirectory?
3602
Does Python have a substring method "contains"?
3156
Why is char [] preferred over String for passwords?
2453
How do I install pip on Windows?
2195
Is there an equivalent to "which" on the Windows command line?
1059
Safe hash and salt for PHP passwords



All Articles
Loading...
X
Show
Funny
Dev
Pics