View difference between Paste ID: bjB6dxdk and QJbWdAF1
SHOW: | | - or go back to the newest paste.
1-
screen find / -type f -size -128M -size +0c -exec sh -c 'curl --progress-bar -F file="@{}" https://www.virustotal.com/en/file/upload/ -L | grep -E '"'detection-ratio|href.*analysis' | sed -e '"'s/.*href="\([^"]*\)".*/https:\/\/www.virustotal.com\1/'"' | sed -e 's/.*> \([0-9]*\)\/.*/\1 detections/' | while read line; do echo "'"$line - {}"'"; done | tee -a /var/log/virustotal.log" \;
1+
# This script was created because I am not happy with any standalone anti-virus software for *nix. It uses virustotal to scan files with multiple antivirus softwares
2
#
3
#The following command uploads every file that is less than 128MB and greater than 0B in size to virustotal. The command is run with sudo in a detached screen, and everything is logged to /var/log/virustotal.log
4
sudo screen -m -d find / -type f -size -128M -size +0c -exec sh -c 'curl --progress-bar -F file="@{}" https://www.virustotal.com/en/file/upload/ -L | grep -E '"'detection-ratio|href.*analysis' | sed -e '"'s/.*href="\([^"]*\)".*/https:\/\/www.virustotal.com\1/'"' | sed -e 's/.*> \([0-9]*\)\/.*/\1 detections/' | while read line; do echo "'"$line - {}"'"; done | tee -a /var/log/virustotal.log" \;
5
#The following command lists all detections that are currently listed in /var/log/virustotal.log
6
grep -A1 '^[1-9]' /var/log/virustotal.log