Skip to content

Commit

Permalink
No proxy Available
Browse files Browse the repository at this point in the history
  • Loading branch information
InvalidAccount committed Nov 29, 2022
1 parent 477ea16 commit 8fbeccb
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def update(self):

class eGen:
def __init__(self):
self.version = "v1.2.2"
self.version = "v1.2.3"
AutoUpdater(self.version).update()
self.Utils = Utils() # Utils Module
self.config: Any = load(open('config.json')) # Config File
Expand Down Expand Up @@ -165,7 +165,7 @@ def check_proxy(self, proxy):
get("https://outlook.live.com", proxies={
"http": "http://{}".format(proxy),
"https": "http://{}".format(proxy)
}, timeout=self.config["ProxyCheckTimeout"])
}, timeout=self.config["Common"]["ProxyCheckTimeout"] or 5)
return True
return False

Expand Down Expand Up @@ -235,7 +235,6 @@ def CreateEmail(self, driver: WebDriver):
try:
global eGenerated, solvedCaptcha
self.update()
driver.set_page_load_timeout(5)
self.Timer.start(time()) if self.config["Common"]['Timer'] else ''
driver.get("https://outlook.live.com/owa/?nlp=1&signup=1")
assert 'Create' in driver.title
Expand All @@ -259,6 +258,7 @@ def CreateEmail(self, driver: WebDriver):
self.fElement(driver, By.ID, 'iSignupAction').click()
first = self.fElement(driver, By.ID, "FirstName")
first.send_keys(self.first_name)
sleep(.3)
last = self.fElement(driver, By.ID, "LastName")
last.send_keys(self.last_name)
self.fElement(driver, By.ID, 'iSignupAction').click()
Expand Down Expand Up @@ -299,16 +299,19 @@ def CreateEmail(self, driver: WebDriver):
def run(self):
# Run Script Function
self.print('&bCoded with &c<3&b by MatrixTeam')
while True:
self.generate_info()
proxy = choice(self.proxies) # Select Proxy
if not self.check_proxy(proxy):
self.print("&c%s &f| &4Invalid Proxy&f" % proxy)
self.proxies.remove(proxy)
continue
self.print(proxy)
self.options.add_argument("--proxy-server=http://%s" % proxy)
self.CreateEmail(driver=webdriver.Chrome(options=self.options, desired_capabilities=self.capabilities))
with suppress(IndexError):
while True:
self.generate_info()
proxy = choice(self.proxies) # Select Proxy
if not self.check_proxy(proxy):
self.print("&c%s &f| &4Invalid Proxy&f" % proxy)
self.proxies.remove(proxy)
continue
self.print(proxy)
self.options.add_argument("--proxy-server=http://%s" % proxy)
self.CreateEmail(driver=webdriver.Chrome(options=self.options, desired_capabilities=self.capabilities))
self.print("&4No Proxy Available, Exiting!")



if __name__ == '__main__':
Expand Down

0 comments on commit 8fbeccb

Please sign in to comment.