Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Property of script kiddie kurkos1444
- import winreg as winreg
- import os
- import sched, time
- import random
- import ctypes
- INTERNET_OPTION_REFRESH = 37
- INTERNET_OPTION_SETTINGS_CHANGED = 39
- internet_set_option = ctypes.windll.Wininet.InternetSetOptionW
- proxystr =[u"198.199.86.11:3128", ####### PROXIES GO HERE. When adding a proxy you must add a prefix u/"x.x.x.x.:8xxx"
- u"150.95.178.151:8888",
- u"198.50.163.192:3129",
- u"161.35.70.249:8080",
- u"103.134.254.18:80",
- u"142.93.38.73:8080"]
- s = sched.scheduler(time.time, time.sleep)
- os.chmod('tes.py', 0o777) ## ignore or remove this line if you get errors
- INTERNET_SETTINGS = winreg.OpenKey(winreg.HKEY_CURRENT_USER, r'SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings', 0, winreg.KEY_ALL_ACCESS)
- def set_key(name, value):
- _, reg_type = winreg.QueryValueEx(INTERNET_SETTINGS, name)
- winreg.SetValueEx(INTERNET_SETTINGS, name, 0, reg_type, value)
- set_key('ProxyEnable', 1)
- def proxysw(sc):
- print ('PROXY SWITCHED!.... now refreshing')
- set_key('ProxyServer', random.choice(proxystr))
- internet_set_option(0, INTERNET_OPTION_SETTINGS_CHANGED, 0, 0)
- internet_set_option(0, INTERNET_OPTION_REFRESH, 0, 0)
- s.enter(200, 1, proxysw, (sc,)) ## change the 200 value to edit the interval 200 - 200 seconds
- s.enter(200, 1, proxysw, (s,)) ## change this value aswell to change the interval
- s.run()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement