Code Monkey home page Code Monkey logo

Comments (6)

seihtam avatar seihtam commented on August 19, 2024

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.

djmccarthy12 avatar djmccarthy12 commented on August 19, 2024

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.

seihtam avatar seihtam commented on August 19, 2024

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.

djmccarthy12 avatar djmccarthy12 commented on August 19, 2024

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.

CsatariGergely avatar CsatariGergely commented on August 19, 2024

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.

armijnhemel avatar armijnhemel commented on August 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.