Page 1 of 1

Read discord local storage using ahk

Posted: 21 Apr 2021, 04:36
by djuga
Need any way to get discord id using autohotkey, anybody know how to do that ?

Im make this , but its not better way for this

Code: Select all

vChar := "@"
vPath = %A_Appdata%\discord\Local Storage\leveldb\000005.ldb
oFile := FileOpen(vPath, "r")
oFile.Pos := 0
oFile.RawRead(vData, vSize := oFile.Length)
oFile.Close()
vOrd := Ord(vChar)
Loop, % vSize
if !NumGet(&vData, A_Index-1, "UChar")
NumPut(vOrd, &vData, A_Index-1, "UChar")
DiscordID := RegExReplace(SubStr(StrGet(&vData, vSize, "CP0"), InStr(StrGet(&vData, vSize, "CP0"), "user_id", CaseSensitive := false, StartingPos := 25, Occurrence := 1) + 14, 25), "[^0-9]")
Msgbox % DiscordID 

Re: Read discord local storage using ahk

Posted: 20 Apr 2022, 02:38
by flightlex_
i tried but it doesnt work :(

Re: Read discord local storage using ahk

Posted: 25 Apr 2022, 16:37
by itsholy
There are website for getting your discord id. You're probably wanna make a token grabber. So not gonna try to help.