mirror of
https://github.com/Ed1s0nZ/PrivHunterAI.git
synced 2025-09-17 20:41:37 +00:00
Update scan.go
This commit is contained in:
parent
434ed65d3e
commit
20af47fd69
3
scan.go
3
scan.go
@ -23,12 +23,14 @@ type Result struct {
|
||||
RespBodyB string `json:"respBodyB"`
|
||||
Result string `json:"result"`
|
||||
Reason string `json:"reason"`
|
||||
Confidence string `json:"confidence"`
|
||||
}
|
||||
|
||||
// 扫描结果
|
||||
type ScanResult struct {
|
||||
Res string `json:"res"`
|
||||
Reason string `json:"reason"`
|
||||
Confidence string `json:"confidence"`
|
||||
}
|
||||
|
||||
func scan() {
|
||||
@ -78,6 +80,7 @@ func scan() {
|
||||
} else {
|
||||
resultOutput.Result = scanR.Res
|
||||
resultOutput.Reason = scanR.Reason
|
||||
resultOutput.Confidence = scanR.Confidence
|
||||
jsonData, err := json.Marshal(resultOutput)
|
||||
if err != nil {
|
||||
log.Fatalf("Error marshaling to JSON: %v", err)
|
||||
|
Loading…
x
Reference in New Issue
Block a user