
🦚 Rustで書かれたWebアプリペネトレーションテストスイート。
Kanha - Rustで書かれたWebアプリペンテストスイート 🦀インストール
⦾
サブコマンド
⦾
貢献


Kanha は、対象ドメインに基づいてさまざまな攻撃を実行できるツールです。kanha だけで、ファジング、逆DNSルックアップ、一般的なHTTPレスポンス、サブドメインテイクオーバー検出 など、その他多数 を行うことができます。
このプロジェクトは mini.nvim に触発されており、基本的にはシステムにインストールするツール(プラグイン)の数を減らして生産性を高め、邪魔にならずにすぐに使えるスタンドアロンの単一バイナリとして機能します。
パフォーマンス、使いやすさ、移植性を考慮して、お気に入りのプログラミング言語 Rust で一から構築されています 💝
バイナリ jq、curl、tar、wget が必要です。wget -qO- "$(curl -qfsSL "https://api.github.com/repos/pwnwriter/kanha/releases/latest" | jq -r '.assets[].browser_download_url' | grep -Ei "$(uname -m).*$(uname -s).*musl" | grep -v "\.sha")" | tar -xzf - --strip-components=1
./kanha -h
[!IMPORTANT] 上流の更新については、
kanhaをソースからビルドすることをお勧めします!
ソース git clone --depth=1 https://github.com/pwnwriter/kanha --branch=main
cd kanha
cargo build --release
Cargo METIS Linux sudo/doas pacman -Syyy kanha
Arch ユーザーリポジトリ paru/yay -S kanha-git
Nix で # ソースからビルドして実行
nix run github:pwnwriter/kanha
# flakes なし:
nix-env -iA nixpkgs.kanha
# flakes あり:
nix profile install nixpkgs#kanha
➊ Status :- URLのHTTPレスポンスコードを返すだけ
$ kanha status -h
Just return the HTTP response code of URLs
Usage: kanha status [OPTIONS]
Options:
-f, --filename <FILENAME> A file containing multiple urls
-t, --tasks <TASKS> Define the maximum concurrent tasks [default: 20]
--stdin Reads input from the standard in
--exclude <EXCLUDE> Define your status code for selective exclusion
-h, --help Print help
-V, --version Print version
➋ fuzz :- URLをファジングしてレスポンスコードを返す
$ kanha fuzz -h
Fuzz a URL and return the response codes
Usage: kanha fuzz [OPTIONS] --payloads <PAYLOADS>
Options:
-p, --payloads <PAYLOADS> A file containing a list of payloads
-u, --url <URL> A single url
-f, --file-path <FILE_PATH> Path of the file containing multiple urls
-t, --tasks <TASKS> Define the maximum concurrent tasks [default: 20]
--exclude <EXCLUDE> Define your status code for selective exclusion
--stdin Reads input from the standard in
-h, --help Print help
-V, --version Print version
➌ rdns :- 逆DNSルックアップ
$ kanha rdns -h
Reverse dns lookup
Usage: kanha rdns [OPTIONS] --filename <FILENAME>
Options:
-f, --filename <FILENAME> a file containing a list of possible wordlists
--stdin Reads input from the standard in
-h, --help Print help
-V, --version Print version
➍ Takeover :- サブドメインテイクオーバーの可能性をチェック
$ kanha takeover -h
Check possible subdomain takeover vulnerability
Usage: kanha takeover [OPTIONS]
Options:
-u, --url <URL> A single url
-f, --file-path <FILE_PATH> Path of the file containing multiple urls
-j, --json-file <JSON_FILE> A json file containing signature values of different services
--stdin Reads input from the standard in
-h, --help Print help
-V, --version Print version
➎ urldencode :- URLをデコード/エンコード
$ kanha urldencode -h
(De|En) code urls
Usage: kanha urldencode [OPTIONS]
Options:
--encode <ENCODE> Provide a url to encode
--decode <DECODE> Provide a url to dencode
-h, --help Print help
-V, --version Print version
haylxon :- Rustで書かれた、ターミナルからドメインリストのスクリーンショットを瞬時に取得するツール 🦀httpx :- 高速で多目的なHTTPツールキット。ffuf :- Goで書かれた高速なWebファザー。私は学生です。空き時間にオープンソースに取り組むのが好きです。私の活動に感謝していただけるなら、Ko-fiでサポートを検討してください。
Kanha は MIT ライセンス の下でライセンスされています。Kanha を自分のものとして自由に扱ってください!
Copyright © 2023 - present pwnwriter xyz ☘️