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 = `
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 \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 " )
2323
2424}
Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff line change @@ -56,14 +56,23 @@ func (CVE202126084) init() {
5656}
5757
5858func (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
6265func (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
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff line change 11package main
22
3- import (
4- "fmt"
5- "net/url"
6- "strings"
7- )
8-
93func 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}
You can’t perform that action at this time.
0 commit comments