vaioco / joern-traversals

Example queries for joern

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

joern-traversals

A collection of example joern queries with unit tests. These queries are for the old version of joern that used neo4j and tinkerpop v2, for some examples using octopus (the new update of joern using tinkerpop3 on TitanDB) look here.

Run unit tests

Install dependencies with pip install pyyaml. To run tests:

rm -rf testing/intermediates .queriesTestDB
./testing/parse.py testing/intermediates queries/*.yaml
joern testing/intermediates -outdir .queriesTestDB

# Start the DB with the correct path to ./.queriesTestDB
./testing/verify.py queries/*.yaml

About

Example queries for joern


Languages

Language:Python 100.0%