Derpitron / Discord-OTP-Forcer

Selenium based discord OTP forcer
GNU Affero General Public License v3.0
43 stars 12 forks source link

[Bug]: normal mode breaks after a while #92

Closed SMG54321 closed 7 months ago

SMG54321 commented 7 months ago

Description

while using normal mode, it broke. not sure how!

Minimal Reproduction

censored name

Error

Traceback (most recent call last): File "C:\Users[REDACTED]\Desktop\junk 3 recylcled edition\Discord-OTP-Forcer-main\src\backend.py", line 215, in code_entry loginTest = driver.find_element(by=By.CLASS_NAME, value='app-2CXKsg') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users[REDACTED]\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 741, in find_element return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users[REDACTED]\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 347, in execute self.error_handler.check_response(response) File "C:\Users[REDACTED]\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 229, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":".app-2CXKsg"} (Session info: chrome=119.0.6045.160); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception Stacktrace: GetHandleVerifier [0x00DE72A3+45731] (No symbol) [0x00D72D51] (No symbol) [0x00C6880D] (No symbol) [0x00C9B940] (No symbol) [0x00C9BE0B] (No symbol) [0x00CCD1F2] (No symbol) [0x00CB8024] (No symbol) [0x00CCB7A2] (No symbol) [0x00CB7DD6] (No symbol) [0x00C931F6] (No symbol) [0x00C9439D] GetHandleVerifier [0x010F0716+3229462] GetHandleVerifier [0x011384C8+3523784] GetHandleVerifier [0x0113214C+3498316] GetHandleVerifier [0x00E71680+611968] (No symbol) [0x00D7CCCC] (No symbol) [0x00D78DF8] (No symbol) [0x00D78F1D] (No symbol) [0x00D6B2C7] BaseThreadInitThunk [0x75F1FCC9+25] RtlGetAppContainerNamedObjectPath [0x770F7C6E+286] RtlGetAppContainerNamedObjectPath [0x770F7C3E+238]

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users[REDACTED]\Desktop\junk 3 recylcled edition\Discord-OTP-Forcer-main\main.py", line 68, in userFacing(load_configuration()) File "C:\Users[REDACTED]\Desktop\junk 3 recylcled edition\Discord-OTP-Forcer-main\main.py", line 64, in userFacing bootstrap_login_page(driver, configuration) File "C:\Users[REDACTED]\Desktop\junk 3 recylcled edition\Discord-OTP-Forcer-main\src\backend.py", line 117, in bootstrap_login_page code_entry(driver, login_fields, configuration) File "C:\Users[REDACTED]\Desktop\junk 3 recylcled edition\Discord-OTP-Forcer-main\src\backend.py", line 225, in code_entry login_fields['TOTP'].send_keys(Keys.BACKSPACE) File "C:\Users[REDACTED]\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\remote\webelement.py", line 230, in send_keys self._execute( File "C:\Users[REDACTED]\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\remote\webelement.py", line 394, in _execute return self._parent.execute(command, params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users[REDACTED]\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 347, in execute self.error_handler.check_response(response) File "C:\Users[REDACTED]\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 229, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable (Session info: chrome=119.0.6045.160) Stacktrace: GetHandleVerifier [0x00DE72A3+45731] (No symbol) [0x00D72D51] (No symbol) [0x00C686D0] (No symbol) [0x00C98118] (No symbol) [0x00C9774F] (No symbol) [0x00CB7FDC] (No symbol) [0x00C94A4E] (No symbol) [0x00CB8254] (No symbol) [0x00CCB7A2] (No symbol) [0x00CB7DD6] (No symbol) [0x00C931F6] (No symbol) [0x00C9439D] GetHandleVerifier [0x010F0716+3229462] GetHandleVerifier [0x011384C8+3523784] GetHandleVerifier [0x0113214C+3498316] GetHandleVerifier [0x00E71680+611968] (No symbol) [0x00D7CCCC] (No symbol) [0x00D78DF8] (No symbol) [0x00D78F1D] (No symbol) [0x00D6B2C7] BaseThreadInitThunk [0x75F1FCC9+25] RtlGetAppContainerNamedObjectPath [0x770F7C6E+286] RtlGetAppContainerNamedObjectPath [0x770F7C3E+238]

Operating System Version

dunno

Python Version

3.12

Program Version

latest

Any other information or context?

No response

LuXeZs commented 7 months ago

Does this happen every time you run the program? Also how long does it run before this happens?

SMG54321 commented 7 months ago

I just timed it. It usually works for about 4 minutes and 25 seconds

On Wed, Nov 22, 2023 at 6:41 AM LuXeZs @.***> wrote:

Does this happen every time you run the program? Also how long does it run before this happens?

— Reply to this email directly, view it on GitHub https://github.com/Derpitron/Discord-OTP-Forcer/issues/92#issuecomment-1822794806, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMFYWNTNUBTSIJCTAUKMQ2TYFX6JXAVCNFSM6AAAAAA7WC3QESVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRSG44TIOBQGY . You are receiving this because you authored the thread.Message ID: @.***>

SMG54321 commented 7 months ago

actually, its verying WILDLY!!! like the most recent was like only 4 or 5 attemps before it gave that error. i think its because its about to attempt the right one but SOMETHING is saying no

SMG54321 commented 7 months ago

actually, can you give me the 6 digit codes that the exception errors produced? one of them might be right!. to me its unreadable as of now

SMG54321 commented 7 months ago

Does this happen every time you run the program? Also how long does it run before this happens?

yep, can you send me the codes that those exceptions might be producing? they might be the right one?

SMG54321 commented 7 months ago

image_2023-11-22_201945935

this attempt broke after one failed code

Derpitron commented 7 months ago

Don't create duplicate issues of the same bug. This is being worked on.

SMG54321 commented 7 months ago

sorry

On Thu, Nov 23, 2023, 6:16 a.m. Derpitron @.***> wrote:

Don't create duplicate issues of the same bug. This is being worked on.

— Reply to this email directly, view it on GitHub https://github.com/Derpitron/Discord-OTP-Forcer/issues/92#issuecomment-1824422950, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMFYWNSIGORUQC3UL3Q27OLYF5EBVAVCNFSM6AAAAAA7WC3QESVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRUGQZDEOJVGA . You are receiving this because you authored the thread.Message ID: @.***>

LuXeZs commented 7 months ago

@SMG54321 Could you download the latest version and see if the issue is fixed.

SMG54321 commented 7 months ago

doesnt break at random, but now its saying the first code it tries works before crashing like this [image: image.png]

On Thu, Nov 23, 2023 at 11:55 PM LuXeZs @.***> wrote:

@SMG54321 https://github.com/SMG54321 Could you download the latest version and see if the issue is fixed.

— Reply to this email directly, view it on GitHub https://github.com/Derpitron/Discord-OTP-Forcer/issues/92#issuecomment-1825222719, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMFYWNU2ZFZMLZQX5FVMHMLYGBAF7AVCNFSM6AAAAAA7WC3QESVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRVGIZDENZRHE . You are receiving this because you were mentioned.Message ID: @.***>

SMG54321 commented 7 months ago

the code did not work BTW

On Fri, Nov 24, 2023 at 12:41 AM SMG 54321 @.***> wrote:

doesnt break at random, but now its saying the first code it tries works before crashing like this [image: image.png]

On Thu, Nov 23, 2023 at 11:55 PM LuXeZs @.***> wrote:

@SMG54321 https://github.com/SMG54321 Could you download the latest version and see if the issue is fixed.

— Reply to this email directly, view it on GitHub https://github.com/Derpitron/Discord-OTP-Forcer/issues/92#issuecomment-1825222719, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMFYWNU2ZFZMLZQX5FVMHMLYGBAF7AVCNFSM6AAAAAA7WC3QESVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRVGIZDENZRHE . You are receiving this because you were mentioned.Message ID: @.***>

SMG54321 commented 7 months ago

tested it with backup. same problem. might be because i didnt fill out the disable 2fa part of the cfg.yml. but i dunno [image: image.png]

On Fri, Nov 24, 2023 at 12:41 AM SMG 54321 @.***> wrote:

the code did not work BTW

On Fri, Nov 24, 2023 at 12:41 AM SMG 54321 @.***> wrote:

doesnt break at random, but now its saying the first code it tries works before crashing like this [image: image.png]

On Thu, Nov 23, 2023 at 11:55 PM LuXeZs @.***> wrote:

@SMG54321 https://github.com/SMG54321 Could you download the latest version and see if the issue is fixed.

— Reply to this email directly, view it on GitHub https://github.com/Derpitron/Discord-OTP-Forcer/issues/92#issuecomment-1825222719, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMFYWNU2ZFZMLZQX5FVMHMLYGBAF7AVCNFSM6AAAAAA7WC3QESVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRVGIZDENZRHE . You are receiving this because you were mentioned.Message ID: @.***>

LuXeZs commented 7 months ago

fixed in latest version

Derpitron commented 7 months ago

The program works for me. Disregard my previous edit.

After commit d1a5b0359dcd793e3d17846c3fdfb63919b34f13, the program seems to simply not work in my case. Running py main.py neither shows an error, nor does it spawn the Selenium window.

SMG54321 commented 7 months ago

ok, even i am admitting, this is starting to get stupid

[image: image.png] [image: image.png]

My configuration is as follows

Basic login info

email: "xxx" password: ""

Program mode configuration

Lets you skip the initial mode prompt stage by filling in your desired

programMode and codeMode beforehand.

programMode: "reset" codeMode: "normal"

Password Reset Info

#

To get your token it will be in the url of the password reset page.

Follow the instructions in the README.md on how to obtain this token

newPassword: "xxx" resetToken: "xxx"

Disable 2FA info

Fill in your discord account token here.

authToken: ""

i am also running the "start" batch file to activate it if that is doing anything

On Fri, Nov 24, 2023 at 8:21 AM Derpitron @.***> wrote:

Closed #92 https://github.com/Derpitron/Discord-OTP-Forcer/issues/92 as completed.

— Reply to this email directly, view it on GitHub https://github.com/Derpitron/Discord-OTP-Forcer/issues/92#event-11057553038, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMFYWNWWVYYWOKKPYK73P3TYGC3OPAVCNFSM6AAAAAA7WC3QESVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJRGA2TONJVGMYDGOA . You are receiving this because you were mentioned.Message ID: @.***>

SMG54321 commented 7 months ago

might be because i installed selenium and pyYAML seperatly outside of the "setup" batch file?

could also be the version im using the program on (python 3.12). which version are you running it on?

i am so sorry for asking questions that might be causing you to bash your face against the wall!

On Fri, Nov 24, 2023 at 8:57 AM SMG 54321 @.***> wrote:

ok, even i am admitting, this is starting to get stupid

[image: image.png] [image: image.png]

My configuration is as follows

Basic login info

email: "xxx" password: ""

Program mode configuration

Lets you skip the initial mode prompt stage by filling in your desired

programMode and codeMode beforehand.

programMode: "reset" codeMode: "normal"

Password Reset Info

#

To get your token it will be in the url of the password reset page.

Follow the instructions in the README.md on how to obtain this token

newPassword: "xxx" resetToken: "xxx"

Disable 2FA info

Fill in your discord account token here.

authToken: ""

i am also running the "start" batch file to activate it if that is doing anything

On Fri, Nov 24, 2023 at 8:21 AM Derpitron @.***> wrote:

Closed #92 https://github.com/Derpitron/Discord-OTP-Forcer/issues/92 as completed.

— Reply to this email directly, view it on GitHub https://github.com/Derpitron/Discord-OTP-Forcer/issues/92#event-11057553038, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMFYWNWWVYYWOKKPYK73P3TYGC3OPAVCNFSM6AAAAAA7WC3QESVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJRGA2TONJVGMYDGOA . You are receiving this because you were mentioned.Message ID: @.*** com>

SMG54321 commented 7 months ago

[image: image.png] [image: image.png]

On Fri, Nov 24, 2023 at 9:27 AM SMG 54321 @.***> wrote:

might be because i installed selenium and pyYAML seperatly outside of the "setup" batch file?

could also be the version im using the program on (python 3.12). which version are you running it on?

i am so sorry for asking questions that might be causing you to bash your face against the wall!

On Fri, Nov 24, 2023 at 8:57 AM SMG 54321 @.***> wrote:

ok, even i am admitting, this is starting to get stupid

[image: image.png] [image: image.png]

My configuration is as follows

Basic login info

email: "xxx" password: ""

Program mode configuration

Lets you skip the initial mode prompt stage by filling in your desired

programMode and codeMode beforehand.

programMode: "reset" codeMode: "normal"

Password Reset Info

#

To get your token it will be in the url of the password reset page.

Follow the instructions in the README.md on how to obtain this token

newPassword: "xxx" resetToken: "xxx"

Disable 2FA info

Fill in your discord account token here.

authToken: ""

i am also running the "start" batch file to activate it if that is doing anything

On Fri, Nov 24, 2023 at 8:21 AM Derpitron @.***> wrote:

Closed #92 https://github.com/Derpitron/Discord-OTP-Forcer/issues/92 as completed.

— Reply to this email directly, view it on GitHub https://github.com/Derpitron/Discord-OTP-Forcer/issues/92#event-11057553038, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMFYWNWWVYYWOKKPYK73P3TYGC3OPAVCNFSM6AAAAAA7WC3QESVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJRGA2TONJVGMYDGOA . You are receiving this because you were mentioned.Message ID: @.*** com>