Skip to content

Commit

Permalink
Create update_database.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
Whitecat18 authored Sep 30, 2023
1 parent e026b70 commit fab1407
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions update_database.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Powershell script to download the lastes hashes from malware bazzar.
# Mavoc-Antivirus : https://github.com/Whitecat18/Mavoc-Antivirus
$md5Url = "https://bazaar.abuse.ch/export/txt/md5/recent/"
$sha256Url = "https://bazaar.abuse.ch/export/txt/sha256/recent/"
$md5FileName = "hashes/md5_hashes.txt"
$sha256FileName = "hashes/sha256_hashes.txt"
Invoke-WebRequest -Uri $md5Url -OutFile $md5FileName
Invoke-WebRequest -Uri $sha256Url -OutFile $sha256FileName

if (Test-Path $md5FileName -and Test-Path $sha256FileName) {
Write-Host "Files downloaded successfully."
} else {
Write-Host "Failed to download files."
}

0 comments on commit fab1407

Please sign in to comment.