■ ■ ■ ■ ■ ■
webScan/Functions/Loadlog.go
| skipped 12 lines |
13 | 13 | | func init() { |
14 | 14 | | util.RegInitFunc(func() { |
15 | 15 | | fileValue := util.GetAsAny("Exploit") |
16 | | - | Configs.ConfigJsonMap.Exploit.Logs = fmt.Sprintf("%v", util.GetJson4Query(fileValue, ".Logs")) |
17 | | - | Configs.ConfigJsonMap.Exploit.Path = fmt.Sprintf("%v", util.GetJson4Query(fileValue, ".Path")) |
| 16 | + | Configs.ConfigJsonMap.Exploit.Logs = fmt.Sprintf("%v", util.GetJson4Query(fileValue, ".logs")) |
| 17 | + | Configs.ConfigJsonMap.Exploit.Path = fmt.Sprintf("%v", util.GetJson4Query(fileValue, ".path")) |
18 | 18 | | |
19 | 19 | | FileLog, err := os.OpenFile(Configs.ConfigJsonMap.Exploit.Logs, os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0666) |
20 | 20 | | if err != nil { |
| skipped 21 lines |