duo-bypass icon indicating copy to clipboard operation
duo-bypass copied to clipboard

Code update

Open sfalvey opened this issue 6 years ago • 0 comments

Looks like the activation process has got a little less obfuscated.

To fix:

Remove the following lines....

data = unquote(qr_url.split('=')[1]) hostb64 = data.split('-')[1] host = base64.b64decode(hostb64 + '='*(-len(hostb64) % 4)) code = data.split('-')[0].replace('duo://', '')

Add the following lines in their place

host = qr_url.split('/')[2].split('-')[1] code = qr_url.rsplit('/',1)[1]

sfalvey avatar Jan 23 '19 22:01 sfalvey