[DGF]复现BEACON

BEACON的使用

官方文档:https://outstanding-hydrogen-2d1.notion.site/Beacon-documentation 8480ed4e7fff452a989f7e77ce749951

1. docker 拉取Beacon的镜像

docker pull yguoaz/beacon

2. 运行Beacon

sudo docker run -dit --name beacon yguoaz/beacon:latest /bin/bash -c "while true; do sleep 30; done"

确认下是否已经启动beacon

sudo docker ps

进入容器

sudo docker exec -it beacon bash

运行beacon中的example

/Beacon/precondInfer /Beacon/Test/swftophp-2017-7578.bc -target-file=/Beacon/Test/cstest.txt -join-bound=5

其中,

  • /Beacon/Test/swftophp-2017-7578.bc is the bitcode file for the target project.
  • /Beacon/Test/cstest.txt has the following content:
     parser.c:66

meaning that the target for directed fuzzing is at Line 66 of parser.c.
The target file must contain a single line of the form “fileName:lineNum”. (一般通过CVE数据库里的崩溃报告来获取。)

执行上面命令后会输出三个文件:

  • bbreaches_Beacon_Test_cstest.txt : 能到达目标指令的基本块集合。
  • range_res.txt : 范围分析结果。
  • transed.bc : 转换后的字节码用于后续的处理。
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值