mirror of https://github.com/daffainfo/nuclei.git
adding result dedupe
parent
6af462c215
commit
cf1526b7ed
|
@ -4,7 +4,6 @@ import (
|
||||||
"bufio"
|
"bufio"
|
||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
"io"
|
"io"
|
||||||
"log"
|
|
||||||
"os"
|
"os"
|
||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
|
@ -113,8 +112,11 @@ func (request *Request) ExecuteWithResults(input string, metadata, previous outp
|
||||||
|
|
||||||
}
|
}
|
||||||
outputEvent["all_matches"] = allMatches
|
outputEvent["all_matches"] = allMatches
|
||||||
log.Printf("%#v\n", result)
|
event := eventcreator.CreateEventWithResults(request, outputEvent, isResponseDebug, result)
|
||||||
callback(eventcreator.CreateEventWithResults(request, outputEvent, isResponseDebug, result))
|
for _, outputResultEvent := range event.Results {
|
||||||
|
outputResultEvent.ExtractedResults = sliceutil.Dedupe(outputResultEvent.ExtractedResults)
|
||||||
|
}
|
||||||
|
callback(event)
|
||||||
request.options.Progress.IncrementRequests()
|
request.options.Progress.IncrementRequests()
|
||||||
}(data)
|
}(data)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue