Created
February 5, 2020 21:44
-
-
Save davidlares/04365b1ee98b45ff2366c237a708684d to your computer and use it in GitHub Desktop.
Admin role-type profile checker script for Windows-based OS (built-in modules from Python)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import ctypes | |
if ctypes.wind11.shell32.IsUserAnAdmin() == 0: | |
print("[-] We do not have admin privileges") | |
else: | |
print('[+] We have admin privileges') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment