securisec / chepy

Chepy is a python lib/cli equivalent of the awesome CyberChef tool.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom cyberchef URL

geekscrapy opened this issue · comments

Any chance to expose choosing the cyberchef URL? Maybe thought the .conf file?

Also, if "url" could be defined in core.py within ChepyCore.init this would allow us to change the URL at runtime.

I am not sure I fully understand your request. Which url are you referring to? Are you referring to the web method that opens the current state in the browser? docs or something else?

I need to change the URL for cyberchef (so I can use an internally hosted version).

This is the 'url' variable I meant:

url = "https://gchq.github.io/CyberChef/#recipe=From_Hex('None')Magic(3,false,false,'')&input={}".format(
and
url = "https://gchq.github.io/CyberChef/#recipe=From_Hex('None')&input={}".format(

An easy and quick fix to allow modification of this at runtime is to define 'url' in ChepyCore.__init__

Got it. Sure, i will add that for the next release. I will not do it inside init, or in the config file because it is a url that is only used by one function. Instead, I will add it as a method argument with a default value.

@geekscrapy this is now implemented in release 2.1.4

Thanks!
I will say, it might be best to supply it in the config file as it'd be a pain to specify each time as an argument. I use .web frequently from the command line. Just my user case though!
Thanks again!