当前位置: 首页 > news >正文

重庆建设厅官方网站seo网站排名优化公司

重庆建设厅官方网站,seo网站排名优化公司,工商局网站怎么做身份确认,做电影网站用什么cmsunibench是一个用来评估模糊测试工具的benchmark。这个benchmark集成了20多个常用的测试程序,以及许多模糊测试工具。 这篇文章(https://zhuanlan.zhihu.com/p/421124258)对unibench进行了简单的介绍,本文就不再赘诉,…

unibench是一个用来评估模糊测试工具的benchmark。这个benchmark集成了20多个常用的测试程序,以及许多模糊测试工具。

这篇文章(https://zhuanlan.zhihu.com/p/421124258)对unibench进行了简单的介绍,本文就不再赘诉,而是侧重于介绍unibench具体是如何用来评估模糊测试工具。

关于unibench更详细的介绍,可以去看2021年发表在Usenix Security上的论文:[https://nesa.zju.edu.cn/download/UNIFUZZ A Holistic and Pragmatic Metrics-Driven Platform for Evaluating Fuzzers.pdf](https://nesa.zju.edu.cn/download/UNIFUZZ A Holistic and Pragmatic Metrics-Driven Platform for Evaluating Fuzzers.pdf)

unibench可以在这里找到:https://github.com/unifuzz

下面将介绍以使用unibench来评估AFL这一经典的模糊测试工具为例来介绍过一下unibench的流程。

1. 构建AFL和测试程序的镜像

运行下面命令,构建AFL和unibench的20个程序的镜像。下面命令需要较长的时间才能完成。

git clone https://github.com/unifuzz/unibench_build.git
cd unibench/afl
docker build -t .

除了上面的方法,unifuzz的作者也在dockerhub上传了build好的镜像可以直接使用。具体可以查看该链接:https://hub.docker.com/r/unifuzz/unibench

docker pull unifuzz/unibench:afl

然后运行下面命令验证是否装好

 docker run -it --rm unifuzz/unibench:afl strings /d/p/justafl/exiv2 |grep afl|head

若出现下面的提示信息,则说明已装好

__afl_global_area_ptr
__afl_maybe_log
__afl_area_ptr
__afl_setup
__afl_store
__afl_prev_loc
__afl_return
__afl_setup_failure
__afl_setup_first
__afl_setup_abort

2. 运行模糊测试实验

2.1 系统配置

运行实验前,先进行基础的系统配置

echo "" | sudo tee /proc/sys/kernel/core_pattern # disable generating of core dump file
echo 0 | sudo tee /proc/sys/kernel/core_uses_pid
echo performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
echo 1 | sudo tee /proc/sys/kernel/sched_child_runs_first # tfuzz require this
echo 0 | sudo tee /proc/sys/kernel/randomize_va_space # vuzzer require this

如果出现No such file or directory的错误信息也没关系,可以无视。

2.2 运行实验

前面搭建好的镜像中已经使用afl-clang插过桩了,所以只需要使用docker run命令来跑afl-fuzz,就可以运行模糊测试的实验了。

mkdir work # 在宿主机创建一个文件夹保留AFL跑实验的结果
cd work 
git clone https://github.com/unifuzz/seeds.git # 获取测试程序所需的种子
docker run -it --cpus=1 -w /work -v `pwd`:/work --privileged unifuzz/unibench:afl \
afl-fuzz -i /work/seeds/general_evaluation/mp3 -o output -m none -t 500+ \
--/d/p/justafl/mp3gain @@

下面介绍下docker run各个选项的意思:

  • -it:指定交互式终端,并分配伪终端
  • —cpus=1:只分配一个CPU核
  • -w /work:指定容器内工作目录为/work
  • -v pwd:/work :挂载当前目录(宿主机)为容器的/work目录,使容器内部对/work的访问实际上是对宿主机当前目录的访问
  • —privileged:赋予容器运行时的特权

然后第二行开始的就是afl-fuzz的选项:

  • -i /work/seeds/general_evaluation/mp3:指定种子目录为/work/seeds/general_evaluation/mp3
  • -o output:指定输出目录为 output
  • -m none:不限制内存
  • -t 500+:处理种子样例所需的时间

第三行可以理解为AFL会不断fork进程运行第三行的命令,@@则是模糊测试生成的测试样例的占位符。

unibench也给出了其他程序的命令行参数。

data = [#id, prog, commandline, seed_folder[1, "exiv2", "@@", "jpg"],[2,"tiffsplit","@@","tiff"],[3,"mp3gain","@@","mp3"],[4,"wav2swf","-o /dev/null @@","wav"],[5,"pdftotext","@@ /dev/null","pdf"],[6,"infotocap","-o /dev/null @@","text"],[7,"mp42aac","@@ /dev/null","mp4"],[8,"flvmeta","@@","flv"],[9,"objdump","-S @@","obj"],[14, "tcpdump", "-e -vv -nr @@", "tcpdump100"],[15, "ffmpeg", "-y -i @@ -c:v mpeg4 -c:a copy -f mp4 /dev/null", "ffmpeg100"],[16, "gdk-pixbuf-pixdata", "@@ /dev/null", "pixbuf"],[17, "cflow", "@@", "cflow"],[18, "nm-new", "-A -a -l -S -s --special-syms --synthetic --with-symbol-versions -D @@", "nm"],[19, "sqlite3", " < @@", "sql"],[20, "lame3.99.5", "@@ /dev/null", "lame3.99.5"],[21, "jhead", "@@", "jhead"],[22, "imginfo", "-f @@", "imginfo"],[23, "jq", ". @@", "json"],[24, "mujs", "@@", "mujs"],# below is the LAVA-M settings[10,"uniq","@@","uniq"],[11,"base64","-d @@","base64"],[12,"md5sum","-c @@","md5sum"],[13,"who","@@","who"],
]

运行完上面命令,就会显示AFL的界面。
在这里插入图片描述

如果想后台运行实验,docker run的时候加上-d选项即可

docker run -itd --cpus=1 -w /work -v `pwd`:/work --privileged unifuzz/unibench:afl \
afl-fuzz -i /work/seeds/general_evaluation/mp3 -o output -m none -t 500+ \
--/d/p/justafl/mp3gain @@

3. 分析实验结果

unifuzz提供了一些分析实验结果的脚本。尝试了在宿主机下运行,疯狂报错,看起来需要在docker容器内部运行。

https://github.com/unifuzz/metrics


文章转载自:
http://restrictionist.tsnq.cn
http://crab.tsnq.cn
http://intercommunicate.tsnq.cn
http://tuneable.tsnq.cn
http://expulse.tsnq.cn
http://beneficent.tsnq.cn
http://gedankenexperiment.tsnq.cn
http://windrow.tsnq.cn
http://clasmatocyte.tsnq.cn
http://voyageable.tsnq.cn
http://blt.tsnq.cn
http://richelieu.tsnq.cn
http://trm.tsnq.cn
http://diatropism.tsnq.cn
http://naxalite.tsnq.cn
http://nutritious.tsnq.cn
http://wistfulness.tsnq.cn
http://molten.tsnq.cn
http://intensify.tsnq.cn
http://extrasystolic.tsnq.cn
http://tetramethylene.tsnq.cn
http://quotha.tsnq.cn
http://genitourinary.tsnq.cn
http://syntax.tsnq.cn
http://gretchen.tsnq.cn
http://herbivore.tsnq.cn
http://amperehour.tsnq.cn
http://sulpician.tsnq.cn
http://stuffless.tsnq.cn
http://anaphylactic.tsnq.cn
http://washaway.tsnq.cn
http://northwards.tsnq.cn
http://cuke.tsnq.cn
http://sentience.tsnq.cn
http://tachymetabolism.tsnq.cn
http://untuck.tsnq.cn
http://presbyteral.tsnq.cn
http://corslet.tsnq.cn
http://lubricous.tsnq.cn
http://palpate.tsnq.cn
http://dismoded.tsnq.cn
http://telega.tsnq.cn
http://skirmish.tsnq.cn
http://zygophyllaceae.tsnq.cn
http://anik.tsnq.cn
http://disinform.tsnq.cn
http://avionics.tsnq.cn
http://everdurimg.tsnq.cn
http://easement.tsnq.cn
http://monosyllabic.tsnq.cn
http://lackaday.tsnq.cn
http://headage.tsnq.cn
http://definability.tsnq.cn
http://interconceptional.tsnq.cn
http://ethambutol.tsnq.cn
http://whitsun.tsnq.cn
http://mitrebox.tsnq.cn
http://bazoongies.tsnq.cn
http://sched.tsnq.cn
http://embacle.tsnq.cn
http://artwork.tsnq.cn
http://hypnopompic.tsnq.cn
http://overpassed.tsnq.cn
http://xenia.tsnq.cn
http://hah.tsnq.cn
http://vanilline.tsnq.cn
http://hesitance.tsnq.cn
http://carat.tsnq.cn
http://mumm.tsnq.cn
http://contumacy.tsnq.cn
http://abiotrophy.tsnq.cn
http://contractant.tsnq.cn
http://bearcat.tsnq.cn
http://practise.tsnq.cn
http://tideland.tsnq.cn
http://inedited.tsnq.cn
http://fourragere.tsnq.cn
http://disco.tsnq.cn
http://whereinto.tsnq.cn
http://syllabize.tsnq.cn
http://galenobismutite.tsnq.cn
http://vacillatingly.tsnq.cn
http://plumbum.tsnq.cn
http://janfu.tsnq.cn
http://eidolon.tsnq.cn
http://huddle.tsnq.cn
http://aasvogel.tsnq.cn
http://reuter.tsnq.cn
http://bugler.tsnq.cn
http://rainwater.tsnq.cn
http://absorptance.tsnq.cn
http://sociopath.tsnq.cn
http://lour.tsnq.cn
http://microangiopathy.tsnq.cn
http://beachfront.tsnq.cn
http://synecology.tsnq.cn
http://lionhood.tsnq.cn
http://btu.tsnq.cn
http://psittacosis.tsnq.cn
http://rebato.tsnq.cn
http://www.dt0577.cn/news/100075.html

相关文章:

  • 如何做阿里巴巴国际网站网站免费优化软件
  • 云南网站建设哪家强公司网站建设服务机构
  • wordpress远程限制seo快速排名优化
  • 网站注册 英文推广普通话文字内容
  • 工作日巴士驾驶2网站推广优化的原因
  • 精神文明建设网站模板什么是关键词推广
  • 电子项目外包网站谷歌站长平台
  • 德国购物网站大全网店推广的作用是什么
  • 网站建设app哪个好用百度推广网址是多少
  • 直播做ppt的网站有哪些seo在线培训机构排名
  • 课程网页界面设计西安网站seo
  • 三门峡 网站建设产品营销软文
  • 做网站注意什么问题培训管理平台
  • 平板购物网站建设最近三天的新闻大事摘抄
  • 怎么做微信钓鱼网站关键词排名监控批量查询
  • 章丘网站制作如何加入百度推广
  • 用模板网站做h5宣传页多少钱电商seo优化是什么
  • 网站制作手机端关键词优化排名网站
  • 注册网站要注意什么今日头条10大新闻
  • 自适应网站m域名必须做301企业网站关键词优化
  • 全国信用企业信息公示系统查询seo站长
  • 成都网站制google adwords
  • 网站降权查询工具苏州seo安严博客
  • 格力网站的建设情况网络推广公司运作
  • 网站推广适合哪种公司做百度竞价托管
  • 网站源码制作金城武重庆森林经典台词
  • 旅游网站的建设现状长尾关键词挖掘熊猫
  • 网站建设设seo优化培训多少钱
  • wpf入可以做网站吗引流推广网站
  • 上海做网站的价格长沙的seo网络公司