diff --git a/conf/banner.go b/conf/banner.go
index fde1848..ccf2b93 100644
--- a/conf/banner.go
+++ b/conf/banner.go
@@ -17,4 +17,4 @@ var Banner = `
const Website = "https://github.com/yhy0/Jie"
-const Version = "1.0.6"
+const Version = "1.0.7"
diff --git a/go.mod b/go.mod
index 3c54e4b..1990a37 100644
--- a/go.mod
+++ b/go.mod
@@ -15,12 +15,12 @@ require (
github.com/lestrrat-go/file-rotatelogs v2.4.0+incompatible // indirect
github.com/logrusorgru/aurora v2.0.3+incompatible
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d // indirect
- github.com/projectdiscovery/fastdialer v0.0.63 // indirect
- github.com/projectdiscovery/goflags v0.1.44
+ github.com/projectdiscovery/fastdialer v0.0.64 // indirect
+ github.com/projectdiscovery/goflags v0.1.45
github.com/projectdiscovery/hmap v0.0.41 // indirect
github.com/projectdiscovery/ratelimit v0.0.33
- github.com/projectdiscovery/retryablehttp-go v1.0.52
- github.com/projectdiscovery/utils v0.0.84
+ github.com/projectdiscovery/retryablehttp-go v1.0.53
+ github.com/projectdiscovery/utils v0.0.85
github.com/remeh/sizedwaitgroup v1.0.0 // indirect
github.com/rifflock/lfshook v0.0.0-20180920164130-b9218ef580f5 // indirect
github.com/rs/xid v1.5.0 // indirect
@@ -63,7 +63,7 @@ require (
github.com/panjf2000/ants/v2 v2.9.0
github.com/pkg/errors v0.9.1
github.com/projectdiscovery/gologger v1.1.12
- github.com/projectdiscovery/katana v1.0.6-0.20240313185050-24c31f49c050
+ github.com/projectdiscovery/katana v1.1.0
github.com/projectdiscovery/naabu/v2 v2.3.0
github.com/projectdiscovery/nuclei/v3 v3.2.2
github.com/projectdiscovery/retryabledns v1.0.58
@@ -330,7 +330,7 @@ require (
github.com/projectdiscovery/tlsx v1.1.6 // indirect
github.com/projectdiscovery/uncover v1.0.7 // indirect
github.com/projectdiscovery/useragent v0.0.42 // indirect
- github.com/projectdiscovery/wappalyzergo v0.0.113 // indirect
+ github.com/projectdiscovery/wappalyzergo v0.0.115 // indirect
github.com/projectdiscovery/yamldoc-go v1.0.4 // indirect
github.com/quic-go/qpack v0.4.0 // indirect
github.com/quic-go/quic-go v0.41.0 // indirect
diff --git a/go.sum b/go.sum
index 4d7ad2b..b92e89c 100644
--- a/go.sum
+++ b/go.sum
@@ -987,6 +987,8 @@ github.com/projectdiscovery/dsl v0.0.48 h1:cdchhF0xofP8pi+HusNcVpw7oUuln7bS7KtzH
github.com/projectdiscovery/dsl v0.0.48/go.mod h1:px2y6PLhdUx77KwPMpk6MBCaQTtTE1PpG4ZVmsgBmK8=
github.com/projectdiscovery/fastdialer v0.0.63 h1:IZlC77aGf71cAgPfbvoUspzwKnJ2ZylWHXqXCKT+f9k=
github.com/projectdiscovery/fastdialer v0.0.63/go.mod h1:MJKyHdU08k0TfeQSKigQIRsF2VwvX2qKJJfNlb4vdBw=
+github.com/projectdiscovery/fastdialer v0.0.64 h1:xivkA4g14nwQElOVsxPkGMWsdcYPcp7DPhVjvI6yQkw=
+github.com/projectdiscovery/fastdialer v0.0.64/go.mod h1:S/7PAQRmVDYRaU7u4xXD0qA5a48NAZq2JcpcVoEVrlo=
github.com/projectdiscovery/fasttemplate v0.0.2 h1:h2cISk5xDhlJEinlBQS6RRx0vOlOirB2y3Yu4PJzpiA=
github.com/projectdiscovery/fasttemplate v0.0.2/go.mod h1:XYWWVMxnItd+r0GbjA1GCsUopMw1/XusuQxdyAIHMCw=
github.com/projectdiscovery/freeport v0.0.5 h1:jnd3Oqsl4S8n0KuFkE5Hm8WGDP24ITBvmyw5pFTHS8Q=
@@ -995,6 +997,8 @@ github.com/projectdiscovery/go-smb2 v0.0.0-20240129202741-052cc450c6cb h1:rutG90
github.com/projectdiscovery/go-smb2 v0.0.0-20240129202741-052cc450c6cb/go.mod h1:FLjF1DmZ+POoGEiIQdWuYVwS++C/GwpX8YaCsTSm1RY=
github.com/projectdiscovery/goflags v0.1.44 h1:O/ObgErxBgLO1snPJ4LlM3j3aO1IUFN5l42imtnxSmE=
github.com/projectdiscovery/goflags v0.1.44/go.mod h1:Z9lgmcFjEL8SUr2m1uh3X5z/m/2Z/FJvkyAG+6MTeRE=
+github.com/projectdiscovery/goflags v0.1.45 h1:quDCIWRsULQHmDI1UvXptEn9cSRCeiHWT3mxB6bpxnA=
+github.com/projectdiscovery/goflags v0.1.45/go.mod h1:JBwA9GYq/7m0a9PTsfRIoPqoB4/+r59MFTVJMDhN0Ic=
github.com/projectdiscovery/gologger v1.1.12 h1:uX/QkQdip4PubJjjG0+uk5DtyAi1ANPJUvpmimXqv4A=
github.com/projectdiscovery/gologger v1.1.12/go.mod h1:DI8nywPLERS5mo8QEA9E7gd5HZ3Je14SjJBH3F5/kLw=
github.com/projectdiscovery/gostruct v0.0.2 h1:s8gP8ApugGM4go1pA+sVlPDXaWqNP5BBDDSv7VEdG1M=
@@ -1011,6 +1015,8 @@ github.com/projectdiscovery/ipranger v0.0.38 h1:xbZkq8VPIfEgW9srm/rlLJFRD+kPaZV9
github.com/projectdiscovery/ipranger v0.0.38/go.mod h1:uedVYo5AUrmw6nRTh/B4UgZycwp/HHC9gaI0A05XqR0=
github.com/projectdiscovery/katana v1.0.6-0.20240313185050-24c31f49c050 h1:/xY0Isvs3sdZVfeVy/HkVaUxdXRHdzwNxTnkkH2jrOM=
github.com/projectdiscovery/katana v1.0.6-0.20240313185050-24c31f49c050/go.mod h1:g5nS+MYo4D5zPFeJLYYMqYL9Vj6nEGyJcHn8IG+4tmQ=
+github.com/projectdiscovery/katana v1.1.0 h1:J4EdSss0eoLKs5LRTJn8/BbHZSyJtHY7AW0/YNcWRfk=
+github.com/projectdiscovery/katana v1.1.0/go.mod h1:iDtcbSLcEH3dEP+YN950vlrJg8T/h0/u1McyeDF/K+Y=
github.com/projectdiscovery/ldapserver v1.0.2-0.20240219154113-dcc758ebc0cb h1:MGtI4oE12ruWv11ZlPXXd7hl/uAaQZrFvrIDYDeVMd8=
github.com/projectdiscovery/ldapserver v1.0.2-0.20240219154113-dcc758ebc0cb/go.mod h1:vmgC0DTFCfoCLp0RAfsfYTZZan0QMVs+cmTbH6blfjk=
github.com/projectdiscovery/machineid v0.0.0-20240226150047-2e2c51e35983 h1:ZScLodGSezQVwsQDtBSMFp72WDq0nNN+KE/5DHKY5QE=
@@ -1035,6 +1041,8 @@ github.com/projectdiscovery/retryabledns v1.0.58 h1:ut1FSB9+GZ6zQIlKJFLqIz2RZs81
github.com/projectdiscovery/retryabledns v1.0.58/go.mod h1:RobmKoNBgngAVE4H9REQtaLP1pa4TCyypHy1MWHT1mY=
github.com/projectdiscovery/retryablehttp-go v1.0.52 h1:E1EXok2oXmX1pwCHMyMKkdbiyp0IUxd5bQ7ZbT8AK+o=
github.com/projectdiscovery/retryablehttp-go v1.0.52/go.mod h1:DITjQ0spJHSL81ALR6BEr+yMw/Nxhw0qSdjwF9mGhjI=
+github.com/projectdiscovery/retryablehttp-go v1.0.53 h1:Kp4590eOwFhUH9oIaCFMtudLSqL1BX+VNurS42+SC8Q=
+github.com/projectdiscovery/retryablehttp-go v1.0.53/go.mod h1:b5zNLih0PcfvrDzTRY+QCB1dhFpODQQ2NjI4TtrmRyY=
github.com/projectdiscovery/sarif v0.0.1 h1:C2Tyj0SGOKbCLgHrx83vaE6YkzXEVrMXYRGLkKCr/us=
github.com/projectdiscovery/sarif v0.0.1/go.mod h1:cEYlDu8amcPf6b9dSakcz2nNnJsoz4aR6peERwV+wuQ=
github.com/projectdiscovery/stringsutil v0.0.2 h1:uzmw3IVLJSMW1kEg8eCStG/cGbYYZAja8BH3LqqJXMA=
@@ -1047,8 +1055,12 @@ github.com/projectdiscovery/useragent v0.0.42 h1:SA8xpvaKdA3zrz8D1y5vR5cE2cl2f/C
github.com/projectdiscovery/useragent v0.0.42/go.mod h1:HMzxj3qLFGcCVaj8L87gEoKQjWtbvypqN0+8CiiUywA=
github.com/projectdiscovery/utils v0.0.84 h1:1IcaRVOrxow7Qev57OF1CSCj5QTmx3MZL5C25A/qa8k=
github.com/projectdiscovery/utils v0.0.84/go.mod h1:8toAN5TBNqMJFS6uVVQTcmONrOBIMZpHAElrlzT+Y4I=
+github.com/projectdiscovery/utils v0.0.85 h1:JpCVc9GJwJLNHy1MBPmAHJcE6rs7bRv72Trb3u84OHE=
+github.com/projectdiscovery/utils v0.0.85/go.mod h1:ttiPgS2LmLFd+VRBUdgfLKMMdrF98zX7z5W+K71MX40=
github.com/projectdiscovery/wappalyzergo v0.0.113 h1:aoGOY3iGXX6U1RC2TAVEd/s65BESNYYIqpthZvcsZIk=
github.com/projectdiscovery/wappalyzergo v0.0.113/go.mod h1:hc/o+fgM8KtdpFesjfBTmHTwsR+yBd+4kYZW/DGy/x8=
+github.com/projectdiscovery/wappalyzergo v0.0.115 h1:Xe916MBsliAWwogLHZN0qTrjyCy56PHuGUkdl0DTchk=
+github.com/projectdiscovery/wappalyzergo v0.0.115/go.mod h1:hc/o+fgM8KtdpFesjfBTmHTwsR+yBd+4kYZW/DGy/x8=
github.com/projectdiscovery/yamldoc-go v1.0.4 h1:eZoESapnMw6WAHiVgRwNqvbJEfNHEH148uthhFbG5jE=
github.com/projectdiscovery/yamldoc-go v1.0.4/go.mod h1:8PIPRcUD55UbtQdcfFR1hpIGRWG0P7alClXNGt1TBik=
github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw=
diff --git a/pkg/output/report.go b/pkg/output/report.go
index 827cffb..ec71e01 100644
--- a/pkg/output/report.go
+++ b/pkg/output/report.go
@@ -19,36 +19,36 @@ var vulnReportTmpl []byte
var ReportMessageChan = make(chan VulMessage)
func GenerateVulnReport(filename string) {
- vulMessages := make([]VulMessage, 0)
-
+ var vulMessages []VulMessage
+
for vulMessage := range ReportMessageChan {
// Append the received vulMessage to the list
vulMessages = append(vulMessages, vulMessage)
-
+
// Create the output file
outputFile, err := os.Create(filename)
if err != nil {
logging.Logger.Errorln("Error creating output file:", err)
return
}
-
+
// Execute the template and write the output to the file
tmpl, err := template.New("vuln_report").Parse(string(vulnReportTmpl))
if err != nil {
logging.Logger.Errorln("Error parsing template:", err)
return
}
-
+
err = tmpl.Execute(outputFile, struct {
- VulnMessages []VulMessage
+ VulMessages []VulMessage
}{
- VulnMessages: vulMessages,
+ VulMessages: vulMessages,
})
if err != nil {
logging.Logger.Errorln("Error executing template:", err)
return
}
-
+
outputFile.Close()
}
}
diff --git a/pkg/output/vulnReport.html b/pkg/output/vulnReport.html
index cd1d514..671a849 100644
--- a/pkg/output/vulnReport.html
+++ b/pkg/output/vulnReport.html
@@ -46,45 +46,46 @@
Vulnerability Report - Jie
- {{range $index, $message := .VulnMessages}}
- -
-
-
-
{{.VulnData.VulnType}} - {{.VulnData.Target}}
- {{ .VulnData.Plugin }}
- Toggle Details
-
-
{{.Level}}
- {{if .VulnData.Ip}}
IP: {{.VulnData.Ip}}
{{end}}
- {{if .VulnData.CreateTime}}
Create Time: {{.VulnData.CreateTime}}
{{end}}
-
- {{if .VulnData.Method}}
Method: {{.VulnData.Method}}
{{end}}
- {{if .VulnData.Param}}
Parameter: {{.VulnData.Param}}
{{end}}
- {{if .VulnData.Payload}}
Payload: {{.VulnData.Payload}}
{{end}}
- {{if .VulnData.CURLCommand}}
CURL Command: {{.VulnData.CURLCommand}}
{{end}}
- {{if .VulnData.Description}}
Description: {{.VulnData.Description}}
{{end}}
-
-
-
-
-
- {{if .VulnData.Request}}
{{.VulnData.Request}}
{{end}}
-
-
- {{if .VulnData.Response}}
{{.VulnData.Response}}
{{end}}
-
+ {{ range $index, $message := .VulMessages }}
+
-
+
+
+
+ {{ if $message.VulnData.VulnType }} {{ $message.VulnData.VulnType }} - {{ end }}{{ $message.VulnData.Target }}
+
+ Toggle Details
+
+
{{ $message.Level }} {{ $message.Plugin }}
+ {{ if $message.VulnData.Ip }}
IP: {{ $message.VulnData.Ip }}
{{ end }}
+ {{ if $message.VulnData.CreateTime }}
Create Time: {{ $message.VulnData.CreateTime }}
{{ end }}
+ {{ if $message.VulnData.Payload }}
Payload: {{ $message.VulnData.Payload }}
{{ end }}
+
+ {{ if $message.VulnData.Method }}
Method: {{ $message.VulnData.Method }}
{{ end }}
+ {{ if $message.VulnData.Param }}
Parameter: {{ $message.VulnData.Param }}
{{ end }}
+ {{ if $message.VulnData.CURLCommand }}
CURL Command: {{ $message.VulnData.CURLCommand }}
{{ end }}
+ {{ if $message.VulnData.Description }}
Description: {{ $message.VulnData.Description }}
{{ end }}
+
+
+
+
+
+ {{ if $message.VulnData.Request}}
{{ $message.VulnData.Request}}
{{ end }}
+
+
+ {{ if $message.VulnData.Response }}
{{ $message.VulnData.Response }}
{{ end }}
-
- {{end}}
+
+
+ {{ end }}