Skip to content

Commit

Permalink
Update ransomware_detector.py
Browse files Browse the repository at this point in the history
  • Loading branch information
geeknik committed Jun 19, 2023
1 parent d62b14a commit 2f8350e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions security/ransomware_detector.py
@@ -1,4 +1,3 @@

import os
import hashlib

Expand Down Expand Up @@ -33,5 +32,3 @@ def main():

if __name__ == "__main__":
main()
```
This script scans a directory for files that match known ransomware signatures. The signatures are loaded from a text file named `ransomware_signatures.txt`, where each line is a SHA-256 hash of a known ransomware file. The script walks through every file in the specified directory and its subdirectories, calculates the SHA-256 hash of each file, and checks if the hash is in the list of known ransomware signatures. If a match is found, the script prints a message indicating that ransomware has been detected.

0 comments on commit 2f8350e

Please sign in to comment.