ShenCode Custom Modules

Description

A little guide to develop custom shencode modules.

Steps to reproduce

Prepare example module

  • copy module.py from examples to modules directory
  • rename it to something like power.py

Commands

Now, you will find a new category named example in ShenCode. The following arguments are included:

shencode.py example power [-h] [-b BASE] [-e EXPONENT] [-v]

options:
  -h, --help      show this help message and exit
  -b, --base      the base
  -e, --exponent  the exponent
  -v, --verbose   verbose output

Test around and check the source of power.py!

Example

shencode.py example power -b 8 -e 4

[CALC-POWER]-[1.0.0]

[+] The result equals 4096

shencode.py example power -b 8 -e 4 -v

[CALC-POWER]-[1.0.0]

[+] The base of 8 raised to the exponent of 4 results in the power value 4096