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

gowitness setup fails due to missing shared library: libglib-2.0.so.0 Docker #2118

Open
iukea1 opened this issue Dec 28, 2024 · 5 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@iukea1
Copy link

iukea1 commented Dec 28, 2024

bug is found on docker running on Mac (running x86 image format ) and Ubuntu running x86

While trying to use gowitness as part of the bbot webscan module in a Docker container, the setup process fails with an error related to a missing shared library, libglib-2.0.so.0. This issue prevents the gowitness module from functioning properly.

steps to Reproduce

  1. Run bbot with the webscan module in a Docker container.
  2. Ensure gowitness is included in the modules being set up.
  3. Observe the error in the logs.

bbot -t example.com -m safe

Expected Behavior
gowitness should successfully set up and run without errors, assuming all dependencies are met. (when asible runs dependencies check)

Actual Behavior

The setup fails with the following error message:

[WARN] Stderr for run(/root/.bbot/tools/chrome-linux/chrome --version):
        /root/.bbot/tools/chrome-linux/chrome: error while loading shared libraries: libglib-2.0.so.0: cannot open shared object file: No such file or directory

[WARN] Setup hard-failed for gowitness: Failed to set up Google chrome. Please install manually or try again with --force-deps.
[WARN] gowitness: Setting error state
[ERRR] Setup hard-failed for 1 modules (gowitness) (--force to run module anyway)


logs

[INFO] Setup soft-failed for builtwith: No API key set
[WARN] Stderr for run(/root/.bbot/tools/chrome-linux/chrome --version):
        /root/.bbot/tools/chrome-linux/chrome: error while loading shared libraries: libglib-2.0.so.0: cannot open shared object file: No such file or directory

[WARN] Setup hard-failed for gowitness: Failed to set up Google chrome. Please install manually or try again with --force-deps.
[WARN] gowitness: Setting error state
[ERRR] Setup hard-failed for 1 modules (gowitness) (--force to run module anyway)



@iukea1 iukea1 added the bug Something isn't working label Dec 28, 2024
@iukea1
Copy link
Author

iukea1 commented Dec 28, 2024

Additional Information
Using a bbot Docker container and building it from the repo I tried to add the following .
Attempted to install dependencies manually with the following commands:

apt-get update && apt-get install -y libglib2.0-0 libnss3 libx11-xcb1
and built the image from the source code .

However, the issue persists.

Help please :)

running -force causes a lot of errors in the logs

@TheTechromancer
Copy link
Collaborator

Thanks for reporting. Issues like this are common in ubuntu, which is why we have ubuntu-specific tests. However right now it looks like our tests are passing. What's your ubuntu version?

@TheTechromancer
Copy link
Collaborator

Also @iukea1 you might want to look at this

@iukea1
Copy link
Author

iukea1 commented Dec 28, 2024

Also @iukea1 you might want to look at this

This looks very helpful (sorry I did not see this issue before)

Getting an energy drink and popping an Adderall.

Then it is go time again

@iukea1
Copy link
Author

iukea1 commented Dec 29, 2024

I'm still working on this. I made my bash script a little too cute 🥺.

The current "working" version is a built-new Docker image which pulls "bbot:stable" and installs all dependencies there.

This seems to work pretty consistently between multiple different scans (yes I know this is not the ideal way of doing this... but we're going fast).

It also supports secrets and custom modules being passed to the container during runtime.

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

No branches or pull requests

2 participants