From edc42c92fa3c5da7e7c5d1b34b4cf6fa502d6a73 Mon Sep 17 00:00:00 2001 From: becivells <732903873@qq.com> Date: Tue, 6 Sep 2022 14:27:56 +0800 Subject: [PATCH] clean log --- app/api/soar.go | 1 - app/api/util.go | 4 ---- 2 files changed, 5 deletions(-) diff --git a/app/api/soar.go b/app/api/soar.go index dc1005c..76be3f6 100644 --- a/app/api/soar.go +++ b/app/api/soar.go @@ -103,7 +103,6 @@ func getParams(c *gin.Context) (map[string]string, error) { if err != nil { return nil, err } - fmt.Println(string(jsonData)) v := make(map[string]string) err = json.Unmarshal(bytes.Replace(jsonData, []byte{'\x00'}, []byte{' '}, -1), &v) if err != nil { diff --git a/app/api/util.go b/app/api/util.go index 0e600a8..b45f570 100644 --- a/app/api/util.go +++ b/app/api/util.go @@ -39,10 +39,8 @@ func init() { } for _, arg := range config.GCfg.SoarArgsDenyList { - fmt.Println(arg) if _, ok := SoarArgsAlowList[arg]; ok { SoarArgsAlowList[arg] = false - fmt.Println(arg) } } } @@ -119,7 +117,6 @@ func SoarRun(argsMap map[string]string) (stdout, loginfo []byte, err error) { argsList = append(argsList, fmt.Sprintf("%s=%s", "-log-output", logfilename)) ecmd := exec.Command(utils.GetSoarBin(), argsList...) - fmt.Println(ecmd.String()) stdout, err = ecmd.CombinedOutput() loginfo, err = ioutil.ReadFile(logfilename) if err != nil { @@ -159,7 +156,6 @@ func RSA_Decrypt(cipherText []byte, path string) ([]byte, error) { func PKCS5UnPadding(origData []byte) []byte { length := len(origData) unpadding := int(origData[length-1]) - fmt.Printf("origData:%s,origData_len:%d,unpadding:%v,length:%vl-u:%d,\n", origData, len(origData), unpadding, length, length-unpadding) if unpadding > length { return origData }