-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
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
- Get docker image
docker pull neepl/joern
- 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
- 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"
- 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>
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels