Created
August 10, 2022 23:24
-
-
Save BoredHackerBlog/bfd44904598aa142c09e9e833d0d6702 to your computer and use it in GitHub Desktop.
download and analyze abuse.ch malware bazaar hourly files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# prolly use cron w/ '10 * * * *' so it runs every hour, at hour:10mins | |
hourlyfile=$(date -u --date="1 hour ago" +%Y-%m-%d-%H).zip | |
wget https://datalake.abuse.ch/malware-bazaar/hourly/$hourlyfile -O /tmp/hourly.zip | |
unzip -P infected -o /tmp/hourly.zip -d /tmp/hourly_files | |
# do stuff with the files | |
file /tmp/hourly_files/* >> /tmp/file_out.txt | |
# do stuff with the files | |
rm -rf /tmp/hourly_files /tmp/hourly.zip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment