使用afl-fuzz的QEMU模式测试chome
来源:互联网 发布:知乎 神农架木鱼镇住宿 编辑:程序博客网 时间:2024/06/05 15:14
webkit的源码编译简直是要疯了,调了两天还是不行,于是放弃了源码模糊测试的途径
截个图以备下次心情好再来搞一搞
于是转向qemu模式
The feature is implemented with a fairly simple patch to QEMU 2.3.0. The
simplest way to build it is to run ./build_qemu_support.sh. The script will
download, configure, and compile the QEMU binary for you.
QEMU is a big project, so this will take a while, and you may have to
resolve a couple of dependencies (most notably, you will definitely need
libtool and glib2-devel).
Once the binaries are compiled, you can leverage the QEMU tool by calling
afl-fuzz and all the related utilities with -Q in the command line.
说明文档说的很清楚,直接运行qemu_mode下边的build_qemu_support.sh将会完成QEMU的安装和配置,然后就可以愉快的在原有的测试命令上加上-Q以qemu模式进行测试了。
跑第一把的时候不出意外会遇到内存不足直接退出的情况,这是因为afl-fuzz默认200M的运行内存来进行测试,然后chrome貌似200M不够用。
找几个测试用例,截图如下:
然后就可以键入命令跑起来了
afl-fuzz -i afl_in -o afl_out -m 1024 -Q ./chrome会有警告信息,因为测试用例选的不好或是其他原因,但是好不容易跑起来,我会在乎这些吗!
于是乎开始跑,晚上离开实验室前开始跑得,第二天早上来看,跑了七个多小时就停了。。。停了。。。停了。。。
而且毛都没跑出来一个
瞬间崩溃呀有木有!
然后想尝试不插入指令直接模糊测试这个可能会慢死的模式,然而直接报超时,我也很无奈。。。
然后无意中在root状态下发现,chrome运行时有个-no-sandbox选项,于是乎再尝试一遍,正在跑,也不知道能不能出啥东西。
afl-fuzz -i afl_in -o afl_out -m 1024 -Q ./chrome -no-sandbox
跑一跑试一下
备注:chrome在ubuntu14.04下安装后可执行文件目录为
/opt/google/chrome
- 使用afl-fuzz的QEMU模式测试chome
- 提高AFL的fuzz速度
- 如何使用AFL进行一次完整的fuzz过程
- 使用Afl-fuzz (American Fuzzy Lop) 进行fuzzing测试(待续)
- 使用Afl-fuzz (American Fuzzy Lop) 进行fuzzing测试(待续)
- afl-fuzz技术白皮书
- 使用Afl-fuzz (American Fuzzy Lop) 进行fuzzing测试(二)——详细使用说明(README.txt)
- 使用Afl-fuzz (American Fuzzy Lop) 进行fuzzing测试(三)——技术白皮书(technical whitepaper)
- 使用Afl-fuzz (American Fuzzy Lop) 进行fuzzing测试(四)——直接对二进制进行fuzzing
- 用于FUZZ测试的程序及其详解
- 在Linux上使用AFL对Stagefright进行模糊测试
- Fuzzing简介以及使用AFL对LibTIFF进行模糊测试
- AFL的介绍
- qemu的网络模式
- 使用 QEMU 测试 U-BOOT
- How I nearly almost saved the Internet, starring afl-fuzz and dnsmasq
- 测试qemu上的beagleboard
- 虚拟机qemu的使用
- Cocos2d_x系列一:Cocos2d-x在xcode下开发生成静态库添加到项目
- 23种设计模式-中介者模式
- Eclipse中web项目部署至Tomcat步骤
- selenium学习之实现在学校论坛发表评论
- androidstdio安装过程中解决的问题
- 使用afl-fuzz的QEMU模式测试chome
- Mindroid学习笔记
- Android Studio中Can't resolve symbol. Validates resource references inside Android XML files
- 统计元音字母
- 23种设计模式-观察者模式
- Cocos2d-x系列二:xcode中导入cocos2d_libs到自己项目中
- 一言不合被直播,你成了“楚门”,你知道吗!
- 4.6-全栈Java笔记:THIS关键字和STATIC关键字
- Web前端知识体系精简