Skip to main content

A python based client for CyberChef API server.

Project description

pymagi

forthebadge made-with-python

Description:

  • pymagi is a python based client for CyberChef API server.
  • pymagi is used to bake cyberchef recipies in python program.

Dependencies:

Recipies:

  • Currently pymagi can handle the following recepies.
- base64 encode/decode 
- morse encode/decode
- base85 encode/decode
- braillie encode/decode
- binary encode/decode
- octal encode/decode
- base32 encode/decode
- base58 encode/decode
- base62 encode/decode
- url encode/decode
- html encode/decode

Usage:

  • Make sure you have python installed on your system.
  • Run the following command.
pip install pymagi
  • Python3
>>> from pymagi import *
>>> a = morseencode("This_is_test")
>>> a
'- .... .. ... ..--.- .. ... ..--.- - . ... -'
>>> morsedecode(a)
'THIS_IS_TEST'

Proof of work:

Watch here

Adding extra recipe:

  • Below code is how the package is formed.
  • You can get recipe from cyberchef to create your own function.
def exmaple(payload):
	connectioncheck()

	data = json.dumps({"input": payload,"recipe":{"op":"From example","args":["A-Za-z0-9+/=",True]},"outputType":"string"})
	API_ENDPOINT = "http://localhost:3000/bake"
	headers_dict = {"Content-Type":"application/json"}

	# #sending post request and saving response as response object
	r = requests.post(url = API_ENDPOINT, headers=headers_dict,data = data)
  
	# # # # extracting response text 
	value_received = json.loads(r.text)

	value = value_received['value']

	return value

Contribution

  • This is an open source project. Any contribution would be greatly appreciated!

Made with Love in India

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pymagi-0.0.4-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file pymagi-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: pymagi-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for pymagi-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 277976eb3ae6bfbc598b055b1bd2ef3732046ee73dc7a74a5e562e92edeebafd
MD5 4f8ff5e3f67f452c2cde0be62a00ca07
BLAKE2b-256 25469209a0b5a1417d6d5bf69a4c01f9087c671e4b3c0ad7655009e81a4bf24e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page