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"`
|
RespBodyB string `json:"respBodyB"`
|
||||||
Result string `json:"result"`
|
Result string `json:"result"`
|
||||||
Reason string `json:"reason"`
|
Reason string `json:"reason"`
|
||||||
|
Confidence string `json:"confidence"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// 扫描结果
|
// 扫描结果
|
||||||
type ScanResult struct {
|
type ScanResult struct {
|
||||||
Res string `json:"res"`
|
Res string `json:"res"`
|
||||||
Reason string `json:"reason"`
|
Reason string `json:"reason"`
|
||||||
|
Confidence string `json:"confidence"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func scan() {
|
func scan() {
|
||||||
@ -78,6 +80,7 @@ func scan() {
|
|||||||
} else {
|
} else {
|
||||||
resultOutput.Result = scanR.Res
|
resultOutput.Result = scanR.Res
|
||||||
resultOutput.Reason = scanR.Reason
|
resultOutput.Reason = scanR.Reason
|
||||||
|
resultOutput.Confidence = scanR.Confidence
|
||||||
jsonData, err := json.Marshal(resultOutput)
|
jsonData, err := json.Marshal(resultOutput)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("Error marshaling to JSON: %v", err)
|
log.Fatalf("Error marshaling to JSON: %v", err)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user