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

Error when using the Okta module #11

Closed
jsarkisian opened this issue Feb 3, 2022 · 3 comments
Closed

Error when using the Okta module #11

jsarkisian opened this issue Feb 3, 2022 · 3 comments

Comments

@jsarkisian
Copy link

jsarkisian commented Feb 3, 2022

When running the following command:

poetry run trevorspray -u Users -p password -m okta -j 10 --random-useragent --ssh root@IP root@IP root@IP root@IP root@IP -n

The tool then fires up and outputs this:

[USER] Enter target subdomain (<subdomain>.okta.com): subdomain

And after entering the valid subdomain, the following error occurs:

[ERRR] Unhandled error in Okta.create_request(): 'subdomain' (-v to debug)
[ERRR] Traceback (most recent call last): File "/root/tools/TREVORspray/trevorspray/lib/proxy.py", line 247, in check_cred prepared_request = sprayer.create_request(user, password).prepare() File "/root/tools/TREVORspray/trevorspray/lib/sprayers/base.py", line 78, in create_request url = self.url.format(**self.globalparams, **runtimeparams) KeyError: 'subdomain'

Using Python 3.8.7 in Kali Linux

Not sure what the issue is, thanks!

@TheTechromancer
Copy link
Collaborator

Nice find. I've pushed a few changes that should fix this. Can you try again with the latest dev branch?

pip install --force-reinstall git+https://github.com/blacklanternsecurity/trevorspray@dev

@jsarkisian
Copy link
Author

Now getting a lot of this when spraying accounts:

[This operation is not allowed in the current authentication state.] (Response code 403)

Guessing this is working properly now and that's the throttling coming into play?

Also, the finished spraying line says this:

Finished spraying 54 users against https://{subdomain}.okta.com/api/v1/authn

Guessing it should be the actual subdomain inside those brackets? Is that just a small oversight or is it not actually taking the subdomain value when spraying?

Thanks for the quick turnaround!

@TheTechromancer
Copy link
Collaborator

Yes, it looks like you are being rate limited.

The actual requests do contain the subdomain; you can verify this with -v.

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

2 participants