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

TypeError in small keywords #11

Open
joswr1ght opened this issue Dec 15, 2020 · 0 comments
Open

TypeError in small keywords #11

joswr1ght opened this issue Dec 15, 2020 · 0 comments

Comments

@joswr1ght
Copy link

$ python3 gcpbucketbrute.py -u -k aa
Traceback (most recent call last):
  File "/Users/jwright/Dev/GCPBucketBrute.dist/gcpbucketbrute.py", line 237, in <module>
    main(args)
  File "/Users/jwright/Dev/GCPBucketBrute.dist/gcpbucketbrute.py", line 99, in main
    buckets = generate_bucket_permutations(args.keyword)
  File "/Users/jwright/Dev/GCPBucketBrute.dist/gcpbucketbrute.py", line 54, in generate_bucket_permutations
    del buckets[bucket]
TypeError: list indices must be integers or slices, not str
$ sed -n 52,56p gcpbucketbrute.py
    for bucket in buckets:
        if len(bucket) < 3 or len(bucket) > 63:
            del buckets[bucket]

    print(f'\nGenerated {len(buckets)} bucket permutations for keyword {keyword}.')

I've not used the built-in del for this operation before, but it doesn't work here.

$ python3 -V
Python 3.9.0
joswr1ght added a commit to joswr1ght/GCPBucketBrute that referenced this issue Dec 15, 2020
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