简化输出格式

This commit is contained in:
梁凯强 2025-04-18 10:07:05 +08:00
parent 36134b7298
commit 5dfd0397d5
4 changed files with 17 additions and 2 deletions

View File

@ -927,6 +927,7 @@ var (
// POC配置
PocPath string // POC脚本路径
Pocinfo PocInfo // POC详细信息结构
DisablePocScan bool //nopoc
// Redis利用
RedisFile string // Redis利用目标文件

View File

@ -114,6 +114,7 @@ func Flag(Info *HostInfo) {
flag.BoolVar(&PocFull, "full", false, GetText("flag_poc_full"))
flag.BoolVar(&DnsLog, "dns", false, GetText("flag_dns_log"))
flag.IntVar(&PocNum, "num", 20, GetText("flag_poc_num"))
flag.BoolVar(&DisablePocScan, "nopoc", false, GetText("flag_nopoc"))
// ═════════════════════════════════════════════════
// Redis利用参数

View File

@ -7,6 +7,9 @@ import (
// WebPoc 直接执行Web漏洞扫描
func WebPoc(info *Common.HostInfo) error {
if Common.DisablePocScan {
return nil
}
WebScan.WebScan(info)
return nil
}

10
WebScan/pocs/test111.yml Normal file
View File

@ -0,0 +1,10 @@
name: test2222
rules:
- method: GET
path: /
expression: |
response.status == 200
detail:
author: jinqi
links:
- https://www.t00ls.net/articles-54436.html