cansina 目录_cansina: Cansina是一款用于发现网站的敏感目录和内容的安全测试工具,通过分析服务器的响应进行探测并使用sqlite保证数据持久性...

Cansina

IMPORTANT: Clone this repository with:

git clone --depth=1 https://github.com/deibit/cansina

Cansina is a Web Content Discovery Application.

It is well known Web applications don't publish all their resources or public links,

so the only way to discover these resources is requesting for them and check the response.

Cansina duty is to help you making requests and filtering and inspecting the responses to tell

apart if it is an existing resource or just an annoying or disguised 404.

Feature requests and comments are welcome.

Cansina is included in BlackArch Linux, give it a try!

Screenshot

Speed

Wanna make Cansina run faster? Grab my cup of coffee.

Cansina downloads page content for inspection by default (Yep, Cansina does not racing for speed). but you can disable GET requests and make them HEAD (no body page download). Also, do no print the fancy terminal interface (you will lost some hackish points).

Put -H to make requests lighter

Put --no-progress to print no fancy information in the screen

Raise default threads to ten with -t 10 (or even more if you don't mind noise and faulty tries)

Windows

Untested in Windows. It should work with --no-progress

Installation

git clone --depth=1 https://github.com/deibit/cansina

cd cansina

pip install -r requirements.txt

From release tagged Py27, Cansina is made with Python 3.x in mind.

Usage

Wiki is full of documentation and examples. But as a fast example:

python3 cansina.py -u -p

Help summary:

python3 cansina.py -h

Options

usage: cansina.py -u url -p payload [options]

Cansina is a web content discovery tool. It makes requests and analyze the

responses trying to figure out whether the resource is or not accessible.

optional arguments:

-h, --help show this help message and exit

-A AUTHENTICATION Basic Authentication (e.g: user:password)

-C COOKIES your cookies (e.g: key:value)

-D Check for fake 404 (warning: machine decision)

-H Make HTTP HEAD requests

-P PROXIES Set a http and/or https proxy (ex:

http://127.0.0.1:8080,https://...

-S Remove ending slash for payloads

-T REQUEST_DELAY Time (a float number, e.g: 0.25 or 1.75) between

requests

-U Make payload requests upper-case

-a USER_AGENT The preferred user-agent (default provided)

-b BANNED List of banned response codes

-B UNBANNED List of unbanned response codes, mark all response as

invalid without unbanned response codes, higher

priority than banned

-c CONTENT Inspect content looking for a particular string

-d DISCRIMINATOR If this string if found it will be treated as a 404

-e EXTENSION Extension list to use e.g: php,asp,...(default none)

-o OUTPUT Write (append) results in CSV format to a file; -o

-p PAYLOAD A single file, a file with filenames (.payload) or a

directory (will do *.txt)

-s SIZE_DISCRIMINATOR

Will skip pages with this size in bytes (or a list of

sizes 0,500,1500...)

-t THREADS Number of threads (default 4)

-u TARGET Target url

-r RESUME Resume a session

-R Parse robots.txt and check its contents

--recursive Recursive descend on path directories

--no-persist Do not Use HTTP persistent connections

--full-path Show full path instead of only resources

--show-type Show content-type in results

--no-follow Do not follow redirections

--line CONTINUE_LINE Continue payload in line

--resumer Save session in a file

--headers HEADERS Set personalized headers: key=value;key=value...

--capitalize Transform 'word' into 'Word'.

--strip-extension Strip word extension: word.ext into word

--alpha Filter non alphanumeric words from wordlist

--no-progress Don't show tested words and progress. (For dumb

terminals)

--no-colors Don't use output colors to keep output clean, e.g.

when redirecting output to file

License, requests, etc: https://github.com/deibit/cansina

Features

Data persistence with sqlite database

Optional output in CSV format

Multithreading

Multiextension

Custom headers

Multiple wordlists from directories

Content detection

Filter results by size

Filter results by content

URL pattern (***) to interpolate strings

SSL support

Proxy support

Basic Authentication

Cookie jar

Resuming

Path recursion

Persistent connections

Complementary tools

Important

This tool is intended to be used in a fair and legal context, meaning, for example,

a penetration testing for which you have been provided previous authorization.

One of its legitimate uses might be the one described in the following article:

Dependencies

Python 3

Wordlists

License information

License: GNU General Public License, version 3 or later; see LICENSE.txt

included in this archive for details.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值