Skip to content

Commit 15c2543

Browse files
committed
1 parent 9324301 commit 15c2543

File tree

5 files changed

+15
-23
lines changed

5 files changed

+15
-23
lines changed

cmd/commons/core/banner.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ const banner = `
1515
`
1616

1717
// TODO 修改版本号
18-
const version = "0.1.0"
18+
const version = "0.0.10"
1919

20-
func ShowBanner(Version string) {
20+
func ShowBanner() {
2121
fmt.Println(banner)
22-
fmt.Println("\t\t\tAuthor: SummerSec Version:", Version+" Github: https://Github.com/SummerSec\n")
22+
fmt.Println("\t\t\tAuthor: SummerSec Version:", version+" Github: https://Github.com/SummerSec\n")
2323

2424
}

cmd/commons/core/options.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func ParseOptions() *Options {
7979

8080
// TODO 修改版本号
8181
logs.SaveLogs(options.LogFile)
82-
ShowBanner(version)
82+
ShowBanner()
8383
showVerbose(options)
8484

8585
if options.Version {

cmd/commons/poc/2021/CVE-2021-26084.go

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,23 @@ func (CVE202126084) init() {
5656
}
5757

5858
func (CVE202126084) SaveResult(target string, file string) {
59-
utils.SaveToFile(target, file)
59+
err := utils.SaveToFile(target, file)
60+
if err != nil {
61+
return
62+
}
6063
}
6164

6265
func (CVE202126084) CheckExp(resp *req.Response, target string, hashmap map[string]interface{}) bool {
6366
if resp.IsSuccess() {
6467
log.Debugf(resp.Dump())
6568
return true
6669
}
70+
// 处理异常
71+
defer func() {
72+
if errs := recover(); errs != nil {
73+
log.Debug(errs)
74+
}
75+
}()
6776

6877
return false
6978

cmd/commons/utils/httpclient.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func Send(hashmap map[string]interface{}) (resp *req.Response) {
5656
reqs := SetRequest(reqt, headers, body.(string))
5757
defer func() {
5858
if err := recover(); err != nil {
59-
log.Error("send request error: " + err.(string))
59+
log.Trace(err)
6060
}
6161
}()
6262
resp, _ = reqs.Send(method, url)

cmd/test/url.go

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,5 @@
11
package main
22

3-
import (
4-
"fmt"
5-
"net/url"
6-
"strings"
7-
)
8-
93
func main() {
10-
u := "https://sumsec.me/"
11-
//c := req.C()
12-
//resp, _ := c.R().EnableDump().Get(u)
13-
//s := resp.Dump()
14-
//fmt.Println("--->" + s)
15-
16-
r, _ := url.Parse(u)
17-
fmt.Println(r.Scheme + "://" + r.Host + r.Path)
18-
d := ""
19-
ds := strings.Split(d, ",")
20-
fmt.Println(ds)
214

225
}

0 commit comments

Comments
 (0)