MCPcopy Index your code
hub / github.com/TarlogicSecurity/Chankro

github.com/TarlogicSecurity/Chankro @v0.4

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.4 ↗ · + Follow
3 symbols 8 edges 2 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Chankro

Your favourite tool to bypass disable_functions and open_basedir in your pentests.

How it works

PHP in Linux calls a binary (sendmail) when the mail() function is executed. If we have putenv() allowed, we can set the enviroment variable "LD_PRELOAD", so we can preload an arbitrary shared object. Our shared object will execute our custom payload (a binary or a bash script) without the PHP restrictions, so we can have a reverse shell, for example.

Example:

The syntax is pretty straightforward:

$ python2 chankro.py --arch 64 --input rev.sh --output chan.php --path /var/www/html

Note: path is the absolute path where our .so will be dropped.

Install

Git

$ git clone https://github.com/TarlogicSecurity/Chankro.git
$ cd Chankro
$ python2 chankro.py --help

BlackArch

# pacman -S chankro
$ chankro --help

Core symbols most depended-on inside this repo

pwn
called by 1
hook.c
daemonize
called by 1
hook.c
preloadme
called by 0
hook.c

Shape

Function 3

Languages

C100%

Modules by API surface

hook.c3 symbols

For agents

$ claude mcp add Chankro \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact