add cyberchef as tool

This commit is contained in:
listbot 2018-07-12 09:03:33 +00:00
parent 3516520d2d
commit d91714cdf2
4 changed files with 61 additions and 0 deletions

View file

@ -0,0 +1,36 @@
FROM alpine
# Get and install dependencies & packages
RUN apk -U --no-cache add \
curl \
git \
npm \
nodejs && \
npm install -g grunt-cli && \
npm install -g http-server && \
npm install npm@latest -g && \
# Install CyberChef
cd /root && \
git clone https://github.com/gchq/cyberchef -b v7.11.1 --depth=1 && \
chown -R nobody:nobody cyberchef && \
cd cyberchef && \
npm install && \
grunt prod && \
mkdir -p /opt/cyberchef && \
mv build/prod/* /opt/cyberchef && \
cd / && \
# Clean up
apk del --purge git \
npm && \
rm -rf /root/* && \
rm -rf /var/cache/apk/*
# Healthcheck
HEALTHCHECK --retries=10 CMD curl -s -XGET 'http://127.0.0.1:8000'
# Set user, workdir and start spiderfoot
USER nobody:nobody
WORKDIR /opt/cyberchef
CMD ["http-server", "-p", "8000"]

View file

@ -0,0 +1,18 @@
version: '2.3'
networks:
cyberchef_local:
services:
# Cyberchef service
cyberchef:
build: .
container_name: cyberchef
restart: always
networks:
- cyberchef_local
ports:
- "127.0.0.1:64299:8000"
image: "dtagdevsec/cyberchef:1804"
read_only: true

View file

@ -106,6 +106,12 @@ server {
rewrite /myhead/(.*)$ /$1 break;
}
### CyberChef
location /cyberchef {
proxy_pass http://127.0.0.1:64299;
rewrite ^/cyberchef(.*)$ /$1 break;
}
### spiderfoot
location /spiderfoot {
proxy_pass http://127.0.0.1:64303;

View file

@ -13,6 +13,7 @@
<script language="JavaScript">
document.write('<a href="' + window.location.protocol + '//' + window.location.hostname + ':64294' + '" target="_blank" class="btn">Cockpit</a> ' );
</script>
<a href="/cyberchef/" target="main" class="btn">CyberChef</a>
<a href="/myhead/" target="main" class="btn">ES Head</a>
<a href="/kibana" target="main" class="btn">Kibana</a>
<a href="/spiderfoot/" target="main" class="btn">Spiderfoot</a>