| 
									
										
										
										
											2024-11-19 13:38:00 +00:00
										 |  |  | FROM alpine:3.20 AS builder | 
					
						
							| 
									
										
										
										
											2019-08-28 13:59:41 +00:00
										 |  |  | # | 
					
						
							| 
									
										
										
										
											2024-09-11 10:42:17 +00:00
										 |  |  | # Install packages | 
					
						
							| 
									
										
										
										
											2024-12-05 20:12:18 +00:00
										 |  |  | RUN apk --no-cache -U upgrade && \ | 
					
						
							|  |  |  | 	apk --no-cache -U add \ | 
					
						
							| 
									
										
										
										
											2024-11-26 10:49:31 +00:00
										 |  |  | 		build-base \ | 
					
						
							| 
									
										
										
										
											2024-02-28 18:07:22 +00:00
										 |  |  | 		git \ | 
					
						
							|  |  |  | 		libffi \ | 
					
						
							|  |  |  | 		libffi-dev \ | 
					
						
							|  |  |  | 		openssl \ | 
					
						
							|  |  |  | 		openssl-dev \ | 
					
						
							|  |  |  | 		py3-pip \ | 
					
						
							|  |  |  | 		python3 \ | 
					
						
							|  |  |  | 		python3-dev && \ | 
					
						
							| 
									
										
										
										
											2019-08-28 13:59:41 +00:00
										 |  |  | # | 
					
						
							| 
									
										
										
										
											2018-02-20 17:40:34 +00:00
										 |  |  | # Get and install packages | 
					
						
							| 
									
										
										
										
											2024-11-26 10:49:31 +00:00
										 |  |  | 	mkdir -p /opt/ && \ | 
					
						
							| 
									
										
										
										
											2018-02-20 17:40:34 +00:00
										 |  |  |     cd /opt/ && \ | 
					
						
							| 
									
										
										
										
											2024-11-19 13:38:00 +00:00
										 |  |  |     git clone https://github.com/t3chn0m4g3/ciscoasa_honeypot && \ | 
					
						
							| 
									
										
										
										
											2018-02-20 17:40:34 +00:00
										 |  |  |     cd ciscoasa_honeypot && \ | 
					
						
							| 
									
										
										
										
											2024-12-05 20:12:18 +00:00
										 |  |  | 	git checkout 4bd2795cfa14320a87c00b7159fa3b7d6a8ba254 && \ | 
					
						
							| 
									
										
										
										
											2022-03-24 17:54:56 +00:00
										 |  |  |     sed -i "s/git+git/git+https/g" requirements.txt && \ | 
					
						
							| 
									
										
										
										
											2024-11-19 13:38:00 +00:00
										 |  |  |     pip3 install --break-system-packages pyinstaller && \ | 
					
						
							|  |  |  |     pip3 install --break-system-packages --no-cache-dir -r requirements.txt | 
					
						
							|  |  |  | WORKDIR /opt/ciscoasa_honeypot | 
					
						
							|  |  |  | RUN pyinstaller asa_server.py --add-data "./asa:./asa" | 
					
						
							| 
									
										
										
										
											2019-08-28 13:59:41 +00:00
										 |  |  | # | 
					
						
							| 
									
										
										
										
											2024-11-19 13:38:00 +00:00
										 |  |  | FROM alpine:3.20 | 
					
						
							| 
									
										
										
										
											2024-12-05 20:12:18 +00:00
										 |  |  | RUN apk --no-cache -U upgrade | 
					
						
							| 
									
										
										
										
											2024-11-19 13:38:00 +00:00
										 |  |  | COPY --from=builder /opt/ciscoasa_honeypot/dist/ /opt/ | 
					
						
							| 
									
										
										
										
											2019-08-28 13:59:41 +00:00
										 |  |  | # | 
					
						
							| 
									
										
										
										
											2018-05-04 16:29:55 +00:00
										 |  |  | # Start ciscoasa | 
					
						
							| 
									
										
										
										
											2018-09-11 12:19:26 +00:00
										 |  |  | STOPSIGNAL SIGINT | 
					
						
							| 
									
										
										
										
											2024-11-19 13:38:00 +00:00
										 |  |  | WORKDIR /opt/asa_server/ | 
					
						
							|  |  |  | USER 2000:2000 | 
					
						
							|  |  |  | CMD ./asa_server --ike-port 5000 --enable_ssl --port 8443 --verbose >> /var/log/ciscoasa/ciscoasa.log 2>&1 |