Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I'm trying to update this but I got stuck #1

Open
Chrozayis opened this issue May 8, 2018 · 2 comments
Open

I'm trying to update this but I got stuck #1

Chrozayis opened this issue May 8, 2018 · 2 comments

Comments

@Chrozayis
Copy link

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

@elnardu
Copy link

elnardu commented Oct 31, 2018

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

@ixs
Copy link
Contributor

ixs commented Mar 19, 2019

Try have a look at ixs@5cb5600 which updates the code to work correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@ixs @elnardu @Chrozayis and others