Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to generate keys on Windows #61

Closed
AdityaGarg8 opened this issue Dec 26, 2023 · 34 comments
Closed

Unable to generate keys on Windows #61

AdityaGarg8 opened this issue Dec 26, 2023 · 34 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@AdityaGarg8
Copy link
Contributor

When I try the exe file on Windows, I get this error when I try to generate keys. I can generate accounts though

[ FAILED ] Traceback (most recent call last):
  File "main.py", line 109, in <module>
  File "modules/eset_keygen.py", line 24, in sendRequestForKey
  File "modules/shared_tools.py", line 61, in untilConditionExecute
RuntimeError: untilConditionExecute: the code did not return the desired value!
@rzc0d3r
Copy link
Owner

rzc0d3r commented Dec 26, 2023

I get this:

image

@AdityaGarg8
Copy link
Contributor Author

image
I get this with the latest exe

@AdityaGarg8
Copy link
Contributor Author

I am able to generate accounts with this without any issue

@rzc0d3r
Copy link
Owner

rzc0d3r commented Dec 26, 2023

image I get this with the latest exe

The problem is that it's probably affected by headless mode, but I don't get that error.

@AdityaGarg8
Copy link
Contributor Author

I see, I anyways can use GitHub CI so its ok.

@rzc0d3r
Copy link
Owner

rzc0d3r commented Dec 26, 2023

Extract this archive to root project folder with replace files
modules.zip
And try run again.

@AdityaGarg8
Copy link
Contributor Author

It turns out that it is not setting the region correctly. My region is India and trial is not there so thats why it doesn't work

@AdityaGarg8
Copy link
Contributor Author

image

@AdityaGarg8
Copy link
Contributor Author

Also, your software is now detected as a virus by Windows Defender :(

@rzc0d3r
Copy link
Owner

rzc0d3r commented Dec 26, 2023

Also, your software is now detected as a virus by Windows Defender :(

Because pyinstaller uses algorithms similar to upx, and that's what viruses do. So all files with such algorithms are considered viruses, although this is not always the case.

@rzc0d3r
Copy link
Owner

rzc0d3r commented Dec 26, 2023

image

It seems to be because of the country. I removed the country change in the last global update, as I haven't found a way to address this yet.

@AdityaGarg8
Copy link
Contributor Author

I'll have to use a VPN then

@AdityaGarg8
Copy link
Contributor Author

AdityaGarg8 commented Dec 26, 2023

Should I keep the issue open?

@rzc0d3r
Copy link
Owner

rzc0d3r commented Dec 26, 2023

Стоит ли мне оставить вопрос открытым?

YES

@rzc0d3r rzc0d3r added bug Something isn't working help wanted Extra attention is needed labels Dec 26, 2023
@AdityaGarg8
Copy link
Contributor Author

AdityaGarg8 commented Dec 26, 2023

I don't how much about the code but can this be of some help?

https://www.browserstack.com/guide/python-selenium-select-dropdown

@rzc0d3r
Copy link
Owner

rzc0d3r commented Dec 26, 2023

Try this ESET-KeyGen_v1.1.0.1-pre.zip

@AdityaGarg8
Copy link
Contributor Author

Try this ESET-KeyGen_v1.1.0.1-pre.zip

same error

@rzc0d3r
Copy link
Owner

rzc0d3r commented Dec 26, 2023

Try this ESET-KeyGen_v1.1.0.1-pre.zip

same error

I'll send you a new version right now. There you will have to manually select the country. Select Ukraine and in the console press enter

@AdityaGarg8
Copy link
Contributor Author

ok

@rzc0d3r
Copy link
Owner

rzc0d3r commented Dec 26, 2023

@AdityaGarg8
Copy link
Contributor Author

manually selecting ukraine worked

@AdityaGarg8
Copy link
Contributor Author

I guess thats not a very nice way though.

@rzc0d3r
Copy link
Owner

rzc0d3r commented Dec 26, 2023

I guess thats not a very nice way though.

I just wanted to see if the country had any effect on the restrictions. Well, as you can see, it does.
This still needs to be put back into the project somehow.

@AdityaGarg8
Copy link
Contributor Author

<div class="select__single-value ltr-1dimb5e-singleValue">India</div>

I got this

@AdityaGarg8
Copy link
Contributor Author

AdityaGarg8 commented Dec 26, 2023

from selenium import webdriver
from selenium.webdriver.support.ui import Select
from selenium.webdriver.common.by import By

# Create a webdriver instance (make sure you have the appropriate driver installed)
driver = webdriver.Chrome()

# Open the webpage
driver.get("your_website_url_here")

# Find the element by its class name (you can use another locating strategy if needed)
country_element = driver.find_element(By.CLASS_NAME, "select__single-value")

# Use Selenium's Select class to interact with dropdowns
select = Select(country_element)

# Change the country to the desired one (replace 'NewCountry' with the actual country name)
new_country = 'NewCountry'
select.select_by_visible_text(new_country)

# You might need to wait for the changes to take effect (if there's any dynamic loading)
# You can use WebDriverWait for this purpose

# Perform any additional actions or submit the form if needed

# Close the browser window
driver.quit()

Can this work?

@rzc0d3r
Copy link
Owner

rzc0d3r commented Dec 26, 2023

I found the new method I'm just laughing at how stupid I was and how much time I wasted!!

@AdityaGarg8
Copy link
Contributor Author

Good to know. I am happy to test.

@rzc0d3r
Copy link
Owner

rzc0d3r commented Dec 26, 2023

Good to know. I am happy to test.

ESET-KeyGen_v1.1.1.0-pre.zip

@AdityaGarg8
Copy link
Contributor Author

image
It selected ukraine though

@rzc0d3r
Copy link
Owner

rzc0d3r commented Dec 26, 2023

Code Refers to a dead DOM pointer. I'll see what I can do about it

@rzc0d3r
Copy link
Owner

rzc0d3r commented Dec 26, 2023

@AdityaGarg8
Copy link
Contributor Author

It works

@AdityaGarg8
Copy link
Contributor Author

ESET-KeyGen_v1.1.1.0-pre2.zip

Even macOS binary works now

image

@AdityaGarg8
Copy link
Contributor Author

In case you update the readme for macOS, you may want to add that the binary has to be made executable by running chmod a+x /path/to/binary before running on the terminal.

@rzc0d3r rzc0d3r closed this as completed Dec 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants