All Projects → securisec → Chepy

securisec / Chepy

Licence: gpl-3.0
Chepy is a python lib/cli equivalent of the awesome CyberChef tool.

Programming Languages

python
139335 projects - #7 most used programming language
python3
1442 projects

Projects that are alternatives of or similar to Chepy

Probe spider
Probe_Spider is a Open Source Intelligence Tool made complete out of Python.
Stars: ✭ 20 (-93.22%)
Mutual labels:  cli, cybersecurity
Smsbomb
短信💣炸🐔
Stars: ✭ 294 (-0.34%)
Mutual labels:  cli
Kingpin
CONTRIBUTIONS ONLY: A Go (golang) command line and flag parser
Stars: ✭ 3,178 (+977.29%)
Mutual labels:  cli
Sync
syncs your local folder with remote folder using scp
Stars: ✭ 293 (-0.68%)
Mutual labels:  cli
Mutateful
Add-on for Ableton Live that enables live coding functionality fully integrated into Live's session view.
Stars: ✭ 290 (-1.69%)
Mutual labels:  cli
Travis Watch
Stream live travis test results of the current commit to your terminal!
Stars: ✭ 294 (-0.34%)
Mutual labels:  cli
Consola
Elegant Console Logger for Node.js and Browser 🐨
Stars: ✭ 3,461 (+1073.22%)
Mutual labels:  cli
Trubka
A CLI tool for Kafka
Stars: ✭ 296 (+0.34%)
Mutual labels:  cli
Aws Gate
Better AWS SSM Session manager CLI client
Stars: ✭ 294 (-0.34%)
Mutual labels:  cli
Cli
✨ A powerful CLI for the Create Go App project. Create a new production-ready project with backend, frontend and deploy automation by running one CLI command!
Stars: ✭ 292 (-1.02%)
Mutual labels:  cli
Git Delete Merged Branches
Command-line tool to delete merged Git branches
Stars: ✭ 293 (-0.68%)
Mutual labels:  cli
Docopt.php
Command line argument parser
Stars: ✭ 291 (-1.36%)
Mutual labels:  cli
Sentences
A multilingual command line sentence tokenizer in Golang
Stars: ✭ 293 (-0.68%)
Mutual labels:  cli
Diff2html Cli
Pretty diff to html javascript cli (diff2html-cli)
Stars: ✭ 287 (-2.71%)
Mutual labels:  cli
Argparse
Argparse for golang. Just because `flag` sucks
Stars: ✭ 294 (-0.34%)
Mutual labels:  cli
Vue Cli Plugin Electron Builder
Easily Build Your Vue.js App For Desktop With Electron
Stars: ✭ 3,549 (+1103.05%)
Mutual labels:  cli
Crudini
A utility for manipulating ini files
Stars: ✭ 292 (-1.02%)
Mutual labels:  cli
Tmuxp
💻 tmux session manager. built on libtmux
Stars: ✭ 3,269 (+1008.14%)
Mutual labels:  cli
Ghb0t
A GitHub Bot to automatically delete your fork's branches after a pull request has been merged.
Stars: ✭ 295 (+0%)
Mutual labels:  cli
Mech
Easy command line virtual machines for VMWare
Stars: ✭ 294 (-0.34%)
Mutual labels:  cli

Chepy

Solving a CTF with Chepy

Chepy is a python library with a handy cli that is aimed to mirror some of the capabilities of CyberChef. A reasonable amount of effort was put behind Chepy to make it compatible to the various functionalities that CyberChef offers, all in a pure Pythonic manner. There are some key advantages and disadvantages that Chepy has over Cyberchef. The Cyberchef concept of stacking different modules is kept alive in Chepy.

There is still a long way to go for Chepy as it does not offer every single ability of Cyberchef.

Feel free to give the project a ⭐️!

Docs

Refer to the docs for full usage information

Example

For all usage and examples, see the docs.

Chepy has a stacking mechanism similar to Cyberchef. For example, this in Cyberchef:

This is equivalent to

from chepy import Chepy

file_path = "/tmp/demo/encoding"

print(
    Chepy(file_path)
    .load_file()
    .reverse()
    .rot_13()
    .base64_decode()
    .base32_decode()
    .hexdump_to_str()
    .o
)

Chepy vs Cyberchef

Advantages

  • Chepy is pure python with a supporting and accessible python api
  • Chepy has a CLI
  • Chepy CLI has full autocompletion.
  • Supports pe, elf, and other various file format specific parsing.
  • Extendable via plugins
  • Infinitely scalable as it can leverage the full Python library.
  • Chepy can interface with the full Cyberchef web app to a certain degree. It is easy to move from Chepy to Cyberchef if need be.
  • The Chepy python library is significantly faster than the Cyberchef Node library.
  • Works with HTTP/S requests without CORS issues.

Disadvantages

  • Chepy is not a web app (at least for now).
  • Chepy does not offer every single thing that Cyberchef does
  • Chepy does not have the magic method (at the moment)

Installation

Chepy can be installed in a few ways.

Pypi

pip3 install chepy
# optionally with extra requirements
pip3 install chepy[extras]

Git

git clone --recursive https://github.com/securisec/chepy.git
cd chepy
pip3 install -e .
# I use -e here so that if I update later with git pull, I dont have it install it again (unless dependencies have changed)

Docker

docker run --rm -ti -v $PWD:/data securisec/chepy "some string" [somefile, "another string"]

Standalone binary

One can build Chepy to be a standalone binary also. This includes packaging all the dependencies together.

git clone https://github.com/securisec/chepy.git
cd chepy
pip install .
pip install pyinstaller
pyinstaller cli.py --name chepy --onefile

The binary will be in the dist/ folder.

Plugins

Check here for plugins docs

Used by

Remnux linux

.. toctree::
   :maxdepth: 3
   :caption: Contents:

   usage.md
   examples.md
   cli.rst
   chepy.md
   core.md
   modules.rst
   extras.rst
   plugins.md
   pullrequest.md
   config.md
   faq.md


Indices and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].