Skip to content

Commit

Permalink
Algorithm Update (Global Update)
Browse files Browse the repository at this point in the history
  • Loading branch information
rzc0d3r authored Feb 20, 2024
1 parent f88f8bf commit ef92d95
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 39 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ESET-KeyGen
ESET-KeyGen - Trial-Key & Account generator for ESET Antivirus (last test was on 20.02.2024 at 10:16 UTC+2)
ESET-KeyGen - Trial-Key & Account generator for ESET Antivirus (last test was on 20.02.2024 at 15:15 UTC+2)

---
# My github page is currently blocked by ESET Antivirus, so you will not be able to access the project.
Expand Down
Binary file modified img/account_run_win.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/key_run_win.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
██╔══╝ ╚════██║██╔══╝ ██║ ██╔═██╗ ██╔══╝ ╚██╔╝ ██║ ██║██╔══╝ ██║╚██╗██║
███████╗███████║███████╗ ██║ ██║ ██╗███████╗ ██║ ╚██████╔╝███████╗██║ ╚████║
╚══════╝╚══════╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚══════╝ ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═══╝
Project Version: v1.3.0.4
Project Version: v1.3.1.0
Project Devs: rzc0d3r, AdityaGarg8, k0re,
Fasjeit, alejanpa17, Ischunddu,
soladify
Expand Down
53 changes: 16 additions & 37 deletions modules/eset_keygen.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,47 +27,26 @@ def sendRequestForKey(self):
console_log('Windows platform is selected!', OK)
uCE(self.driver, f"return {CLICK_WITH_BOOL}({GET_EBAV}('ion-button', 'robot', 'device-protect-choose-platform-continue-btn'))")

console_log('\nRequest license page loading...', INFO)
console_log('\nSending a request for a license...', INFO)
uCE(self.driver, f"return typeof {GET_EBAV}('ion-input', 'robot', 'device-protect-get-installer-email-input') === 'object'")

console_log('Sending a request for a license...', INFO)
exec_js(f"{GET_EBAV}('ion-input', 'robot', 'device-protect-get-installer-email-input').value = '{self.email_obj.get_full_login()}'")
exec_js(f"{GET_EBAV}('ion-button', 'robot', 'device-protect-get-installer-send-email-btn').click()")
console_log('Waiting for confirmation of request...', INFO)
uCE(self.driver, f"return {CLICK_WITH_BOOL}({GET_EBAV}('ion-button', 'robot', 'common-base-modal-header-close-btn'))")
console_log('Request was approved!', OK)
console_log('Request successfully sent!', OK)

def getLicenseData(self):
exec_js = self.driver.execute_script
uCE = untilConditionExecute
try: # Old method (V1)
console_log('\n[V1] License uploads...', INFO)
uCE(self.driver, f"return typeof {GET_EBAV}('ion-button', 'robot', 'license-list-open-detail-page-btn') === 'object'")
license_tag = exec_js(f"return {GET_EBAV}('ion-button', 'robot', 'license-list-open-detail-page-btn').href")
console_log('[V1] License is uploaded!', OK)
self.driver.get(f"https://home.eset.com{license_tag}")

console_log('\n[V1] Getting information from the license...', INFO)
uCE(self.driver, f"return {GET_EBCN}('ion-color ion-color-dark md hydrated').length > 20")

license_name = exec_js(f"return {GET_EBAV}('p', 'data-r', 'license-detail-product-name').innerText")
license_out_date = exec_js(f"return {GET_EBAV}('p', 'data-r', 'license-detail-license-model-additional-info').innerText")
license_key = exec_js(f"return {GET_EBAV}('p', 'data-r', 'license-detail-license-key').innerText")
console_log('[V1] Information successfully received!', OK)
return license_name, license_out_date, license_key
except: # New method (V2)
console_log('\nFirst method of obtaining a license was unsuccessful!', ERROR)
console_log('Attempting to obtain licenses by a new method...', INFO)
console_log('\n[V2] License uploads...', INFO)
for _ in range(DEFAULT_MAX_ITER*2):
message = self.email_obj.read_email()[0]
if message['from'] == '[email protected]':
console_log('[V2] License is uploaded!', OK)
message_body = self.email_obj.get_message(message['id'])['body']
console_log('\n[V2] Getting information from the license...', INFO)
license_name = ('ESET'+re.findall(r'>[\s]+ESET([\w ]+)[\s]+</td>', message_body)[0])
license_key = ('-'.join(re.findall(r'([\dA-Z]{4})-', message_body)))
license_out_date = (''.join(re.findall(r'\d{1,2}.\d{1,2}.\d{4}', message_body)))
console_log('[V2] Information successfully received!', OK)
return license_name, license_out_date, license_key
time.sleep(DEFAULT_DELAY)
self.driver.get('https://home.eset.com/subscriptions')
console_log('\nLicense uploads...', INFO)
uCE(self.driver, f"return typeof {GET_EBAV}('ion-button', 'robot', 'license-list-open-detail-page-btn') === 'object'")
license_tag = exec_js(f"return {GET_EBAV}('ion-button', 'robot', 'license-list-open-detail-page-btn').href")
console_log('License is uploaded!', OK)

console_log('\nGetting information from the license...', INFO)
self.driver.get(f"https://home.eset.com{license_tag}")
uCE(self.driver, f"return typeof {GET_EBAV}('div', 'class', 'LicenseDetailInfo') === 'object'")
license_name = exec_js(f"return {GET_EBAV}('p', 'data-r', 'license-detail-product-name').innerText")
license_out_date = exec_js(f"return {GET_EBAV}('p', 'data-r', 'license-detail-license-model-additional-info').innerText")
license_key = exec_js(f"return {GET_EBAV}('p', 'data-r', 'license-detail-license-key').innerText")
console_log('Information successfully received!', OK)
return license_name, license_out_date, license_key

0 comments on commit ef92d95

Please sign in to comment.