dzflack / duo-device-health

Golang script to bypass the client-side health checks when logging into DUO protected accounts
12 stars 4 forks source link

Win7 runtime error #7

Open toledobastos opened 1 year ago

toledobastos commented 1 year ago

I got it to listen to 127.0.0.1:55899 but as soon as I open the exceedingly annoying Duo Health check it crashes:

http: panic serving 127.0.0.1:55899: runtime error: index out of range [1] with length 0.

That's with Windows on Chrome and Firefox. I made the adjustments to the file, so I'm guessing this isn't working on Windows (7 Ultimate 64bit)?

jetblackrx89 commented 1 year ago

Getting the same issue with macOS 14.1. Sonoma. I am not sure if @gmazzola can help here again since they did a commit for #6 for a similar issue.

On my end, despite the fact that it says there was a panic, the script is definitely still listening for incoming DUO Health Check connections. I see it sending JSON back to my browser, but the request eventually times out, and it prompts me to download the app. So it might be that because this error is happening so early on, the response JSON isn't going to the right place and the health check is kept waiting forever?

The product has also been rebranded as "DUO Desktop" very recently, so I am not sure if that introduces any other changes in the API scheme. Glancing over some docs, I don't think it did, but I could be wrong.