Tut-k0 / htb-academy-to-md

Simple CLI program that will fetch and convert a HackTheBox Academy module into a local file in Markdown format.
31 stars 5 forks source link

New HTB Account #4

Closed TectonicKestrel closed 5 months ago

TectonicKestrel commented 5 months ago

Hi, Now that HTB is using the new "HTB Account" which uses the details from the Labs platform, do you have plans to use this login system? Currently neither my Academy or Labs password works and I get the following error:

panic: runtime error: slice bounds out of range [1:0]

goroutine 1 [running]:
main.getModulePages({0xc0001dc000, 0x295d}, {0xc000014200, 0x34})
        /home/tut/Programming/go/htb-academy-md/src/export.go:217 +0x177
main.getModule({0xc000014200, 0x34}, {{0xc000230780?, 0x17?}, {0xc000108000?, 0x3dd7c8?}})
        /home/tut/Programming/go/htb-academy-md/src/export.go:142 +0x3b4
main.main()
        /home/tut/Programming/go/htb-academy-md/src/main.go:13 +0xd7

My HTB Account doesnt have 2FA enabled.

Thanks

Tut-k0 commented 5 months ago

Hey! Thanks for reporting this issue.

I kind of expected that something would break for this eventually after hearing about the new account linking feature between platforms. I will take a look later today when I get some time and update the tool to use the new authentication process.