Skip to content
Snippets Groups Projects
Commit 3d17b7fe authored by Nadin El-Yabroudi's avatar Nadin El-Yabroudi
Browse files

Merge

parents 804a5ae4 20e3b596
No related branches found
No related tags found
No related merge requests found
FROM python:3.5-alpine
RUN apk add nmap nmap-scripts git
RUN apk add --no-cache nmap nmap-scripts git
RUN pip install xmltodict google-cloud-storage boto3
RUN pip install --no-cache-dir xmltodict google-cloud-storage boto3
RUN git clone https://github.com/vulnersCom/nmap-vulners /usr/share/nmap/scripts/vulners && nmap --script-updatedb
RUN mkdir /shared
......
apiVersion: apps/v1
kind: Deployment
metadata:
name: flan-scan-deployment
name: flan-scan-deployment
labels:
app: flan-scan
spec:
......@@ -29,7 +29,7 @@ spec:
- name: cloud-key
mountPath: /var/secrets/google
- name: shared-files
mountPath: /shared
mountPath: /shared
env:
- name: upload
value: <GCP_OR_AWS>
......
......@@ -39,7 +39,7 @@ do
upload $xml_dir/$filename
done < /shared/ips.txt
python /output_report.py $root_dir$xml_dir $root_dir$report_file /shared/ips.txt
python /output_report.py $root_dir$xml_dir $root_dir$report_file /shared/ips.txt
sed -i 's/_/\\_/g' $root_dir$report_file
sed -i 's/\$/\\\$/g' $root_dir$report_file
sed -i 's/#/\\#/g' $root_dir$report_file
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment