【问题标题】:How do I convert .bin code property graph to json?如何将 .bin 代码属性图转换为 json?
【发布时间】:2020-10-19 14:45:38
【问题描述】:

如何将从 joern (https://joern.io/) 获得的代码属性 graph(cpg).bin 格式转换为 .json 格式,以便将其提供给图形机分类学习库。

注意: CPG = AST + 控制流图 + 程序依赖图

任务:源代码机器学习。

【问题讨论】:

    标签: machine-learning graph abstract-syntax-tree control-flow-graph joern


    【解决方案1】:

    您可以使用包含在 joern 脚本目录中的 scala 脚本“graph-for-funcs.sc”。但是,您需要重定向输出以便将其存储在文件中(因为默认情况下输出到标准输出)。 为此,我制作了一个自定义脚本。

    【讨论】:

      猜你喜欢
      • 2021-04-03
      • 1970-01-01
      • 2021-10-26
      • 1970-01-01
      • 2011-11-01
      • 2020-06-13
      • 1970-01-01
      • 2016-09-21
      • 1970-01-01
      相关资源
      最近更新 更多