BishopFox/sj

adding content-length

Opened this issue · 1 comments

sometimes there is a false positive, and all the result returns 200, so if we could have a content length of the response it would make it easy for us to see it.

NOW it is like this

INFO Endpoint accessible!  Method=GET Status=200 Target=https://api.eg.com/api/profile/1

with this enhancement, it would be like

INFO Endpoint accessible!  Method=GET Status=200  content-length=20KB Target=https://api.eg.com/api/profile/1

BTW thanks for this nice tool

Hey @moein9, we will keep this open for future consideration, but in the meantime the -v flag should help to identify false positives when using the automate sub-command. The --response-preview-length flag can also be used in conjunction with -v to control how much of the response is shown in the output:

  -v, --verbose                       enable verbose mode, which shows a preview of each response.
        --response-preview-length int   sets the response preview length when using verbose output. (default 50)