Skip to content
Jaswinder Singh edited this page Feb 11, 2017 · 1 revision

Welcome to the CyberChef wiki!

Just refer this GCHQ CyberChef to get started.I would like to share some of the issues you would face while doing so and how you would run this app using grunt build.

prerequisite:

Node version: 7.4.0 Check your node version using node -v How to update node version:- sudo npm cache clean -f sudo npm install -g n sudo n stable -- n@2.1.4 sudo ln -sf /usr/local/n/versions/node/2.1.4/bin/node /usr/bin/node

Now check the node version again,it will be 2.1.4.

npm version: 4.2.0

Note: if you don't have the above versions of node and npm ,you may face errors like eslint package errors: SyntaxError: Use of const in strict mode or warnings of incompatible versions npm WARN npm npm does not support Node.js v0.10.25.

Once you have a successful build of prod using grunt prod

/apps/CyberChef$ grunt prod Running "eslint:gruntfile" (eslint) task

Running "eslint:core" (eslint) task

Running "eslint:config" (eslint) task

Running "eslint:views" (eslint) task

Running "eslint:operations" (eslint) task

Running "exec:stats" (exec) task

Running "clean:dev" (clean) task

4 paths cleaned.

Running "clean:prod" (clean) task

5 paths cleaned.

Running "clean:docs" (clean) task

122 paths cleaned.

Running "jsdoc:all" (jsdoc) task

Documentation generated to /home/jazz-2016/apps/CyberChef/docs

Running "concat:css" (concat) task

Running "concat:js" (concat) task

Running "copy:htmlDev" (copy) task Copied 1 file

Running "copy:htmlProd" (copy) task Copied 1 file

Running "copy:htmlInline" (copy) task Copied 1 file

Running "copy:staticDev" (copy) task Created 1 directory, copied 43 files

Running "copy:staticProd" (copy) task Created 1 directory, copied 43 files

Running "cssmin:prod" (cssmin) task

1 file created. 198.09 kB → 161.78 kB

Running "uglify:prod" (uglify) task

1 file created.

Running "inline:compiled" (inline) task Processing build/prod/cyberchef.htm... OK

Running "inline:prod" (inline) task Processing build/prod/index.html... OK

Running "htmlmin:prod" (htmlmin) task Minified 1 files

Running "htmlmin:inline" (htmlmin) task Minified 1 files

Running "chmod:build" (chmod) task

98 files had their chmod mode set to "755".

Running "chmod:docs" (chmod) task

165 files had their chmod mode set to "755".

Done.

Install a node module for http-server under the repo path(/CyberChef) to run this app:

sudo npm install -g http-server

logs: /apps/CyberChef$ sudo npm install -g http-server /usr/local/bin/http-server -> /usr/local/lib/node_modules/http-server/bin/http-server /usr/local/bin/hs -> /usr/local/lib/node_modules/http-server/bin/http-server /usr/local/lib -- http-server@0.9.0 +-- colors@1.0.3 +-- corser@2.0.1 +-- ecstatic@1.4.1 | +-- he@0.5.0 | +-- mime@1.3.4 | +-- minimist@1.2.0 | -- url-join@1.1.0 +-- http-proxy@1.16.2 | +-- eventemitter3@1.2.0 | -- requires-port@1.0.0 +-- opener@1.4.2 +-- optimist@0.6.1 | +-- minimist@0.0.10 | -- wordwrap@0.0.3 +-- portfinder@0.4.0 | +-- async@0.9.0 | -- mkdirp@0.5.1 | -- minimist@0.0.8 -- union@0.4.6 -- qs@2.3.3

Now go to the prod build path (/CyberChef/build/prod) and run the server as:

http-server -p 8000

logs:

~/apps/CyberChef/build/prod$ http-server -p 8000 Starting up http-server, serving ./ Available on: http://127.0.0.1:8000 http://192.168.43.246:8000 http://172.17.0.1:8000 Hit CTRL-C to stop the server

open browser to look for http://192.168.43.246:8000/

Clone this wiki locally