This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am owensk on github. | |
* I am kowens (https://keybase.io/kowens) on keybase. | |
* I have a public key whose fingerprint is 52EB 6C0D DFB4 FA51 9BED D370 EE28 7842 1AB4 B0CE | |
To claim this, I am signing this object: |
This file contains 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
import _winreg as winreg | |
import requests | |
def get_internet_key(name): | |
ie_settings = winreg.OpenKey(winreg.HKEY_CURRENT_USER,r'Software\Microsoft\Windows\CurrentVersion\Internet Settings',0, winreg.KEY_ALL_ACCESS) | |
value, type = winreg.QueryValueEx(ie_settings, name) | |
return value | |
def hasInternetProxy(): | |
"""Returns boolean. If key doesn't exist, returns false.""" |