| 
									
										
										
										
											2024-11-14 15:23:06 +00:00
										 |  |  | FROM alpine:3.20 AS builder | 
					
						
							| 
									
										
										
										
											2019-08-28 12:46:19 +00:00
										 |  |  | # | 
					
						
							|  |  |  | # Include dist | 
					
						
							| 
									
										
										
										
											2022-03-05 00:50:47 +00:00
										 |  |  | COPY dist/ /root/dist/ | 
					
						
							| 
									
										
										
										
											2019-08-28 12:46:19 +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-14 15:23:06 +00:00
										 |  |  | 		build-base \ | 
					
						
							| 
									
										
										
										
											2024-02-28 18:07:22 +00:00
										 |  |  | 		git \ | 
					
						
							|  |  |  | 		procps \ | 
					
						
							|  |  |  | 		py3-psutil \ | 
					
						
							|  |  |  | 		py3-requests \ | 
					
						
							| 
									
										
										
										
											2024-11-19 14:10:57 +00:00
										 |  |  | 		py3-pip \ | 
					
						
							| 
									
										
										
										
											2024-02-28 18:07:22 +00:00
										 |  |  | 		python3 && \ | 
					
						
							| 
									
										
										
										
											2024-11-19 14:10:57 +00:00
										 |  |  | 		pip3 install --break-system-packages pyinstaller && \ | 
					
						
							| 
									
										
										
										
											2019-08-28 12:46:19 +00:00
										 |  |  | # | 
					
						
							| 
									
										
										
										
											2018-12-05 16:59:08 +00:00
										 |  |  | # Install adbhoney from git | 
					
						
							| 
									
										
										
										
											2024-11-22 12:00:09 +00:00
										 |  |  |     git clone https://github.com/t3chn0m4g3/ADBHoney /opt/adbhoney && \ | 
					
						
							| 
									
										
										
										
											2020-09-02 15:18:32 +00:00
										 |  |  |     cd /opt/adbhoney && \ | 
					
						
							| 
									
										
										
										
											2024-12-05 20:12:18 +00:00
										 |  |  | 	git checkout 42a73cd8a82ddd4d137de70ac37b1a8b2e3e0119 && \ | 
					
						
							| 
									
										
										
										
											2019-08-28 12:46:19 +00:00
										 |  |  |     cp /root/dist/adbhoney.cfg /opt/adbhoney && \ | 
					
						
							|  |  |  |     sed -i 's/dst_ip/dest_ip/' /opt/adbhoney/adbhoney/core.py && \ | 
					
						
							|  |  |  |     sed -i 's/dst_port/dest_port/' /opt/adbhoney/adbhoney/core.py && \ | 
					
						
							| 
									
										
										
										
											2024-11-14 15:23:06 +00:00
										 |  |  |     pyinstaller adbhoney.spec | 
					
						
							| 
									
										
										
										
											2019-08-28 12:46:19 +00:00
										 |  |  | # | 
					
						
							| 
									
										
										
										
											2024-11-14 15:23:06 +00:00
										 |  |  | FROM alpine:3.20 | 
					
						
							| 
									
										
										
										
											2024-12-05 20:12:18 +00:00
										 |  |  | RUN apk --no-cache -U upgrade | 
					
						
							| 
									
										
										
										
											2024-11-14 15:23:06 +00:00
										 |  |  | COPY --from=builder /opt/adbhoney/dist/adbhoney/ /opt/adbhoney/ | 
					
						
							| 
									
										
										
										
											2019-08-28 12:46:19 +00:00
										 |  |  | # | 
					
						
							| 
									
										
										
										
											2018-12-05 16:59:08 +00:00
										 |  |  | # Set workdir and start adbhoney | 
					
						
							|  |  |  | STOPSIGNAL SIGINT | 
					
						
							| 
									
										
										
										
											2024-11-14 15:23:06 +00:00
										 |  |  | USER 2000:2000 | 
					
						
							| 
									
										
										
										
											2018-12-05 16:59:08 +00:00
										 |  |  | WORKDIR /opt/adbhoney/ | 
					
						
							| 
									
										
										
										
											2024-11-14 15:23:06 +00:00
										 |  |  | CMD ["./adbhoney"] |