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

I'm trying to update this but I got stuck

Open Chrozayis opened this issue 6 years ago • 2 comments

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

Chrozayis avatar May 08 '18 20:05 Chrozayis

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 "-"

elnardu avatar Oct 31 '18 17:10 elnardu

Try have a look at https://github.com/ixs/duo-cli/commit/5cb56001048efd84d377fcae3459961bf5d8c9ca which updates the code to work correctly.

ixs avatar Mar 19 '19 23:03 ixs