File tree Expand file tree Collapse file tree 5 files changed +15
-23
lines changed Expand file tree Collapse file tree 5 files changed +15
-23
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ const banner = `
15
15
`
16
16
17
17
// TODO 修改版本号
18
- const version = "0.1.0 "
18
+ const version = "0.0.10 "
19
19
20
- func ShowBanner (Version string ) {
20
+ func ShowBanner () {
21
21
fmt .Println (banner )
22
- fmt .Println ("\t \t \t Author: SummerSec Version:" , Version + " Github: https://Github.com/SummerSec\n " )
22
+ fmt .Println ("\t \t \t Author: SummerSec Version:" , version + " Github: https://Github.com/SummerSec\n " )
23
23
24
24
}
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ func ParseOptions() *Options {
79
79
80
80
// TODO 修改版本号
81
81
logs .SaveLogs (options .LogFile )
82
- ShowBanner (version )
82
+ ShowBanner ()
83
83
showVerbose (options )
84
84
85
85
if options .Version {
Original file line number Diff line number Diff line change @@ -56,14 +56,23 @@ func (CVE202126084) init() {
56
56
}
57
57
58
58
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
+ }
60
63
}
61
64
62
65
func (CVE202126084 ) CheckExp (resp * req.Response , target string , hashmap map [string ]interface {}) bool {
63
66
if resp .IsSuccess () {
64
67
log .Debugf (resp .Dump ())
65
68
return true
66
69
}
70
+ // 处理异常
71
+ defer func () {
72
+ if errs := recover (); errs != nil {
73
+ log .Debug (errs )
74
+ }
75
+ }()
67
76
68
77
return false
69
78
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ func Send(hashmap map[string]interface{}) (resp *req.Response) {
56
56
reqs := SetRequest (reqt , headers , body .(string ))
57
57
defer func () {
58
58
if err := recover (); err != nil {
59
- log .Error ( "send request error: " + err .( string ) )
59
+ log .Trace ( err )
60
60
}
61
61
}()
62
62
resp , _ = reqs .Send (method , url )
Original file line number Diff line number Diff line change 1
1
package main
2
2
3
- import (
4
- "fmt"
5
- "net/url"
6
- "strings"
7
- )
8
-
9
3
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 )
21
4
22
5
}
You can’t perform that action at this time.
0 commit comments