Comments (6)
It's because you need to build the kaitai docker image in the util folder locally. I updated the README intructions and included fixes for other problems you will run into afterwards in #141.
from binaryanalysis-ng.
Thanks, I went ahead and installed podman, and made the other handful of changes in #141, however I am still running into a different issue now while building the Kaitai image:
> make docker-kaitai
[ -d kaitai_struct ] || git clone --recursive https://github.com/kaitai-io/kaitai_struct.git
podman image build -t kaitai -f Dockerfile.kaitai .
WARN[0000] Failed to detect the owner for the current cgroup: stat /sys/fs/cgroup/systemd: no such file or directory
STEP 1: FROM mozilla/sbt AS builder
STEP 2: FROM openjdk:jre-slim
ERRO[0000] unable to write build event: "write unixgram @00011->/run/systemd/journal/socket: sendmsg: no such file or directory"
Error: error creating build container: short-name "mozilla/sbt" did not resolve to an alias and no unqualified-search registries are defined in "/etc/containers/registries.conf"
make: *** [Makefile:12: docker-kaitai] Error 125
from binaryanalysis-ng.
I'm actually using docker, I just didn't change that in the pull request since I didn't want to change their default setting.
from binaryanalysis-ng.
Ok, I switched to using Docker instead of podman, and was able to get the docker container built, and running the BANG shell now works.
Still experiencing an issue when invoking the scanner as described however:
python3 bang-scanner -c bang.config -f /home/dj/go/src/netrise/parser-framework/data/tmp/squashfs-root/bin/busybox
Traceback (most recent call last):
File "/home/dj/binaryanalysis-ng/src/bang-scanner", line 59, in <module>
from bangsignatures import maxsignaturesoffset
File "/home/dj/binaryanalysis-ng/src/bangsignatures.py", line 470, in <module>
extension_to_unpackparser = get_unpackers_for_extensions()
File "/home/dj/binaryanalysis-ng/src/bangsignatures.py", line 464, in get_unpackers_for_extensions
for u in get_unpackers():
File "/home/dj/binaryanalysis-ng/src/bangsignatures.py", line 458, in get_unpackers
unpackers = _get_unpackers_recursive(
File "/home/dj/binaryanalysis-ng/src/bangsignatures.py", line 452, in _get_unpackers_recursive
unpackers.extend(_get_unpackers_recursive(
File "/home/dj/binaryanalysis-ng/src/bangsignatures.py", line 444, in _get_unpackers_recursive
module = importlib.import_module(module_name)
File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/home/dj/binaryanalysis-ng/src/parsers/archivers/cpio/UnpackParser.py", line 4, in <module>
from . import cpio_new_ascii
ImportError: cannot import name 'cpio_new_ascii' from 'parsers.archivers.cpio' (/home/dj/binaryanalysis-ng/src/parsers/archivers/cpio/__init__.py)
I've installed all dependencies, any idea what else I need to do to get this running properly?
from binaryanalysis-ng.
I do not see the text added in #141 in current master was it removed?
I modified the docker file to use librespace/kaitai as a base image for the build image. It bulds stuff for a very long time, but can not find the kaitai_struct folder.
from binaryanalysis-ng.
I do not see the text added in #141 in current master was it removed? I modified the docker file to use librespace/kaitai as a base image for the build image. It bulds stuff for a very long time, but can not find the kaitai_struct folder.
A lot has changed and is still in flux, so this should be considered broken at the moment. I will fix it but don't know when I will have the time for it.
from binaryanalysis-ng.
Related Issues (20)
- Qt Installer Framework
- Organize an own repo with KS specs HOT 1
- Open Source License scanning for Binary files HOT 12
- merge scanning of various DOS/MZ/NE/PE files HOT 1
- How does this relate to diffoscope? HOT 1
- Re-engineering interest? HOT 1
- ZIP: 64 bits data descriptor fields
- android_sparse_data: not working well with multiple threads
- Any usage? HOT 2
- Execution of `nix-shell analysis.nix` fails HOT 2
- python error HOT 2
- Failed to parse linux ubuntu 20.04 kernels HOT 8
- Suggest adding methods to scan folders and to detect duplicated files HOT 6
- Propagate password hints to unpackers
- Recover/resume interrupted scans
- A recent update broke down ELF scans HOT 8
- Bang get stucked as <defunct> after one of the jobs failed to create symlinks HOT 2
- Strings in .jar are splitted unexpectedly HOT 6
- It is possible to add a parser to support msi packages? HOT 2
- Section "strings" are missed in metadata (7-zip.dll, 7-zip32.dll, 7z/***.exe)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from binaryanalysis-ng.