Skip to content

Requests and connection options

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

Disable redirects (--no-follow)

All 3xx codes will be treated as 404 results.

$ cansina -u <target> -p <payload> --no-follow

Threading (-t)

Set the threading level. 4 by default.

$ cansina -u <target> -p <payload> -t <n_threads>

Delay between requests (-T)

Set a delay between requests. Time is set in float format. For example: 1.25 seconds

$ cansina -u <target> -p <payload> -T 1.25

User agent (-a)

Set an alternative User-Agent string.

$ cansina -u <target> -p <payload> -a <user_agent_string>

Custom headers (--headers)

Set custom HTTP headers.

$ cansina -u <target> -p <payload> --headers Host=host.com,Etc=etc

Proxy (-P)

Set a proxy.

$ cansina -u <target> -p <payload> -Phttp://127.0.0.1:8080

HEAD requests (-H)

Make requests using HEAD HTTP method. Be aware size and content filtering and possibly other options won't work.

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

Persistent connections (--persist)

All requests will be made with persistent connections. CAUTION: this is so, so much faster, but the server may experience a high load.

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