Added: Cyberchef
This commit is contained in:
1 parent
376255e15d
commit
b877098a01
7 files changed
+92
No files matched your search
@@ -0,0 +1,19 @@
|
||||
server {
|
||||
|
||||
listen 80;
|
||||
server_name {{ http_host }};
|
||||
|
||||
# Allow large attachments
|
||||
client_max_body_size 525M;
|
||||
|
||||
location / {
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
|
||||
proxy_pass http://localhost:{{ host_port }};;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#################################################
|
||||
# Bitwarden Playbook
|
||||
#################################################
|
||||
---
|
||||
- hosts: gondor
|
||||
become: true
|
||||
vars_files:
|
||||
- vars/default.yml
|
||||
|
||||
roles:
|
||||
- cyberchef
|
||||
- nginx
|
||||
@@ -0,0 +1,7 @@
|
||||
*The Cyber Swiss Army Knife*
|
||||
|
||||
CyberChef is a simple, intuitive web app for carrying out all manner of "cyber" operations within a web browser. These operations include simple encoding like XOR and Base64, more complex encryption like AES, DES and Blowfish, creating binary and hexdumps, compression and decompression of data, calculating hashes and checksums, IPv6 and X.509 parsing, changing character encodings, and much more.
|
||||
|
||||
The tool is designed to enable both technical and non-technical analysts to manipulate data in complex ways without having to deal with complex tools or algorithms. It was conceived, designed, built and incrementally improved by an analyst in their 10% innovation time over several years.
|
||||
|
||||
https://github.com/gchq/CyberChef
|
||||
@@ -0,0 +1,16 @@
|
||||
---
|
||||
# Tasks for CyberChef role
|
||||
- name: Pull CyberChef image
|
||||
docker_image:
|
||||
name: "{{ image }}"
|
||||
source: pull
|
||||
force_source: yes
|
||||
|
||||
- name: Create CyberChef container
|
||||
docker_container:
|
||||
name: "{{ container }}"
|
||||
image: "{{ image }}"
|
||||
state: started
|
||||
restart_policy: "unless-stopped"
|
||||
published_ports:
|
||||
- "127.0.0.1:{{ host_port }}:80"
|
||||
@@ -0,0 +1,6 @@
|
||||
---
|
||||
# Handlers for Nginx role
|
||||
- name: Reload Nginx
|
||||
service:
|
||||
name: nginx
|
||||
state: reloaded
|
||||
@@ -0,0 +1,24 @@
|
||||
---
|
||||
# Tasks for Nginx role
|
||||
- name: Check if Nginx conf file exists
|
||||
stat:
|
||||
path: "/etc/nginx/sites-available/{{ http_conf }}"
|
||||
register: status
|
||||
|
||||
- name: No need to reload Nginx
|
||||
debug:
|
||||
msg: "No need to reload Nginx as sites-available entries have already been created"
|
||||
|
||||
- name: Set Nginx conf file
|
||||
when: status.stat.exists == false
|
||||
template:
|
||||
src: "files/nginx.conf.j2"
|
||||
dest: "/etc/nginx/sites-available/{{ http_conf }}"
|
||||
|
||||
- name: Enable new site
|
||||
when: status.stat.exists == false
|
||||
file:
|
||||
src: "/etc/nginx/sites-available/{{ http_conf }}"
|
||||
dest: "/etc/nginx/sites-enabled/{{ http_conf }}"
|
||||
state: link
|
||||
notify: Reload Nginx
|
||||
@@ -0,0 +1,8 @@
|
||||
---
|
||||
http_host: "cyberchef.tanshu.com"
|
||||
http_conf: "cyberchef.tanshu.com.conf"
|
||||
|
||||
container: cyberchef
|
||||
image: ghcr.io/gchq/cyberchef:latest
|
||||
|
||||
host_port: 8003
|
||||
Reference in new issue
Block a user