恢复-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,6 +907,7 @@ var (
LocalMode bool // -local 本地模式 LocalMode bool // -local 本地模式
// POC配置 // POC配置
DisablePocScan bool //nopoc
PocPath string PocPath string
Pocinfo PocInfo Pocinfo PocInfo

View File

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

View File

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