joernio / joern

Open-source code analysis platform for C/C++/Java/Binary/Javascript/Python/Kotlin based on code property graphs. Discord https://discord.gg/vv4MH284Hc
https://joern.io/
Apache License 2.0
1.97k stars 267 forks source link

Joern tool used questions and joern command line tool call #4888

Closed niuzhi closed 1 week ago

niuzhi commented 2 weeks ago

Hello, I am currently using the joern tool, I have already used Joern-parse to output cpg files, and now I want to use a python script to implement calls to joern on the command line. And get the CPG. Local. Filter (. Location. MethodShortName = = "< global >"). The location query command returns a result, could you tell me how to implement? I have tried many methods without success, or how to implement the integration of the joern command line, there is no interface for third parties to use, easy to get cpg query results. I don't want to work with graph data. @max-leuthaeuser please help me,thanks

max-leuthaeuser commented 2 weeks ago

I guess you are looking for https://github.com/joernio/cpgqls-client-python