moved sep to own repo for autobuilds

This commit is contained in:
tke
2019-05-21 17:34:47 +02:00
parent b8f653b8b9
commit 723342ab7f
4 changed files with 0 additions and 80 deletions

View File

@@ -1,7 +0,0 @@
#!/bin/bash
docker build --no-cache -t tabledevil/sep:latest -f sep_dev.dockerfile .
tag=$( docker run -it tabledevil/sep:latest tag )
echo "NEW TAG : ${tag}"
docker tag tabledevil/sep tabledevil/sep:${tag}
docker push "tabledevil/sep:${tag}"
docker push "tabledevil/sep:latest"

View File

@@ -1,20 +0,0 @@
service rtvscand start
echo "Starting Liveupdate"
sav liveupdate -u
echo "Done with Liveupdate"
echo "Changing Config for Manualscan"
key='\Symantec Endpoint Protection\AV\LocalScans\ManualScan'
cmd='/opt/Symantec/symantec_antivirus/symcfg'
#Setting AntivirusAction to just
${cmd} add -k "${key}" -v FirstAction -d 0 -t 'REG_DWORD'
${cmd} add -k "${key}" -v FirstMacroAction -d 0 -t 'REG_DWORD'
${cmd} add -k "${key}" -v Checksum -d 1 -t 'REG_DWORD'
while ! (sav info -d | grep -Pq '^\d') ; do
sleep 1
done
#writing DefinitionVersion to file in TAGFORMAT
sav info -d | tr -d '\r\n' | sed -e 's/rev./_/' -e 's/ //g' -e 's|/|.|g' -e 's/\([0-9]\{2\}\).\([0-9]\{2\}\).\([0-9]\{2\}\)/\2.\1.\3/g' | tee /root/tag
service rtvscand stop
sleep 5

View File

@@ -1,12 +0,0 @@
FROM tabledevil/sep:base
LABEL maintainer="tabledevil"
LABEL docker.cmd="docker run -it --rm -v /mnt/sdc1:/data sep"
ADD start.sh /root/start.sh
RUN chmod +x /root/start.sh
ENTRYPOINT ["/root/start.sh"]
CMD ["shell"]
#RUN wget ftp://ftp.symantec.com/AVDEFS/symantec_antivirus_corp/static/symcdefs-core15unix.sh && chmod +x symcdefs-core15unix.sh && ./symcdefs-core15unix.sh && rm ./symcdefs-core15unix.sh
ADD config.sh /root/config.sh
RUN chmod +x /root/config.sh ; /root/config.sh

View File

@@ -1,41 +0,0 @@
#!/bin/bash
case "${1}" in
shell )
echo "stage: ${1}"
service rtvscand start
echo "Usage:"
echo "sav manualscan -c <file>"
/bin/bash
;;
version )
echo "stage: ${1}"
service rtvscand start
sleep 5
sep_dev=$(sav info -d | tr -d '\r\n')
sep_vers=$(sav info -p | tr -d '\r\n' )
docker_tag=$(echo -n "${sep_dev}" | sed -e 's/rev./_/' -e 's/ //g' -e 's|/|.|g' -e 's/\([0-9]\{2\}\).\([0-9]\{2\}\).\([0-9]\{2\}\)/\2.\1.\3/g' )
kernel_vers=$(uname -r)
os_vers=$(head /etc/issue)
echo "OS version: ${os_vers}"
echo "Kernelversion: ${kernel_vers}"
echo "Virusdefinition: ${sep_dev}"
echo "Productversion: ${sep_vers}"
echo "Dockertag: ${docker_tag}"
echo "Java Version:"
java -version
;;
scan )
echo "stage: ${1}"
service rtvscand start
sleep 5
sav manualscan -c /data
;;
tag )
cat /root/tag
;;
debug )
echo "stage: ${1}"
/bin/bash
;;
esac