• Stars
    star
    265
  • Rank 154,577 (Top 4 %)
  • Language
    Rust
  • License
    MIT License
  • Created over 1 year ago
  • Updated about 1 month ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

๐Ÿฆš A web-app pentesting suite written in rust .

Kanha - A web-app pentesting suite written in rust ๐Ÿฆ€

Installation โฆพ Subcommands โฆพ Contribute

Crate Release MIT LICENSE Ko-fi

-----------------------------------------------------

img

Kanha is a tool that can help you perform, a variety of attacks based on the target domain . With just kanha you can do, Fuzzing, Reverse dns lookup, common http response, subdomain takeover detection and many more.

The project is inspird by mini.nvim, basically helping you to be productive with less numbers of tools(plugins) installed on your system and be unobtrusive and function as a standalone single binary out of the box.

Built from the ground up with performance, ease of use, and portability in mind in your favourite programming lang rust ๐Ÿ’

๐Ÿง  Philosophy

  • KISS - Keep things simple and stupid.
  • Ease - Write code that can be used elsewhere as well.
  • Efficiency - Optimize for performance without sacrificing readability.

๐Ÿฑ Installation

๐Ÿช„ Binary ย 
  • You can directly download the binary of your arch and run it.
๐ŸŒผ Source ย 
git clone --depth=1 https://github.com/pwnwriter/kanha --branch=main
cd kanha
cargo build --release 

Then go to release dir and ./kanha or move the binary to your any $PATH for instant access from anywhere.

๐ŸŽ  Cargo
  • Using crates.io

    cargo install kanha
  • Using binstall

    cargo binstall kanha

    Note โš ๏ธ This requires a working setup of rust/cargo & binstall.

๐Ÿšฉ METIS Linux ย 
sudo/doas pacman -Syyy kanha
๐Ÿ’ข Arch user repository ย 
paru/yay -S kanha-git

๐ŸŒˆ Subcommands

  • โžŠ Status :- Just return the HTTP response code of URLs

    ๐Ÿ‘ป Help ย 
    $ 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
    
    ๐ŸฆŠ Screenshots ย 

    status status-stdin

  • โž‹ fuzz :- Fuzz URLs and return the response codes

    ๐Ÿ‘ป Help ย 
    $ 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
    
    ๐ŸฆŠ Screenshots ย 

    screenshot_2023-10-13_14-08-46 screenshot_2023-10-13_14-07-45

  • โžŒ rdns :- Reverse dns lookup

    ๐Ÿ‘ป Help ย 
    $ 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
    ๐ŸฆŠ Screenshots ย 

    rdns rdns-stdin

  • โž Takeover :- Check possible subdomain takeover

    ๐Ÿ‘ป Help ย 
    $ 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
    
    ๐ŸฆŠ Screenshots ย 

    Takeover single Takeover multiple

    takeover-stdin

  • โžŽ urldencode :- (De|En) code urls

    ๐Ÿ‘ป Help ย 
    $ 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
    
    ๐ŸฆŠ Screenshots ย 

    urldencode urldencode

๐Ÿ‘ Contributing

  • ๐Ÿชถ Recommend a new features
  • โญ Give the project a star
  • ๐ŸŽ Add new subcommand.
  • ๐Ÿง‘โ€๐Ÿš’ Fix docx // improve code quality

๐Ÿ‘€ Also see

  • haylxon :- Blazingly fast tool to grab screenshots of your domain list right from terminal written in rust ๐Ÿฆ€
  • httpx :- httpx is a fast and multi-purpose HTTP toolkit.
  • ffuf :- Fast web fuzzer written in Go

๐Ÿ” License

As always, this project is also licensed under the MIT LICENSE ย 

Copyright ยฉ 2023 pwnwriter xyz โ˜˜๏ธ

More Repositories

1

hysp

๐Ÿ“ฆ An independent package manager that every hacker deserves.
Rust
416
star
2

haylxon

โšก Blazing-fast tool to grab screenshots of your domain list right from terminal.
Rust
398
star
3

pwnvim

๐Ÿ‘พ Neo(vim), the less is more.
Lua
142
star
4

ewm

๐ŸŒท An elegant window manager, that just floats perfectly.
C
52
star
5

nix

๐ŸŽ Procrastinating never felt this productive.
Nix
43
star
6

rustycli

๐Ÿฅ Access the rust playground right in your terminal
Rust
34
star
7

rayso

๐Ÿ’ซ create beautiful code snippets on ray.so
Rust
32
star
8

nixthe.systems

โ„๏ธ Nix The Systems !
HTML
32
star
9

nadwm

// : DWM build the less bloated way.
23
star
10

ebooks

Random pdfs and books which i may need later and forever.
22
star
11

brainfuck

//: A simple brainfuck compiler for x86_64-linux in c.
C
19
star
12

saika

๐Ÿฆ€ Simplest hexdump tool written in rust.
Rust
11
star
13

pwnotes

๐Ÿ”– my random notes
CSS
10
star
14

heliumbar

๐Ÿ’ญ 1s2 โ—‹ A noble, light and aesthetic bar for Wayland // wlroots. [Wip]
Rust
9
star
15

pwnwriter

// README: for my profile
8
star
16

bin

๐Ÿ—‘๏ธ handy scripts
Shell
6
star
17

todo

//: Todo App written in pure bash !
Shell
6
star
18

yanp

๐ŸŽจ๐ŸŒบ Yet another Nerd Font Picker
Shell
6
star
19

x4

๐Ÿ’ญ Execute shell commands to server(s) via ssh protocol
Rust
5
star
20

wood

๐Ÿชตpwn::musings
CSS
5
star
21

starty

โœจ Well & yet clean startpage for your browser
CSS
4
star
22

code2prompt.nvim

โœจ Neovim plugin for mufeedvh/code2prompt
Handlebars
3
star
23

dotfiles

//: my dotfiles for dwm !
C
3
star
24

iyamnabeen.github.io

Personal site
HTML
2
star
25

NARBS

This script will let you install arch from scratch;)
Shell
2
star
26

CVE-2022-22965

๐Ÿš€ Exploit for Spring core RCE in C [ wip ]
C
2
star
27

NabRss

My minimal RSS feed reader written in c []
C
2
star
28

PTN11

My talk on Pentester Nepal's 11th anniversary 'bout nix(os).
Nix
2
star
29

dwm

// dwm supporting xresources
C
1
star
30

cquiz

C
1
star
31

atom_projects

C
1
star
32

name_in_center

i wrote A simple program i.e c program to print name in center.
C
1
star
33

fast

a simple c program to print even numbers starting from 2 to 9 lakhs
C
1
star
34

annniii

loading animatin in css & html
HTML
1
star
35

myDotfiles

C
1
star
36

Iyamnabeen

// README: FOR profile
1
star
37

covidmemorygame

HTML
1
star
38

k1ss

๐Ÿ’‹ PwnWriter's personal kiss repo
Shell
1
star
39

setmykaliup

Shell
1
star