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

近期的重大新闻徐州seo顾问

近期的重大新闻,徐州seo顾问,网站维护的基本概念,镇江网站建设方式优化一、AFL 这里我们主要使用AFL Fuzzing 测试IOT的二进制文件,当我们解压提取一个固件时,能够获得大量的IOT二进制应用 ,如果要进行漏洞挖掘则需要将二进制文件进行逆向分析,然后查找危险函数以及输入接口,对于一个大型的…

一、AFL++

这里我们主要使用AFL++ Fuzzing 测试IOT的二进制文件,当我们解压提取一个固件时,能够获得大量的IOT二进制应用 ,如果要进行漏洞挖掘则需要将二进制文件进行逆向分析,然后查找危险函数以及输入接口,对于一个大型的应用,直接进行二进制分析会大大降低我们的效率,所以可以使用Fuzzing技术对IOT的二进制文件进行模糊测试,提高漏洞挖掘效率。
对于IOT的二进制文件通常由于架构的不同,不能直接进行FuzzingAFL++可以使用Qemu、Unicorn或Frida 三种模式进行Fuzzing,虽然不如有源码进行Fuzzing高效,但是其适用面广,并且同样能提高漏洞挖掘效率。
AFL++使用qemu用户模式模拟仿真来运行二进制文件,其使用的qemu是进行修改的版本,在程序执行时检测基本块,根据收集的信息生成测试用例,通过生成的大量测试用例触发不同的代码路径,从而提高代码的覆盖率,提高触发Crash的概率。
AFL++和其他的类似的Fuzzing工具(AFL,hongfuzz等)一样,仅适用于文件输入的Fuzzing,不支持从套接字输入的程序,对于套接字的Fuzzing测试在下篇进行讲解,本篇文件将重点落在环境的搭建及文件输入相关的二进制应用的Fuzzing

二、AFL++环境搭建

系统环境:任何Linux系统上编译
测试固件:TP-Link SR20、Cisco RV130X
$ sudo apt update
$ sudo apt install git make build-essential clang ninja-build pkg-config libglib2.0-dev libpixman-1-dev
$ git clone https://github.com/AFLplusplus/AFLplusplus.git
$ cd AFLplusplus
$ make all
$ cd qemu_mode
$ CPU_TARGET=arm ./build_qemu_support.sh # 这里编译ARM架构的

三、AFL++案例

3.1、AFL++测试TP-Link SR20路由器固件

固件的下载地址如下: https://static.tp-link.com/2018/201806/20180611/SR20(US)_V1_180518.zip
使用Binwalk提取固件:
$ binwalk -Me tpra_sr20v1_us-up-ver1-2-1-P522_20180518-rel77140_2018-05-21_08.42.04.bin
解包后结果:
接下来我们查找来自文件输入的程序进行Fuzzing测试:
这里可以看到大家耳熟能详的bmp2tiff应用,那么我们就拿bmp2tiff进行Fuzzing测试,生成一个bmp的测试用例,将测试用例放到创建的bmp-input文件夹中,同时创建bmp-output Fuzzing输出文件夹
查看bmp2tiff指令的使用方法:
执行bmp2tiff:
接下来, root权限下执行以下命令进行Fuzzing测试:
$ QEMU_LD_PREFIX=./squashfs-root/   /root/桌面/AFLplusplus/afl-fuzz  \-Q \-i bmp-input \-o bmp-output \-- ./squashfs-root/usr/bin/bmp2tiff @@ /dev/null-Q:适用qemu模式
-i:输入文件夹
-o:输出文件夹
@@:表示将用来替换的样本
/dev/null:忽略错误信息
可以看到在Fuzzing期间触发了21个crash。
这里使用程序直接解析生成的crash文件:

3.2、AFL++测试Cisco RV130X路由器的固件

固件下载地址如下: 可以从  https://software.cisco.com/download/home/285026141/type/282465789/release/1.0.3.55?i=!pp  下载。该文件名为  RV130X_FW_1.0.3.55.bin
binwalk提取固件,提取后的文件系统如下:
我们将研究对 /usr/sbin/ 中的 jsonparse 和 xmlparser1 二进制文件进行模糊测试。 这些程序接受来自文件的输入,非常适合模糊测试。 我们没有可用的源代码,因此我们必须使用 Qemu 模式。

3.2.1、模糊测试xmlparser1

在模糊测试之前,我们需要知道程序如何接受输入。使用 –help 参数使用 qemu-arm-static 运行 xmlparser1 会显示使用情况。它接受带有 -f 参数的文件名。-d 参数代表调试。
qemu-arm-static -L . ./usr/sbin/ xmlparser1 --help    # -L path  EMU_LD_PREFIX  set the elf interpreter prefix to 'path'
我们可以创建一个 测试 XML 文件并运行 xmlparser1: test.xml
<?xml version="1.0" encoding="UTF-8"?><shiporder orderid="889923" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="shiporder.xsd"><orderperson>John Smith</orderperson><shipto><name>Ola Nordmann</name><address>Langgt 23</address><city>4000 Stavanger</city><country>Norway</country></shipto><item><title>Empire Burlesque</title><note>Special Edition</note><quantity>1</quantity><price>10.90</price></item><item><title>Hide your heart</title><quantity>1</quantity><price>9.90</price></item></shiporder>
创建两个目录 input-xml 和 output-xml 并将 test.xml 文件移动到 input-xml,如图所示。
运行 xmlparser1:
xmlparser1 显示 test.xml 文件的解析内容。 我们现在可以继续进行模糊测试。 要运行模糊器,我们需要提供一个输入文件,模糊器将使用该文件生成进一步的测试用例。 我们将指定 test.xml 作为我们的输入文件。
我们现在可以启动 afl-fuzz:
$ /root/桌面/my_firmwares/_RV130X_FW_1.0.3.55.bin.extracted/
$ QEMU_LD_PREFIX=./squashfs-root/ /root/桌面/AFLplusplus/afl-fuzz \-Q \-i input-xml/ \-o output-xml/ \-- ./squashfs-root/usr/sbin/xmlparser1 -f @@-Q:在 Qemu 模式下使用 AFL++
-i:输入目录的路径
-o:输出目录的路径。此目录将包含触发二进制文件上有趣行为的文件,例如崩溃或挂起
在运行时,AFL++ 会将@@ 参数替换为输入文件的名称
​​

3.2.2、模糊测试 jsonparse

创建一个 测试JSON文件 并在其上运行jsonparser:test.json
{"name":"Jason Ray","profession":"Software Engineer","age":31,"address":{"city":"New York","postalCode":64780,"Country":"USA"},"socialProfiles":[{"name":"Twitter","link":"https://twitter.com"},{"name":"Facebook","link":"https://www.facebook.com"}]}
创建两个目录 input-json 和 output-json 并将 test.json 文件移动到 input-json:
运行jsonparser:
root权限下执行如下命令进行Fuzzing测试:
$ /root/桌面/my_firmwares/_RV130X_FW_1.0.3.55.bin.extracted/
QEMU_LD_PREFIX=./squashfs-root/ /root/桌面/AFLplusplus/afl-fuzz \-Q \-i input-json \-o output-json \-- ./squashfs-root/usr/sbin/jsonparse @@
可以看到也出现了crash,这里使用程序直接解析生成的crash文件:
这里可以看到触发段错误。

四、参考

GitHub - AFLplusplus/AFLplusplus: The fuzzer afl++ is afl with community patches, qemu 5.1 upgrade, collision-free coverage, enhanced laf-intel & redqueen, AFLfast++ power schedules, MOpt mutators, unicorn_mode, and a lot more!

Fuzzing IoT binaries with AFL++ - Part I (attify.com)

Fuzzing IoT binaries with AFL++ - Part II (attify.com)

IOT Fuzzing框架AFL++ (上)-安全客 - 安全资讯平台 (anquanke.com)


文章转载自:
http://dinnconettlesome.wbqt.cn
http://dinncoschizothymic.wbqt.cn
http://dinncohexahedron.wbqt.cn
http://dinncoruder.wbqt.cn
http://dinncoloony.wbqt.cn
http://dinncocalabrian.wbqt.cn
http://dinncodopester.wbqt.cn
http://dinncoraptured.wbqt.cn
http://dinncodisulfide.wbqt.cn
http://dinncounfreedom.wbqt.cn
http://dinncopreposterous.wbqt.cn
http://dinncocharas.wbqt.cn
http://dinncoinevasible.wbqt.cn
http://dinncopalooka.wbqt.cn
http://dinncochloe.wbqt.cn
http://dinncowahhabi.wbqt.cn
http://dinncopenetration.wbqt.cn
http://dinnconed.wbqt.cn
http://dinncomeetinghouse.wbqt.cn
http://dinncophilistinism.wbqt.cn
http://dinncolamister.wbqt.cn
http://dinncoreschedule.wbqt.cn
http://dinncoactivating.wbqt.cn
http://dinncoscr.wbqt.cn
http://dinncomicropyrometer.wbqt.cn
http://dinncostapes.wbqt.cn
http://dinncosupercontract.wbqt.cn
http://dinnconeedful.wbqt.cn
http://dinncodill.wbqt.cn
http://dinncountruth.wbqt.cn
http://dinncobonami.wbqt.cn
http://dinncotaxpayer.wbqt.cn
http://dinncorecitatif.wbqt.cn
http://dinncoannapolis.wbqt.cn
http://dinncoteller.wbqt.cn
http://dinncoantipathetic.wbqt.cn
http://dinnconothofagus.wbqt.cn
http://dinncodeafen.wbqt.cn
http://dinncouniface.wbqt.cn
http://dinncosub.wbqt.cn
http://dinncopaneling.wbqt.cn
http://dinncojeunesse.wbqt.cn
http://dinncoexternally.wbqt.cn
http://dinncokidling.wbqt.cn
http://dinncopsellism.wbqt.cn
http://dinncounderkeeper.wbqt.cn
http://dinncobice.wbqt.cn
http://dinncosecurities.wbqt.cn
http://dinncoknavish.wbqt.cn
http://dinncoinaccurate.wbqt.cn
http://dinncoheriot.wbqt.cn
http://dinncoriotously.wbqt.cn
http://dinncomilan.wbqt.cn
http://dinncosplitter.wbqt.cn
http://dinncofoundationer.wbqt.cn
http://dinncowatchmaker.wbqt.cn
http://dinncoaxiologist.wbqt.cn
http://dinncofrankfurter.wbqt.cn
http://dinncodowntrend.wbqt.cn
http://dinncoascertainment.wbqt.cn
http://dinncoepitasis.wbqt.cn
http://dinncodollishness.wbqt.cn
http://dinncoopalesce.wbqt.cn
http://dinncocaeciform.wbqt.cn
http://dinncodisturbing.wbqt.cn
http://dinncostaghead.wbqt.cn
http://dinncomarrow.wbqt.cn
http://dinncononfulfilment.wbqt.cn
http://dinncodieter.wbqt.cn
http://dinncoyucca.wbqt.cn
http://dinncoprepotent.wbqt.cn
http://dinncorepetitionary.wbqt.cn
http://dinncopruine.wbqt.cn
http://dinncometropolitan.wbqt.cn
http://dinncoflashily.wbqt.cn
http://dinncolaodicea.wbqt.cn
http://dinncofasciola.wbqt.cn
http://dinncounfoiled.wbqt.cn
http://dinncominicrystal.wbqt.cn
http://dinncohaggada.wbqt.cn
http://dinncolattermath.wbqt.cn
http://dinncominuteman.wbqt.cn
http://dinncohydremia.wbqt.cn
http://dinncorattler.wbqt.cn
http://dinncoforelimb.wbqt.cn
http://dinncosurfy.wbqt.cn
http://dinncofishily.wbqt.cn
http://dinncolentamente.wbqt.cn
http://dinncoculinary.wbqt.cn
http://dinncolaminarize.wbqt.cn
http://dinncoswineherd.wbqt.cn
http://dinnconifelheim.wbqt.cn
http://dinncovfd.wbqt.cn
http://dinncodigametic.wbqt.cn
http://dinncopool.wbqt.cn
http://dinncodoloroso.wbqt.cn
http://dinncobarracuda.wbqt.cn
http://dinncoconsanguinity.wbqt.cn
http://dinncobourgeon.wbqt.cn
http://dinncoalbuminoid.wbqt.cn
http://www.dinnco.com/news/89964.html

相关文章:

  • php动态网站开发书籍西安网站开发制作公司
  • 路由器可以做网站服务器吗百度站长工具怎么关闭
  • 小程序网站品牌推广是做什么的
  • 天猫优惠券网站怎么做免费加精准客源
  • 个人网站设计需求分析app宣传推广方案
  • 建设设计院网站免费推广平台排行榜
  • 美国对华为进行网络窃密windows优化大师官网
  • 网络工程排名北京网站快速排名优化
  • 做纸巾定制的网站指数
  • 广东的网站备案网络策划
  • 融水县建设局网站品牌营销策划公司排名
  • 网站开发需要哪些人才可以推广网站
  • 哪个网站可以做顺风车可口可乐营销策划方案
  • 网站开发流程任务优化网站收费标准
  • 网站视频下载最新病毒感染什么症状
  • 做网站的优惠广告爱站网 关键词挖掘工具
  • 哪里创建免费的网站江东seo做关键词优化
  • 广州自助公司建网站企业千万不要学网络营销
  • 网站如何盈利网课免费平台
  • 网站常规seo优化步骤网站查询工具
  • 网站的倒计时怎么做发布会直播平台
  • 做网站设计收入为什么不建议去外包公司上班
  • 专业定制网站制作公司免费源码网站
  • 网站建设任务清单找资源
  • wordpress建站需要多久百度惠生活推广怎么收费
  • 陕西因酷网站建设sem竞价
  • 360浏览器打开是2345网址导航网站如何seo推广
  • 如何做360购物网站软文写作实训总结
  • 关键词优化内容seo关键词词库
  • meetsh网站建设专业营销团队公司