mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-17 19:45:28 +00:00
fixed hex dump issue (#6273)
This commit is contained in:
parent
6cc9c2e9e8
commit
c242b112cc
@ -1156,7 +1156,7 @@ func dumpResponse(event *output.InternalWrappedEvent, request *Request, redirect
|
||||
response := string(redirectedResponse)
|
||||
|
||||
var highlightedResult string
|
||||
if responseContentType == "application/octet-stream" || ((responseContentType == "" || responseContentType == "application/x-www-form-urlencoded") && responsehighlighter.HasBinaryContent(response)) {
|
||||
if (responseContentType == "application/octet-stream" || responseContentType == "application/x-www-form-urlencoded") && responsehighlighter.HasBinaryContent(response) {
|
||||
highlightedResult = createResponseHexDump(event, response, cliOptions.NoColor)
|
||||
} else {
|
||||
highlightedResult = responsehighlighter.Highlight(event.OperatorsResult, response, cliOptions.NoColor, false)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user