Skip to content

Instantly share code, notes, and snippets.

@BoredHackerBlog
Created August 10, 2022 23:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BoredHackerBlog/bfd44904598aa142c09e9e833d0d6702 to your computer and use it in GitHub Desktop.
Save BoredHackerBlog/bfd44904598aa142c09e9e833d0d6702 to your computer and use it in GitHub Desktop.
download and analyze abuse.ch malware bazaar hourly files
#!/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