Advertisement
here2share

# runas_admin.py

Jul 27th, 2018
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. # runas_admin.py ZZZ still unable to run as Administrator
  2.  
  3. import os
  4. import ctypes, sys
  5.  
  6. zzz = '''
  7. ipconfig /flushdns
  8. netsh winsock reset
  9. netsh int ipv4 reset reset.log
  10. '''.strip().splitlines()
  11.  
  12. def is_admin():
  13.     for z in zzz:
  14.         os.system(z)
  15.  
  16. is_admin()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement