Skip to content

Commit

Permalink
fix yq, ad subfinder, fix perms and owner for downloaded binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanq16 authored Dec 25, 2023
1 parent f8f1c8a commit 3dd981d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion security_docker_main/builder.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,16 @@ RUN mkdir /testingground && cd /testingground && \
mv ffuf /executables && cd .. && rm -rf testingground
RUN mkdir /testingground && cd /testingground && \
a=$(curl -s https://api.github.com/repos/mikefarah/yq/releases/latest | grep -E "browser_download_url.*" | grep -i "linux" | grep -i "amd64" | grep -v "tar.gz" | cut -d '"' -f4) && \
wget "$a" && mv yq_linux_amd64 /executables/yq && cd .. && rm -rf testingground
wget "$a" && chmod +x && \
mv yq_linux_amd64 /executables/yq && cd .. && rm -rf testingground
RUN mkdir /testingground && cd /testingground && \
a=$(curl -s https://api.github.com/repos/fullstorydev/grpcurl/releases/latest | grep -E "browser_download_url.*" | grep -i "linux" | grep -i "x86_64" | cut -d '"' -f4) && \
wget "$a" -O test.tar.gz && tar -xzf test.tar.gz && \
mv grpcurl /executables && cd .. && rm -rf testingground
RUN mkdir /testingground && cd /testingground && \
a=$(curl -s https://api.github.com/repos/projectdiscovery/subfinder/releases/latest | grep -E "browser_download_url.*" | grep -i "linux" | grep -i "amd64" | cut -d '"' -f4) && \
wget "$a" -O test.zip && unzip test.zip && \
mv subfinder /executables && cd .. && rm -rf testingground
RUN mkdir /testingground && cd /testingground && \
a=$(curl -s https://api.github.com/repos/projectdiscovery/naabu/releases/latest | grep -E "browser_download_url.*" | grep -i "linux" | grep -i "amd64" | cut -d '"' -f4) && \
wget "$a" -O test.zip && unzip test.zip && \
Expand Down Expand Up @@ -113,6 +118,7 @@ RUN mkdir /testingground && cd /testingground && \
a=$(curl -s https://api.github.com/repos/aquasecurity/trivy/releases/latest | grep -E "browser_download_url.*" | grep -i "linux" | grep -i "64bit" | grep -i "tar.gz" | grep -vE "sig|pem" | cut -d '"' -f4) && \
wget "$a" -O test.tar.gz && tar -xzf test.tar.gz && \
mv trivy /executables && cd .. && rm -rf testingground
RUN chown -R root:root /opt/executables && chmod 755 /opt/executables/*

FROM golang AS go_builder
RUN mkdir /executables
Expand Down

0 comments on commit 3dd981d

Please sign in to comment.