恢复-nopoc功能

This commit is contained in:
shadow1ng 2025-02-25 20:05:35 +08:00
parent 8170515236
commit 5c8088ff32
3 changed files with 7 additions and 3 deletions

View File

@ -907,8 +907,9 @@ var (
LocalMode bool // -local 本地模式
// POC配置
PocPath string
Pocinfo PocInfo
DisablePocScan bool //nopoc
PocPath string
Pocinfo PocInfo
// Redis配置
RedisFile string

View File

@ -99,6 +99,7 @@ func Flag(Info *HostInfo) {
flag.BoolVar(&LocalMode, "local", false, GetText("flag_local_mode"))
// POC配置
flag.BoolVar(&DisablePocScan, "nopoc", false, GetText("flag_nopoc"))
flag.StringVar(&PocPath, "pocpath", "", GetText("flag_poc_path"))
flag.StringVar(&Pocinfo.PocName, "pocname", "", GetText("flag_poc_name"))
flag.BoolVar(&PocFull, "full", false, GetText("flag_poc_full"))

View File

@ -20,8 +20,10 @@ var AllPocs []*lib.Poc
// WebScan 执行Web漏洞扫描
func WebScan(info *Common.HostInfo) {
if Common.DisablePocScan {
return
}
once.Do(initpoc)
var pocinfo = Common.Pocinfo
// 自动构建URL