Bitwise-01 / Loki

Remote Access Tool
MIT License
582 stars 218 forks source link

Can not compile agent from builder.py #24

Open 22bscarbro opened 4 years ago

22bscarbro commented 4 years ago

Can't compile this on windows with python 3.7.6 Log: 1) MS Word 2) MS Excel 3) MS Powerpoint

Select an icon option: 1 1728 INFO: PyInstaller: 3.6 1729 INFO: Python: 3.7.6 1731 INFO: Platform: Windows-10-10.0.19025-SP0 1732 INFO: wrote C:\Users\scarb\AppData\Local\Temp\tmppp84l3xs\Blooperws.spec 1734 INFO: UPX is not available. 1735 INFO: Extending PYTHONPATH with paths ['C:\Users\scarb\Desktop\BNC\agent\bot', 'C:\Users\scarb\AppData\Local\Temp\tmppp84l3xs'] 1736 INFO: checking Analysis 1736 INFO: Building Analysis because Analysis-00.toc is non existent 1736 INFO: Initializing module dependency graph... 1739 INFO: Caching module graph hooks... 1745 INFO: Analyzing base_library.zip ... 4437 INFO: Caching module dependency graph... 4524 INFO: running Analysis Analysis-00.toc Traceback (most recent call last): File "C:\Users\scarb\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\win32ctypes\pywin32\pywintypes.py", line 35, in pywin32error yield File "C:\Users\scarb\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\win32ctypes\pywin32\win32api.py", line 43, in LoadLibraryEx return _dll._LoadLibraryEx(fileName, 0, flags) File "C:\Users\scarb\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\win32ctypes\core\cffi_dll.py", line 26, in _LoadLibraryEx function_name='LoadLibraryEx') File "C:\Users\scarb\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\win32ctypes\core\cffi_util.py", line 81, in call self._raise_error(function_name) File "C:\Users\scarb\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\win32ctypes\core\cffi_util.py", line 92, in _raise_error raise exception OSError: [WinError 1920] The file cannot be accessed by the system

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "builder.py", line 173, in executor.start() File "builder.py", line 135, in start self.compile_bot() File "builder.py", line 93, in compile_bot self.write_template(self.bot_template, self.bot_py_temp, _dict) File "builder.py", line 83, in write_template self.compile_file(py_temp) File "builder.py", line 73, in compile_file pyi.run() File "C:\Users\scarb\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\PyInstaller__main.py", line 114, in run run_build(pyi_config, spec_file, vars(args)) File "C:\Users\scarb\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\PyInstaller__main__.py", line 65, in run_build PyInstaller.building.build_main.main(pyi_config, spec_file, kwargs) File "C:\Users\scarb\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\PyInstaller\building\build_main.py", line 734, in main build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build')) File "C:\Users\scarb\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\PyInstaller\building\build_main.py", line 681, in build exec(code, spec_namespace) File "C:\Users\scarb\AppData\Local\Temp\tmppp84l3xs\Blooperws.spec", line 17, in noarchive=False) File "C:\Users\scarb\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\PyInstaller\building\build_main.py", line 244, in init self.postinit() File "C:\Users\scarb\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\PyInstaller\building\datastruct.py", line 160, in postinit__ self.assemble() File "C:\Users\scarb\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\PyInstaller\building\build_main.py", line 395, in assemble redirects=self.binding_redirects)[1:]) File "C:\Users\scarb\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\PyInstaller\depend\bindepend.py", line 228, in Dependencies for ftocnm, fn in getAssemblyFiles(pth, manifest, redirects): File "C:\Users\scarb\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\PyInstaller\depend\bindepend.py", line 404, in getAssemblyFiles for assembly in getAssemblies(pth): File "C:\Users\scarb\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\PyInstaller\depend\bindepend.py", line 355, in getAssemblies res = GetManifestResources(pth) File "C:\Users\scarb\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\PyInstaller\utils\win32\winmanifest.py", line 1007, in GetManifestResources return winresource.GetResources(filename, [RT_MANIFEST], names, languages) File "C:\Users\scarb\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\PyInstaller\utils\win32\winresource.py", line 170, in GetResources hsrc = win32api.LoadLibraryEx(filename, 0, LOAD_LIBRARY_AS_DATAFILE) File "C:\Users\scarb\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\win32ctypes\pywin32\win32api.py", line 43, in LoadLibraryEx return _dll._LoadLibraryEx(fileName, 0, flags) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.1776.0_x64qbz5n2kfra8p0\lib\contextlib.py", line 130, in exit__ self.gen.throw(type, value, traceback) File "C:\Users\scarb\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\win32ctypes\pywin32\pywintypes.py", line 37, in pywin32error raise error(exception.winerror, exception.function, exception.strerror) win32ctypes.pywin32.pywintypes.error: (1920, 'LoadLibraryEx', 'The file cannot be accessed by the system')