duo-bypass
duo-bypass copied to clipboard
I'm trying to update this but I got stuck
My work has decided to use Duo and it's driving me nuts so I figured your script could help I've upgraded it to Python3 and poked it for a while but now I'm getting "unknown activation code" in the response json and I'm not sure where to go next.
Since I don't know what the Py3 equivalent to urllib2.unquote
is I've had to work around it
I've found the right value to plug into host64
but I'm having trouble with code
It seems like you have to supply user-agent now, but I cannot figure the right one to pass.
Duo api replies with this, the first time you use "code".
{'code': 40002, 'message': 'Unsupported platform', 'stat': 'FAIL'}
After that, it will deny any request with the same "code".
{'code': 40403, 'message': 'Unknown activation code', 'stat': 'FAIL'}
@Chrozayis "code" is just the part before "-"
Try have a look at https://github.com/ixs/duo-cli/commit/5cb56001048efd84d377fcae3459961bf5d8c9ca which updates the code to work correctly.