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

Failure to run GCP Bucket Brute with authentication #14

Open
joebromley opened this issue Aug 31, 2021 · 2 comments
Open

Failure to run GCP Bucket Brute with authentication #14

joebromley opened this issue Aug 31, 2021 · 2 comments

Comments

@joebromley
Copy link

Good Morning,

I'm receiving an error when I attempt to scan a GCP bucket while supplying credentials and I'm not sure where I've gone wrong.
I run
'python3 gcpbucketbrute.py -k <BUCKET_NAME> -f sa.pem'
(Just for clarity, BUCKET_NAME is replaced with my bucket name)

And I receive the following error:
raise PicklingError(
_pickle.PicklingError: Pickling client objects is explicitly not supported.
Clients have non-trivial state that is local and unpickleable.

I downloaded the service account credentials from GCP after creating and haven't modifed that file. It was originally a .json file which also didn't work.

Thanks,

Joe

@takionExMachina
Copy link

hi @joebromley,

Same issue here, the temporal solution i have found, was using the docker image uploaded by other user, and mentioned by @janmasarik so kudos for him, the docker image name: s14ve/gcpbucketbrute, so the error should be related to newer versions of python, hope this help you running authenticated requests.

Regards
@takionExMachina

@ram8537
Copy link

ram8537 commented Jul 29, 2022

Had same issue, got it working with Docker container

Dockerfile

FROM python:3.8

RUN git clone https://github.com/RhinoSecurityLabs/GCPBucketBrute.git
WORKDIR /GCPBucketBrute
RUN pip3 install -r requirements.txt

ENTRYPOINT ["python3",  "gcpbucketbrute.py"]

Build:

docker build . -t gcpbucketbrute-image

Run (replace values accordingly):

docker run --rm -it --mount type=bind,source="<enter_path_to_credentials.json",target=/GCPBucketBrute/creds.json gcpbucketbrute-image --check <enter-bucket-name> -f creds.json

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

3 participants