Projects STRLCPY SharPyShell Commits 0f4d0e46
🤬
  • ■ ■ ■ ■ ■
    core/Generate.py
    skipped 3 lines
    4 4  import hashlib
    5 5  import random
    6 6  import io
     7 +import os.sep
    7 8   
    8 9  class Generate():
    9 10   
    skipped 2 lines
    12 13   __obfuscator = ''
    13 14   __endian_type = ''
    14 15   
    15  - __templates_path = config.sharpyshell_path+'agent/'
    16  - __runtime_compiler_path = __templates_path + 'runtime_compiler/'
     16 + __templates_path = config.sharpyshell_path+'agent'+os.sep
     17 + __runtime_compiler_path = __templates_path + 'runtime_compiler'+os.sep
    17 18   __output_path = config.output_path + 'sharpyshell.aspx'
    18 19   
    19 20   def __init__(self, password, encryption, obfuscator, endian_type, output):
    skipped 93 lines
  • ■ ■ ■ ■ ■ ■
    core/config.py
    skipped 18 lines
    19 19   
    20 20   """ % header
    21 21   
    22  -sharpyshell_path=os.path.dirname(os.path.realpath(sys.argv[0])) + '/'
     22 +sharpyshell_path=os.path.dirname(os.path.realpath(sys.argv[0])) + os.sep
    23 23  sys.path.insert(0, sharpyshell_path)
    24  -modules_paths=sharpyshell_path + 'modules/'
    25  -output_path=sharpyshell_path + 'output/'
     24 +modules_paths=sharpyshell_path + 'modules' + os.sep
     25 +output_path=sharpyshell_path + 'output' + os.sep
    26 26   
  • ■ ■ ■ ■
    modules/download.py
    skipped 22 lines
    23 23   Positional arguments:
    24 24   remote_input_path The file path you want to download from the remote server
    25 25   local_output_path The path where the file will be saved on your local machine
    26  - Default: 'output/' directory of Sharpyshell directory
     26 + Default: 'output' directory of Sharpyshell directory
    27 27   chunk_size The maximum limit of a chunk to be transferred over the network
    28 28   Default: 102400
    29 29  
    skipped 150 lines
  • ■ ■ ■ ■ ■
    modules/mimikatz.py
    skipped 7 lines
    8 8  from modules.inject_dll_srdi import Inject_dll_srdi
    9 9  from utils.random_string import random_generator
    10 10  import traceback
     11 +import os.sep
    11 12   
    12 13   
    13 14  class MimikatzModuleException(ModuleException):
    skipped 90 lines
    104 105   if 'mimikatz.exe' in self._module_settings.keys():
    105 106   bin_path = self._module_settings['mimikatz.exe']
    106 107   else:
    107  - exe_path = config.modules_paths + 'exe_modules/mimikatz.exe'
     108 + exe_path = config.modules_paths + 'exe_modules' + os.sep + 'mimikatz.exe'
    108 109   remote_upload_path = self._module_settings['env_directory'] + '\\' + random_generator() + '.exe'
    109 110   print ('\n\n\nUploading mimikatz binary....\n')
    110 111   upload_response = self._parse_response(self.upload_module_object.run([exe_path, remote_upload_path]))
    skipped 56 lines
Please wait...
Page is in error, reload to recover