Skip to content

Commit

Permalink
Update to v1.1.1.0
Browse files Browse the repository at this point in the history
1. Bypassing site restrictions. Now users from all countries can generate a key!
2. New version system. Now the version name contains only the version, the date has been removed
  • Loading branch information
rzc0d3r committed Dec 26, 2023
1 parent 7b6f3c0 commit 5f6bb4e
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 22 deletions.
13 changes: 6 additions & 7 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# v1.0.6 (251223-1227)
LOGO = """
███████╗███████╗███████╗████████╗ ██╗ ██╗███████╗██╗ ██╗ ██████╗ ███████╗███╗ ██╗
██╔════╝██╔════╝██╔════╝╚══██╔══╝ ██║ ██╔╝██╔════╝╚██╗ ██╔╝██╔════╝ ██╔════╝████╗ ██║
█████╗ ███████╗█████╗ ██║ █████╔╝ █████╗ ╚████╔╝ ██║ ███╗█████╗ ██╔██╗ ██║
██╔══╝ ╚════██║██╔══╝ ██║ ██╔═██╗ ██╔══╝ ╚██╔╝ ██║ ██║██╔══╝ ██║╚██╗██║
███████╗███████║███████╗ ██║ ██║ ██╗███████╗ ██║ ╚██████╔╝███████╗██║ ╚████║
╚══════╝╚══════╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚══════╝ ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═══╝
Project Version: v1.1.0.0 (251223-1230)
Project Version: v1.1.1.0
Project Devs: rzc0d3r, AdityaGarg8, k0re,
Fasjeit, alejanpa17
"""
Expand All @@ -27,7 +26,7 @@
from subprocess import check_output, PIPE

def chrome_driver_installer_menu(): # auto updating or installing chrome driver
logger.console_log('-- Chrome Driver Auto-Installer {0} --\n'.format(chrome_driver_installer.VERSION))
logger.console_log('-- Chrome Driver Auto-Installer --\n')
chrome_version, _, _, _, _ = chrome_driver_installer.get_chrome_version()
if chrome_version is None:
raise RuntimeError('Chrome is not detected on your device!')
Expand Down Expand Up @@ -58,7 +57,7 @@ def chrome_driver_installer_menu(): # auto updating or installing chrome driver
return False
else:
logger.console_log('\nFound a suitable version for your system!', logger.OK)
logger.console_log('\nDownload attempt...', logger.INFO)
logger.console_log('\nDownloading...', logger.INFO)
if chrome_driver_installer.download_chrome_driver('.', driver_url):
logger.console_log('The Сhrome driver was successfully downloaded and unzipped!', logger.OK)
chromedriver_path = os.path.join(os.getcwd(), chromedriver_name)
Expand All @@ -75,7 +74,7 @@ def chrome_driver_installer_menu(): # auto updating or installing chrome driver
return chromedriver_path

if __name__ == '__main__':
print(LOGO)
logger.console_log(LOGO)
try:
if '--cli' in sys.argv:
sys.argv.append('--force')
Expand All @@ -89,10 +88,10 @@ def chrome_driver_installer_menu(): # auto updating or installing chrome driver
driver = shared_tools.initSeleniumWebDriver('chrome', chromedriver_path)
only_account = False
if '--account' in sys.argv:
logger.console_log('\n-- Account Generator {0} --\n'.format(eset_register.VERSION))
logger.console_log('\n-- Account Generator --\n')
only_account = True
else:
logger.console_log('\n-- KeyGen {0} --\n'.format(eset_keygen.VERSION))
logger.console_log('\n-- KeyGen --\n')
email_obj = sec_email_api.SecEmail()
logger.console_log('Mail registration...', logger.INFO)
email_obj.register()
Expand Down
2 changes: 0 additions & 2 deletions modules/chrome_driver_installer.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# v1.1.4 (171123-1640)
VERSION = 'v1.1.4 (171123-1640)'
import sys

from platform import processor
Expand Down
3 changes: 0 additions & 3 deletions modules/eset_keygen.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# v1.0.9.2 (211123-1059)
VERSION = 'v1.0.9.2 (211123-1059)'

from modules.logger import *
from modules.shared_tools import *
from modules.sec_email_api import *
Expand Down
12 changes: 8 additions & 4 deletions modules/eset_register.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# v1.1.0.0 (251223-1230)
VERSION = 'v1.1.0.0 (251223-1230)'

from modules.logger import *
from modules.shared_tools import *
from modules.sec_email_api import *
Expand Down Expand Up @@ -51,8 +48,15 @@ def createAccount(self):

console_log('\n[PASSWD] Register page loading...', INFO)
uCE(self.driver, f"return typeof {GET_EBAV}('button', 'data-label', 'register-create-account-button') === 'object'")
exec_js(f"return {GET_EBID}('password')").send_keys(self.eset_password)
console_log('[PASSWD] Register page is loaded!', OK)
exec_js(f"return {GET_EBID}('password')").send_keys(self.eset_password)
# Select Ukraine country
if exec_js(f"return {GET_EBCN}('select__single-value ltr-1dimb5e-singleValue')[0]").text != 'Ukraine':
exec_js(f"return {GET_EBID}('country-select-control')").click()
for country in exec_js(f"return {GET_EBCN}('select__option ltr-gaqfzi-option')"):
if country.text == 'Ukraine':
country.click()
break
uCE(self.driver, f"return {CLICK_WITH_BOOL}({DEFINE_GET_EBAV_FUNCTION}('button', 'data-label', 'register-create-account-button'))")

for _ in range(DEFAULT_MAX_ITER):
Expand Down
1 change: 0 additions & 1 deletion modules/logger.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# v1.0.1 (121023-1019)
from colorama import Fore, Style, init

init()
Expand Down
1 change: 0 additions & 1 deletion modules/sec_email_api.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# v1.0.0 (191023-2057)
import requests

class SecEmailConnectError(Exception):
Expand Down
8 changes: 4 additions & 4 deletions modules/shared_tools.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# v1.0.4 (251223-1218)
from selenium.webdriver import Chrome, ChromeOptions, ChromeService
from selenium.webdriver import Firefox, FirefoxOptions, FirefoxService

Expand Down Expand Up @@ -70,6 +69,8 @@ def initSeleniumWebDriver(browser_name: str, webdriver_path = None):
driver_options = ChromeOptions()
driver_options.add_experimental_option('excludeSwitches', ['enable-logging'])
driver_options.add_argument("--log-level=3")
driver_options.add_argument("--lang=en-US")
driver_options.add_argument('--headless')
driver_service = ChromeService(executable_path=webdriver_path)
if os.name == 'posix': # For Linux
if sys.platform.startswith('linux'):
Expand All @@ -80,12 +81,12 @@ def initSeleniumWebDriver(browser_name: str, webdriver_path = None):
driver_options.add_argument('--disable-dev-shm-usage')
elif os.name == 'nt':
console_log('Initializing chrome-driver for Windows', INFO)
driver_options.add_argument('--headless')
driver = Chrome(options=driver_options, service=driver_service)
elif browser_name.lower() == 'firefox':
driver_options = FirefoxOptions()
driver_options.log
driver_service = FirefoxService(executable_path=webdriver_path)
driver_options.set_preference('intl.accept_languages', 'en-US')
driver_options.add_argument('--headless')
if os.name == 'posix': # For Linux
if sys.platform.startswith('linux'):
console_log('Initializing firefox-driver for Linux', INFO)
Expand All @@ -95,6 +96,5 @@ def initSeleniumWebDriver(browser_name: str, webdriver_path = None):
driver_options.add_argument("--disable-dev-shm-usage")
else:
console_log('Initializing firefox-driver for Windows', INFO)
driver_options.add_argument('--headless')
driver = Firefox(options=driver_options, service=driver_service)
return driver

0 comments on commit 5f6bb4e

Please sign in to comment.