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

SyntaxWarning from regexes in ScoutSuite/providers/utils.py #1680

Open
ckuethe opened this issue Nov 13, 2024 · 3 comments
Open

SyntaxWarning from regexes in ScoutSuite/providers/utils.py #1680

ckuethe opened this issue Nov 13, 2024 · 3 comments
Labels
bug Something isn't working potential Unconfirmed issue

Comments

@ckuethe
Copy link

ckuethe commented Nov 13, 2024

Describe the bug

While running scoutsuite (commit bb0c983) with python 3.12.3 I got a bunch of these warnings.

ScoutSuite/providers/utils.py:137: SyntaxWarning: invalid escape sequence '\-'
  re.compile("(adobe[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([a-f0-9]{32})['\"]"),

The scan completed but I don't like SyntaxWarnings. I'm filing this bug so that I can reference it in a PR (#1681) that fixes it. :)

To Reproduce

scout aws -p aws_target --report-dir ~/scoutsuite/aws_target

There's nothing special about my AWS configuration, I set up my account as documented on https://github.com/nccgroup/ScoutSuite/wiki/Amazon-Web-Services

Additional context

  • Python 3.12.3 venv
  • Ubuntu 24.04.1 LTS x86_64
  • Commit bb0c983
@ckuethe ckuethe added bug Something isn't working potential Unconfirmed issue labels Nov 13, 2024
@gy8879
Copy link

gy8879 commented Nov 15, 2024

we are students majoring in computer science. can we take it?

@ckuethe
Copy link
Author

ckuethe commented Nov 15, 2024

@gy8879 you don't need my permission to use this patch; I'm contributing this because ScoutSuite has been useful for me and I hope this makes ScoutSuite a little more useful for others.

Back when I was in university they didn't care too much which sources I used, as much they wanted me to properly cite them.

You'd have to ask your instructors if using GPL software is allowed in their courses but there's nothing in the GPL that says you can't use it for educational purposes.

@gy8879
Copy link

gy8879 commented Nov 16, 2024

thx 😀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working potential Unconfirmed issue
Projects
None yet
Development

No branches or pull requests

2 participants