forked from GhostTroops/scan4all
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcveMain.go
111 lines (108 loc) · 2.95 KB
/
cveMain.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
package main
import (
"embed"
_ "github.com/hktalent/scan4all/engine"
"github.com/hktalent/scan4all/lib/util"
"github.com/hktalent/scan4all/pocs_go"
"github.com/hktalent/scan4all/pocs_go/Springboot"
"github.com/hktalent/scan4all/pocs_go/ThinkPHP"
"github.com/hktalent/scan4all/pocs_go/VMware/vCenter"
"github.com/hktalent/scan4all/pocs_go/apache"
"github.com/hktalent/scan4all/pocs_go/confluence"
"github.com/hktalent/scan4all/pocs_go/f5"
"github.com/hktalent/scan4all/pocs_go/fastjson"
"github.com/hktalent/scan4all/pocs_go/gitlab"
"github.com/hktalent/scan4all/pocs_go/jboss"
"github.com/hktalent/scan4all/pocs_go/jenkins"
"github.com/hktalent/scan4all/pocs_go/landray"
"github.com/hktalent/scan4all/pocs_go/mcms"
"github.com/hktalent/scan4all/pocs_go/ms"
"github.com/hktalent/scan4all/pocs_go/phpunit"
"github.com/hktalent/scan4all/pocs_go/ruby"
"github.com/hktalent/scan4all/pocs_go/seeyon"
"github.com/hktalent/scan4all/pocs_go/spark"
"github.com/hktalent/scan4all/pocs_go/sunlogin"
"github.com/hktalent/scan4all/pocs_go/tomcat"
"github.com/hktalent/scan4all/pocs_go/tongda"
"github.com/hktalent/scan4all/pocs_go/weblogic"
"github.com/hktalent/scan4all/pocs_go/zabbix"
"github.com/hktalent/scan4all/pocs_go/zentao"
"log"
"os"
)
//go:embed config/*
var Config embed.FS
// 多个web cve 检测
func main1() {
util.DoInit(&Config)
for _, cbk := range []func(string) bool{
ruby.DoCheck,
apache.CVE_2020_13935Noe,
confluence.CVE_2021_26084,
confluence.CVE_2022_26134,
confluence.CVE_2022_26138,
confluence.CVE_2021_26085,
f5.CVE_2020_5902,
f5.CVE_2021_22986,
f5.CVE_2022_1388,
fastjson.CheckFj,
gitlab.CVE_2021_22205,
jboss.CVE_2017_12149,
jenkins.CVE_2018_1000110,
jenkins.CVE_2018_1000861,
jenkins.CVE_2019_10003000,
jenkins.Unauthorized,
jenkins.DoCheck,
landray.Landray_RCE,
mcms.Front_Sql_inject,
ms.SmbGhostScanNe,
phpunit.CVE_2017_9841,
seeyon.BackdoorScan,
seeyon.CNVD_2019_19299,
seeyon.CNVD_2020_62422,
seeyon.CNVD_2021_01627,
seeyon.CreateMysql,
seeyon.DownExcelBeanServlet,
seeyon.GetSessionList,
seeyon.InitDataAssess,
seeyon.ManagementStatus,
seeyon.SeeyonFastjson,
spark.CVE_2022_33891,
Springboot.CVE_2022_22947,
Springboot.CVE_2022_22965,
sunlogin.SunloginRCE,
ThinkPHP.RCE,
tomcat.CVE_2017_12615,
tomcat.CVE_2020_1938,
pocs_go.DoCheck,
pocs_go.DoCheckCVE202138647,
zabbix.CVE_2022_23131,
zentao.CNVD_2022_42853,
tongda.File_delete,
tongda.Get_user_session,
tongda.File_upload,
vCenter.Check_CVE_2021_21985,
weblogic.CVE_2020_14883,
weblogic.CVE_2020_14882,
weblogic.CVE_2020_2883,
weblogic.CVE_2019_2729,
weblogic.CVE_2019_2725,
weblogic.CVE_2018_2894,
weblogic.CVE_2017_10271,
weblogic.CVE_2017_3506,
weblogic.CVE_2014_4210,
weblogic.CVE_2021_2109,
} {
cbk1 := cbk
util.DefaultPool.Submit(func() {
defer func() {
if o := recover(); nil != o {
log.Println(o)
}
}()
cbk1(os.Args[1])
})
}
util.Wg.Wait()
util.CloseAll()
}