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

error while loading shared libraries: libglib-2.0.so.0: cannot open shared object file: No such file or directory #2058

Closed
fuomag9 opened this issue Dec 4, 2024 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@fuomag9
Copy link

fuomag9 commented Dec 4, 2024

Describe the bug
error while loading shared libraries: libglib-2.0.so.0: cannot open shared object file: No such file or directory

Expected behavior
No error

BBOT Command
docker run -it --rm -d -v /var/run/docker.sock:/var/run/docker.sock -t 1.1.1.1/24 -p kitchen-sink

OS, BBOT Installation Method + Version
ubuntu 22.04, lxc

Logs

[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
[INFO] Setup soft-failed for github_workflows: Error with API ({
  "message": "Bad credentials",
  "documentation_url": "https://docs.github.com/rest",
  "status": "401"
})
[INFO] Setup soft-failed for github_org: Error with API ({
  "message": "Bad credentials",
  "documentation_url": "https://docs.github.com/rest",
  "status": "401"
})
[INFO] Setup soft-failed for git_clone: Error with API ({
  "message": "Bad credentials",
  "documentation_url": "https://docs.github.com/rest",
  "status": "401"
})
[ERRR] Setup hard-failed for 1 modules (gowitness) (--force to run module anyway)
@fuomag9 fuomag9 added the bug Something isn't working label Dec 4, 2024
@TheTechromancer TheTechromancer self-assigned this Dec 4, 2024
@TheTechromancer
Copy link
Collaborator

@fuomag9 thanks for reporting. We'll look into it

@TheTechromancer
Copy link
Collaborator

Gowitness in docker is working fine for me.

image

I noticed in your installation method you have lxc, but in your bbot command you're using docker. But also that your docker command is missing the image name. Can you post the full commands you used to install + launch bbot?

@fuomag9
Copy link
Author

fuomag9 commented Dec 4, 2024

@TheTechromancer I'm using docker inside an LXC container, these are the info for reproducing this correctly:

This will make the error appear:
docker run -it --rm -d -v /var/run/docker.sock:/var/run/docker.sock -v ./tmp/blankfolder:/root/.bbot/ blacklanternsecurity/bbot -t 1.1.1.1/24 -p kitchen-sink --allow-deadly -y

While this will not:
docker run -it --rm -d -v /var/run/docker.sock:/var/run/docker.sock blacklanternsecurity/bbot -t 1.1.1.1/24 -p kitchen-sink --allow-deadly -y

Btw, is there an official way to obtain output data from the container?

@TheTechromancer
Copy link
Collaborator

Oh I see. The problem is that the .bbot directory contains a cache that remembers which dependencies have been installed. So when you persist it between containers, it will mistakenly skip installing dependencies because it thinks they've already been installed.

Probably the best solution is to map .bbot/scans instead.

@TheTechromancer
Copy link
Collaborator

TheTechromancer commented Dec 5, 2024

Btw, is there an official way to obtain output data from the container?

Technically yes, there is a bash script bbot-docker.sh although right now it has the same problem as above.

But mapping .bbot/scans is basically the "official" way retrieve scan output.

@TheTechromancer
Copy link
Collaborator

@fuomag9 are we good to close this out?

@fuomag9
Copy link
Author

fuomag9 commented Dec 5, 2024

@fuomag9 are we good to close this out?

Sure! Maybe it would make sense to add this information to the documentation?

@TheTechromancer
Copy link
Collaborator

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