python-joern
==
Introduction
--
A thin python interface for joern and a set of useful utility
traversals.
Dependencies:
--
+ py2neo 1.6.1 (http://book.py2neo.org/en/latest/)
+ py2neo-gremlin (https://github.com/fabsx00/py2neo-gremlin/)
### Installation
$ sudo pip2 install git+git://github.com/fabsx00/python-joern.git
### Example
The following is a simple sample script. It connects to the database
and runs a gremlin traversal to retrieve all node with attribute
'functionName' set to 'main'.
```lang-none
from joern.all import JoernSteps
j = JoernSteps()
j.setGraphDbURL('http://localhost:7474/db/data/')
# j.addStepsDir('Use this to inject custom steps')
j.connectToDatabase()
res = j.runGremlinQuery('g.idx("nodeIndex")[[functionName:"main"]]')
for r in res:
print r
```
没有合适的资源?快使用搜索试试~ 我知道了~
python-joern-0.3.1,优质资源配备齐全下载解压即可使用,具体使用过程详见主页文章
共59个文件
groovy:26个
py:22个
rst:6个
需积分: 38 5 下载量 43 浏览量
2022-07-22
19:00:44
上传
评论
收藏 64KB ZIP 举报
温馨提示
python-joern-0.3.1,优质资源配备齐全下载解压即可使用,具体使用过程详见主页文章
资源详情
资源评论
资源推荐
收起资源包目录
python-joern-0.3.1.zip (59个子文件)
python-joern-0.3.1
docs
make.bat 6KB
Makefile 7KB
source
chunking.rst 880B
conf.py 8KB
joernnodes.rst 206B
installation.rst 1KB
joerndomain
domain.py 4KB
__init__.py 84B
gettingstarted.rst 2KB
joernsteps.rst 10KB
index.rst 877B
testing
test.py 155B
tests
parsingTests.py 326B
PythonJoernTests.py 222B
cfgTests.py 4KB
compositionTests.py 858B
__init__.py 212B
lookupTests.py 950B
interproc.py 2KB
dataFlowTests.py 3KB
initGraphTests.py 6KB
udgTests.py 7KB
LICENSE 34KB
setup.py 971B
.gitignore 315B
README.md 799B
joern
joernsteps
composition.groovy 2KB
_constants.groovy 644B
learning
neighborhoodHash.groovy 2KB
__init__.py 0B
cfg.groovy 230B
function.groovy 830B
__init__.py 0B
info.groovy 414B
nodeHiding.groovy 331B
misc.groovy 2KB
syntax
param.groovy 218B
ast.groovy 1KB
match.groovy 980B
__init__.py 0B
assignment.groovy 250B
call.groovy 657B
symbolGraph.groovy 977B
lookup.groovy 5KB
taintTracking
interproc.groovy 4KB
queryTemplate.groovy 3KB
initGraphs
conditions.groovy 3KB
decompression.groovy 2KB
localDefTree.groovy 5KB
defStmtsPerArg.groovy 1KB
creation.groovy 3KB
ast.groovy 2KB
__init__.py 0B
__init__.py 0B
iUnsanitized.groovy 4KB
dataflow.groovy 4KB
taintedArg.groovy 1KB
__init__.py 0B
all.py 3KB
共 59 条
- 1
ithicker
- 粉丝: 277
- 资源: 11
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0