最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

xpoc漏洞使用與編寫 淺嘗

2023-06-18 22:53 作者:黑糖安全  | 我要投稿

下載地址 https://github.com/chaitin/xpoc/releases

目前最新版本是 0.0.4

可能是我還是不太習慣yaml這種結構的,感覺就很反人類,所以我以前一般都還是pocsuite用的比較多,結果pocsuite最后也支持yaml了 orz ,如下

#!yaml
name: test poc
description: This is a test POC script written in YAML format.
author: binjie09
date: 2023-06-12
references:
? ?- https://www.example.com/vuln
options:
? ?target:
? ? ? ?type: string
? ? ? ?required: true
? ? ? ?description: Target URL
? ?timeout:
? ? ? ?type: integer
? ? ? ?default: 10
? ? ? ?description: Timeout in seconds
poc:
? ?- name: Test vulnerability
? ? ?request:
? ? ? ? ?method: GET
? ? ? ? ?url: '{{target}}/vulnerability'
? ? ? ? ?headers:
? ? ? ? ? ? ?User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64)
? ? ? ? ? ? ?Accept-Language: en-US,en;q=0.8
? ? ? ? ?timeout: {{timeout}}
? ? ?response:
? ? ? ? ?- match: 'Vulnerable'
? ? ? ? ? ?keyword: true
? ? ? ? ? ?description: The target is vulnerable.
? ? ?error:
? ? ? ? ?- match: '403 Forbidden'
? ? ? ? ? ?description: Access denied.

運行xpoc

xpoc -h

編寫yaml

你想真正把這玩意用起來就得自己寫poc,本來想用在線版 為了安全性 算了

下載本地規(guī)則工具 https://github.com/zeoxisca/gamma-gui/releases

最新版本為 1.1

打開之后是這樣

比如我想寫一個未授權訪問的POC

剛開始寫POC的時候用這種圖形化界面的生成就行 等后面用的比較多了,同時POC的復雜度上升了之后一般還是需要自己手動進行編寫

最后生成的poc yaml為(當然我這里有些地方?jīng)]有填寫

name: poc-yaml-test
transport: http
rules:
?r0:
? ?request:
? ? ?method: POST
? ? ?path: /aaa
? ? ?follow_redirects: false
? ? ?headers:
? ? ? ?User-Agent: >-
? ? ? ? ?Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:101.0) Gecko/20100101
? ? ? ? ?Firefox/101.0
? ? ? ?Content-Type: application/x-www-form-urlencoded
? ? ? ?Accept-Encoding: gzip, deflate
? ? ?body: order=get
? ?expression: response.status == 200 && "SUCCESS".matches(response.body_string)
expression: r0()
detail:
?author: Cl0udG0d
?links: []

在臨時發(fā)射場我們可以驗證這里的POC的正確性

使用poc

復制出來之后使用xray調用

xpoc -r test.yaml -t http://www.baidu.com

這里當然是失敗的 因為我隨便亂寫的POC :)

總結

我以前還寫過xray破解的教程 orz,相對xray來說 我更喜歡xpoc,可以讓我定制化的程度更高,也有可能是我不會用xray hhh

END

建了一個微信的安全交流群,歡迎添加我微信備注進群,一起來聊天吹水哇,以及一個會發(fā)布安全相關內容的公眾號,歡迎關注 :)

GIF

? ?

GIF


xpoc漏洞使用與編寫 淺嘗的評論 (共 條)

分享到微博請遵守國家法律
府谷县| 南投市| 措勤县| 凤冈县| 西畴县| 大厂| 无为县| 高要市| 墨玉县| 双城市| 乐安县| 扶沟县| 安仁县| 新安县| 桃源县| 虞城县| 永丰县| 庄浪县| 教育| 秦安县| 宣化县| 博野县| 始兴县| 镇远县| 东山县| 通许县| 惠东县| 通州区| 盐边县| 南澳县| 历史| 舒城县| 卓尼县| 余庆县| 绵竹市| 滁州市| 抚远县| 万荣县| 松原市| 蒙城县| 南丹县|