mirror of
https://github.com/MaintainTeam/Hypatia.git
synced 2025-02-28 21:38:21 +03:00
18 lines
986 B
Bash
18 lines
986 B
Bash
#!/bin/sh
|
|
#License: CC0
|
|
|
|
rm production/index.html
|
|
cp template.html production/index.html
|
|
echo "<pre>" >> production/index.html
|
|
sed -i "s/\[DATE\]/$(date -u)/" production/index.html
|
|
java -jar HypatiaDatabaseConverter-0.1__.jar raw/ >> production/index.html
|
|
echo "</pre>" >> production/index.html
|
|
cat extended.html >> production/index.html
|
|
mv raw/hypatia-*-bloom.bin production/
|
|
|
|
sed -s 'N;/md5: 0, sha1: 0, sha256: 0/!P;D' -i production/index.html
|
|
|
|
|
|
sed -r '/Skipping/{/virustotal/!s~[^ -~]{64}+~<a href="https://www.virustotal.com/gui/file/&" target="_blank" rel="nofollow noopener noreferrer">&</a>~}' -i production/index.html
|
|
sed -r '/Skipping/{/virustotal/!s~[^ -~]{40}+~<a href="https://www.virustotal.com/gui/file/&" target="_blank" rel="nofollow noopener noreferrer">&</a>~}' -i production/index.html
|
|
sed -r '/Skipping/{/virustotal/!s~[^ -~]{32}+~<a href="https://www.virustotal.com/gui/file/&" target="_blank" rel="nofollow noopener noreferrer">&</a>~}' -i production/index.html
|