Skip to content

Filtering results

David García edited this page Sep 24, 2023 · 4 revisions

Banned response codes (-b)

A list of unwanted HTTP Codes may be provided. Cansina will filter those response codes ignoring them.

$ cansina -u <target> -p <payload> -b 404,400,500

Reverse banned response codes (-B)

A list of wanted HTTP Codes may be provided. Cansina will ignore responses without this/these codes.

$ cansina -u <target> -p <payload> -B 200

Size filter (-s)

$ cansina -u <target> -s <size> -p <payload>

If you don't want a response and know its size is fixed this could help skipping all those responses.

Also, it can be a list of sizes:

$ cansina -u <target> -s <size, size, size...> -p <payload>

Autodiscriminator (-D)

$ cansina -u <target> -p <payload> -D

First, Cansina will try to make and remember a 404 response and will skip similar responses. Machine decision so, used with caution.

Filter by content (-d)

$ cansina -u <target> -p <payload> -d <look_for_this_text>

If the provided content is found it will be processed as a 404 Not Found page.