Giter VIP home page Giter VIP logo

Comments (12)

Derpitron avatar Derpitron commented on June 12, 2024

There seem to be multiple bugs in this issue, the way I see it.

  1. password reset mode being triggered upon login mode failure
  2. Incorrect login-to-reset mode changing functionality

I will try to fix both of these.

from discord-otp-forcer.

Derpitron avatar Derpitron commented on June 12, 2024

This should be fixed in b0bf96d. Let me know if the problem persists

from discord-otp-forcer.

Beezlebub3rd avatar Beezlebub3rd commented on June 12, 2024

We got farther in, it at least displayed the invalid session ticket message and the useful stats before giving me this log

  File "Documents\Discord-OTP-Forcer-main\main.py", line 67, in <module>
    userFacing(loadcfg())
  File "Documents\Discord-OTP-Forcer-main\main.py", line 63, in userFacing
    loginBootstrap(driver, cfg)
  File "Documents\Discord-OTP-Forcer-main\src\backend.py", line 104, in loginBootstrap
    codeEntry(driver, loginFields, cfg)
  File "Documents\Discord-OTP-Forcer-main\src\backend.py", line 196, in codeEntry
    loginTest = driver.find_element(by=By.CLASS_NAME, value='app-2CXKsg')
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 1251, in find_element
    return self.execute(Command.FIND_ELEMENT, {
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 430, in execute
    self.error_handler.check_response(response)
  File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 247, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.InvalidSessionIdException: Message: invalid session id
Stacktrace:
Backtrace:
        GetHandleVerifier [0x0051A813+48355]
        (No symbol) [0x004AC4B1]
        (No symbol) [0x003B5220]
        (No symbol) [0x003D7F12]
        (No symbol) [0x003D93DD]
        GetHandleVerifier [0x0077AABD+2539405]
        GetHandleVerifier [0x007BA78F+2800735]
        GetHandleVerifier [0x007B456C+2775612]
        GetHandleVerifier [0x005A51E0+616112]
        (No symbol) [0x004B5F8C]
        (No symbol) [0x004B2328]
        (No symbol) [0x004B240B]
        (No symbol) [0x004A4FF7]
        BaseThreadInitThunk [0x776600C9+25]
        RtlGetAppContainerNamedObjectPath [0x77A27B4E+286]
        RtlGetAppContainerNamedObjectPath [0x77A27B1E+238]```

from discord-otp-forcer.

LuXeZs avatar LuXeZs commented on June 12, 2024

Sorry for the late reply, Does this error show up after the browser is closed and the useful info is printed?

from discord-otp-forcer.

Beezlebub3rd avatar Beezlebub3rd commented on June 12, 2024

Yes it does show up after the browser is closed and the useful info is printed

from discord-otp-forcer.

LuXeZs avatar LuXeZs commented on June 12, 2024

Okay that error only shows because it can't find the browser as the script is ended and you'll need to start it again.

I'll look into implement a fix for this now.

from discord-otp-forcer.

Beezlebub3rd avatar Beezlebub3rd commented on June 12, 2024

I do believe the same bug is now caused by a different issue?

Traceback (most recent call last):
  File "Documents\Discord-OTP-Forcer-main\main.py", line 67, in <module>
    userFacing(loadcfg())
  File "Documents\Discord-OTP-Forcer-main\main.py", line 63, in userFacing
    loginBootstrap(driver, cfg)
  File "Documents\Discord-OTP-Forcer-main\src\backend.py", line 99, in loginBootstrap
    loginFields['TOTP'] = driver.find_element(by=By.XPATH, value="//input[@placeholder='6-digit authentication code/8-digit backup code']") #or driver.find_element(by=By.XPATH, value="//*[@aria-label='Enter Discord Auth/Backup Code']")
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 1251, in find_element
    return self.execute(Command.FIND_ELEMENT, {
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 430, in execute
    self.error_handler.check_response(response)
  File "Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 247, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.InvalidSessionIdException: Message: invalid session id
Stacktrace:
Backtrace:
        GetHandleVerifier [0x0116A813+48355]
        (No symbol) [0x010FC4B1]
        (No symbol) [0x01005220]
        (No symbol) [0x01027F12]
        (No symbol) [0x010293DD]
        GetHandleVerifier [0x013CAABD+2539405]
        GetHandleVerifier [0x0140A78F+2800735]
        GetHandleVerifier [0x0140456C+2775612]
        GetHandleVerifier [0x011F51E0+616112]
        (No symbol) [0x01105F8C]
        (No symbol) [0x01102328]
        (No symbol) [0x0110240B]
        (No symbol) [0x010F4FF7]
        BaseThreadInitThunk [0x750D00C9+25]
        RtlGetAppContainerNamedObjectPath [0x77087B4E+286]
        RtlGetAppContainerNamedObjectPath [0x77087B1E+238]
        

from discord-otp-forcer.

Beezlebub3rd avatar Beezlebub3rd commented on June 12, 2024

I realize that you are still looking into it and that the commit you made probably isn't finished. I apologize for the inconvenience

from discord-otp-forcer.

LuXeZs avatar LuXeZs commented on June 12, 2024

Think I found the issue, Could you please download the newest version and see if it has fixed your issue?

from discord-otp-forcer.

Beezlebub3rd avatar Beezlebub3rd commented on June 12, 2024

It has not. New error text though?
`Traceback (most recent call last):
File "Documents\Discord-OTP-Forcer-main\src\backend.py", line 99, in loginBootstrap
loginFields['TOTP'] = driver.find_element(by=By.XPATH, value="//input[@Placeholder='6-digit authentication code/8-digit backup code']") #or driver.find_element(by=By.XPATH, value="//*[@aria-label='Enter Discord Auth/Backup Code']")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 1251, in find_element
return self.execute(Command.FIND_ELEMENT, {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 430, in execute
self.error_handler.check_response(response)
File "Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 247, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.InvalidSessionIdException: Message: invalid session id
Stacktrace:
Backtrace:
GetHandleVerifier [0x0116A813+48355]
(No symbol) [0x010FC4B1]
(No symbol) [0x01005220]
(No symbol) [0x01027F12]
(No symbol) [0x010293DD]
GetHandleVerifier [0x013CAABD+2539405]
GetHandleVerifier [0x0140A78F+2800735]
GetHandleVerifier [0x0140456C+2775612]
GetHandleVerifier [0x011F51E0+616112]
(No symbol) [0x01105F8C]
(No symbol) [0x01102328]
(No symbol) [0x0110240B]
(No symbol) [0x010F4FF7]
BaseThreadInitThunk [0x750D00C9+25]
RtlGetAppContainerNamedObjectPath [0x77087B4E+286]
RtlGetAppContainerNamedObjectPath [0x77087B1E+238]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "Documents\Discord-OTP-Forcer-main\main.py", line 67, in
userFacing(loadcfg())
File "Documents\Discord-OTP-Forcer-main\main.py", line 63, in userFacing
loginBootstrap(driver, cfg)
File "Documents\Discord-OTP-Forcer-main\src\backend.py", line 107, in loginBootstrap
except InvalidSessionIdException: # If the browser window is closed stop looking for TOTP login field
^^^^^^^^^^^^^^^^^^^^^^^^^
NameError: name 'InvalidSessionIdException' is not defined`

from discord-otp-forcer.

Derpitron avatar Derpitron commented on June 12, 2024

bff8a8f attempts to fix this. Not a complete fix yet

from discord-otp-forcer.

Beezlebub3rd avatar Beezlebub3rd commented on June 12, 2024

I do believe it's functioning perfectly now?
Debug

from discord-otp-forcer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.