TheWover / donut

Generates x86, x64, or AMD64+x86 position-independent shellcode that loads .NET Assemblies, PE files, and other Windows payloads from memory and runs them with parameters
BSD 3-Clause "New" or "Revised" License
3.53k stars 628 forks source link

The target binary is x86, while donut is running as x64 #94

Closed SamSap10l closed 2 years ago

SamSap10l commented 2 years ago

Hello everyone, I continue to receive the following error. [>] Transformer: Donut Traceback (most recent call last): File "C:\Users\username\Downloads\inceptor\inceptor\generators\NativeArtifactGenerator.py", line 249, in generate self.generate_wrapped() File "C:\Users\username\Downloads\inceptor\inceptor\generators\NativeArtifactGenerator.py", line 271, in generate_wrapped shellcode_bytes = self.transformer.transform(target=self.file) File "C:\Users\username\Downloads\inceptor\inceptor\converters\Donut.py", line 31, in transform raise ArchitectureMismatch( converters.Donut.ArchitectureMismatch: The target binary is x86, while donut is running as x64

If I compile the program with x64. everything goes ok. But if the command is in x86, I receive this error. Can you help me

TheWover commented 2 years ago

You are using some tool that wraps Donut to generate shellcode. That error is generated by that other program. As such, check with the documentation for the tool (inceptor) to resolve this issue. If there is a way to pass options to donut, you can manually tell it to generate x86 shellcode via the -a 1 flag. Otherwise, that is an issue with interceptor, not donut, so is out of scope of support for this project.