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

Getting Admin Info Error #62

Open
random-robbie opened this issue Feb 27, 2023 · 0 comments
Open

Getting Admin Info Error #62

random-robbie opened this issue Feb 27, 2023 · 0 comments

Comments

@random-robbie
Copy link

random-robbie commented Feb 27, 2023

Python 3.10.5

python3 SlackPirate.py --token xxxxxx

[INFO]: Token looks valid! URL https://xxxxx.slack.com

  File "/Users/rwiggins/tools/SlackPirate/SlackPirate.py", line 1036, in <module>
    if check_if_admin_token(token=provided_token, scan_context=collected_scan_context):
  File "/Users/rwiggins/tools/SlackPirate/SlackPirate.py", line 238, in check_if_admin_token
    return r['user']['is_admin'] or r['user']['is_owner'] or r['user']['is_primary_owner']

JSON returned. suspect account might not have the right permissions so needs to error out properly.

{
   "ok": false,
   "error": "missing_scope",
   "needed": "users:read",
   "provided": "identify,incoming-webhook,chat:write:user,chat:write:bot"
}
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

1 participant