Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # runas_admin.py ZZZ still unable to run as Administrator
- import os
- import ctypes, sys
- zzz = '''
- ipconfig /flushdns
- netsh winsock reset
- netsh int ipv4 reset reset.log
- '''.strip().splitlines()
- def is_admin():
- for z in zzz:
- os.system(z)
- is_admin()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement