Adds additional message when checksums mismatch during an update

This commit is contained in:
erwanlr
2020-03-08 20:48:01 +01:00
parent a1467f8dac
commit 0b005477c1
2 changed files with 13 additions and 1 deletions

View File

@@ -148,7 +148,7 @@ module WPScan
create_backup(filename)
dl_checksum = download(filename)
raise "#{filename}: checksums do not match" unless dl_checksum == db_checksum
raise Error::ChecksumsMismatch, filename unless dl_checksum == db_checksum
updated << filename
rescue StandardError => e