mirror of
				https://github.com/telekom-security/tpotce.git
				synced 2025-10-30 20:12:53 +00:00 
			
		
		
		
	add cyberchef as tool
This commit is contained in:
		
							parent
							
								
									3516520d2d
								
							
						
					
					
						commit
						d91714cdf2
					
				
					 4 changed files with 61 additions and 0 deletions
				
			
		
							
								
								
									
										36
									
								
								docker/cyberchef/Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								docker/cyberchef/Dockerfile
									
									
									
									
									
										Normal 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"] | ||||||
							
								
								
									
										18
									
								
								docker/cyberchef/docker-compose.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								docker/cyberchef/docker-compose.yml
									
									
									
									
									
										Normal 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 | ||||||
							
								
								
									
										6
									
								
								docker/nginx/dist/conf/tpotweb.conf
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								docker/nginx/dist/conf/tpotweb.conf
									
									
									
									
										vendored
									
									
								
							|  | @ -106,6 +106,12 @@ server { | ||||||
|         rewrite /myhead/(.*)$ /$1 break; |         rewrite /myhead/(.*)$ /$1 break; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  |     ### CyberChef | ||||||
|  |     location /cyberchef { | ||||||
|  |         proxy_pass http://127.0.0.1:64299; | ||||||
|  |         rewrite ^/cyberchef(.*)$ /$1 break; | ||||||
|  |     } | ||||||
|  | 
 | ||||||
|     ### spiderfoot |     ### spiderfoot | ||||||
|     location /spiderfoot { |     location /spiderfoot { | ||||||
|         proxy_pass http://127.0.0.1:64303; |         proxy_pass http://127.0.0.1:64303; | ||||||
|  |  | ||||||
							
								
								
									
										1
									
								
								docker/nginx/dist/html/navbar.html
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								docker/nginx/dist/html/navbar.html
									
									
									
									
										vendored
									
									
								
							|  | @ -13,6 +13,7 @@ | ||||||
|       <script language="JavaScript"> |       <script language="JavaScript"> | ||||||
|         document.write('<a href="' + window.location.protocol + '//' + window.location.hostname + ':64294' + '" target="_blank" class="btn">Cockpit</a> ' ); |         document.write('<a href="' + window.location.protocol + '//' + window.location.hostname + ':64294' + '" target="_blank" class="btn">Cockpit</a> ' ); | ||||||
|       </script> |       </script> | ||||||
|  |       <a href="/cyberchef/" target="main" class="btn">CyberChef</a> | ||||||
|       <a href="/myhead/" target="main" class="btn">ES Head</a> |       <a href="/myhead/" target="main" class="btn">ES Head</a> | ||||||
|       <a href="/kibana" target="main" class="btn">Kibana</a> |       <a href="/kibana" target="main" class="btn">Kibana</a> | ||||||
|       <a href="/spiderfoot/" target="main" class="btn">Spiderfoot</a> |       <a href="/spiderfoot/" target="main" class="btn">Spiderfoot</a> | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 listbot
						listbot