Skip to content

Difficulties with deploying Joern #3

@marius-benthin

Description

@marius-benthin

If you are having trouble with generating abstract syntax trees from decompiled pseudo code using Bjoern fuzzy parser, I recommend to use this docker image: neepl/joern

Command Sequence

  1. Get docker image
docker pull neepl/joern
  1. Import C pseudo code
docker run -v "</path/to/pseudo/code/>":/code -p 7474:7474 --rm -w /code neepl/joern java -jar /joern/bin/joern.jar .
docker run -d -v "</path/to/pseudo/code/>":/code -p 7474:7474 neepl/joern /var/lib/neo4j/bin/neo4j console
  1. Export abstract syntax tree
docker exec <docker_id> /bin/bash -c "echo 'queryNodeIndex(\"type:Function\").id' | joern-lookup -g | joern-plot-ast | joern-astlabel | joern-ast2features > /code/ast_output.dep"
  1. Clean up and remove docker container
docker exec <docker_id> /bin/bash -c "rm -r /code/.joernIndex"
docker kill <docker_id>
docker rm <docker_id>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions