refactor: 大型重构

This commit is contained in:
ZacharyZcR
2024-12-20 17:32:25 +08:00
parent 9c0fcd98fe
commit 4da94448cb
6 changed files with 214 additions and 135 deletions
+12
View File
@@ -0,0 +1,12 @@
package Plugins
import (
"github.com/shadow1ng/fscan/Common"
"github.com/shadow1ng/fscan/WebScan"
)
// WebPoc 直接执行Web漏洞扫描
func WebPoc(info *Common.HostInfo) error {
WebScan.WebScan(info)
return nil
}
+1 -7
View File
@@ -20,12 +20,6 @@ import (
// WebTitle 获取Web标题并执行扫描
func WebTitle(info *Common.HostInfo) error {
// 如果是webpoc扫描模式,直接执行WebScan
if Common.ScanMode == "webpoc" {
WebScan.WebScan(info)
return nil
}
// 获取网站标题信息
err, CheckData := GOWebTitle(info)
info.Infostr = WebScan.InfoCheck(info.Url, &CheckData)
@@ -41,7 +35,7 @@ func WebTitle(info *Common.HostInfo) error {
if !Common.DisablePoc && err == nil {
WebScan.WebScan(info)
} else {
errlog := fmt.Sprintf("[-] webtitle %v %v", info.Url, err)
errlog := fmt.Sprintf("[-] 网站标题 %v %v", info.Url, err)
Common.LogError(errlog)
}