Skip to content

Commit

Permalink
clean log
Browse files Browse the repository at this point in the history
  • Loading branch information
Becivells committed Sep 6, 2022
1 parent 5b0dea5 commit edc42c9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion app/api/soar.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 0 additions & 4 deletions app/api/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit edc42c9

Please sign in to comment.