Comments (11)
Hi @lexone12, I'm not sure but it seems there is an error in your command line?
######################### | What's this "C:" and "test.exe" ?
python inceptor.py native C: test.exe -o 111daa.exe -t loader
from inceptor.
Hi @lexone12, I'm not sure but it seems there is an error in your command line?
######################### | What's this "C:" and "test.exe" ? python inceptor.py native C: test.exe -o 111daa.exe -t loader
python inceptor.py native C:\Users\Administrator\Downloads\1\2\Release\test.exe -o 111daa.exe -t loader
from inceptor.
I have very similar issue unfortunately. [REMOVED]
UPDATE: Interesting. I have managed to fix the above error, but adding to my VS installation C++ Clang tools, and rebuilding whole Python VENV. However, the below errors still stand. I am using mainly the raw shellcode, so the below are not essential for me. Thank you for your work, @klezVirus !
Here are some other errors:
python inceptor.py native c:\Repos\bbb.exe -o .\test.exe
[+] Native Artifact Generator Started At 2021-09-14 16:42:41.045113
[*] Phase 0: Loading...
[*] Phase 1: Converting binary into shellcode
[>] Transformer: Pe2sh
[-] Failed to locate converted file: c:\Repos\bbb.shc.exe
Traceback (most recent call last):
File "C:\Repos\inceptor\inceptor\generators\NativeArtifactGenerator.py", line 202, in generate
self.generate_wrapped()
File "C:\Repos\inceptor\inceptor\generators\NativeArtifactGenerator.py", line 221, in generate_wrapped
shellcode_bytes = self.transformer.transform(target=self.file)
File "C:\Repos\inceptor\inceptor\converters\Pe2Shellcode.py", line 40, in transform
sys.exit(1)
SystemExit: 1
Another:
python inceptor.py native c:\Repos\bbb.exe -o .\test.exe -t donut
[+] Native Artifact Generator Started At 2021-09-14 16:43:04.623222
[*] Phase 0: Loading...
[*] Phase 1: Converting binary into shellcode
[>] Transformer: Donut
[-] Failed to convert c:\Repos\bbb.exe
Traceback (most recent call last):
File "C:\Repos\inceptor\inceptor\generators\NativeArtifactGenerator.py", line 202, in generate
self.generate_wrapped()
File "C:\Repos\inceptor\inceptor\generators\NativeArtifactGenerator.py", line 221, in generate_wrapped
shellcode_bytes = self.transformer.transform(target=self.file)
File "C:\Repos\inceptor\inceptor\converters\Donut.py", line 37, in transform
sys.exit(1)
NameError: name 'sys' is not defined
from inceptor.
Hi @lexone12, after a while, I discovered the error might be caused by some missing DLLs in the precompiled version of LLVM-Obfuscator. You can try fixing it by building LLVM_obfuscator directly on your system. The steps required are available here.
@0xElessar, your issue is way different fro the one encountered by @lexone12 , and it's caused by an architecture mismatch. Inceptor works by default on x64, so if you want to pack a binary which is 32-bit, you'll had to specify it using the --arch x86
option.
Let me know if this solves your issues.
from inceptor.
Hello @klezVirus ,
setting --arch does not matter unfortunately. The errors are exactly the same. Using shellcode works perfectly. Soon I will try the .NET binary. Need to setup to new C2 infra first. I will keep you updated :) Thanks again for the tool and the support!
from inceptor.
Well, this is strange, can you add the debug information for the donut loader?
You can do this by going in the config.ini
, and putting LOADERS = 1
in the DEBUG
section. This will print the donut command line executed by the program, which can help identifying the problem.
from inceptor.
Of course. Great idea, @klezVirus .
python inceptor.py native c:\Repos\bbb.exe -o .\test.exe -t donut --arch x86
generates this donut command:
"C:\Repos\inceptor\inceptor\libs\public\donut.exe" -e3 -a2 -b1 -f1 "c:\Repos\bbb.exe" -o "C:\Repos\inceptor\inceptor\temp\bbb.bin"
python inceptor.py native c:\Repos\bbb.exe -o .\test.exe -t donut --arch x64
generates the same command!
"C:\Repos\inceptor\inceptor\libs\public\donut.exe" -e3 -a2 -b1 -f1 "c:\Repos\bbb.exe" -o "C:\Repos\inceptor\inceptor\temp\bbb.bin"
Changing manually -a2
to -a1
fixed the donut error. So ... the problem seems to be in the architecture parameter!
from inceptor.
Yeah, I guessed it was the architecture. This will be definitely fixed with next commits. Thanks a lot for your time here, this was extremely valuable! As soon as I push the fix, probably tonight, I'll close the isse. Again, thanks @0xElessar for the help :D
from inceptor.
No problem, @klezVirus. The pleasure is mine. Thank you for helping the community. The tool is great!
from inceptor.
Hi @0xElessar, the issue should be fixed now in the main branch. Closing the issue for now, feel free to reopen if you notice it's not working properly.
from inceptor.
Same issue, the problem is that the COMPILERS.vcvarsall in config.ini is null, so the compiling command line is "C:\inceptor" x64 & "C:\inceptor\obfuscators\native\llvm-clang\llvm-clang\clang-cl.exe" ...
from inceptor.
Related Issues (20)
- permission error HOT 2
- [ERROR] Module etw was not found HOT 1
- PermissionError: [WinError 5] Access is denied HOT 5
- Permission Denied
- [-] The target binary is x86, while donut is running as x64 HOT 3
- zlib encoder error - Could not load file or assembly Zlib.Portable HOT 3
- Compiler limit exceeded: Line cannot exceed 16777214 characters HOT 4
- How to run Assembly load? HOT 2
- No template found with given criteria HOT 1
- Templates documentation
- MFC in the static library HOT 5
- Compilation failed when -hw in native HOT 2
- Compilation error with Process injection native and native-map_view_section.cpp HOT 1
- Possible to include the necessary dlls in the resulted exe? Error: vcruntime140.dll missing HOT 1
- No template found HOT 2
- UnicodeDecodeError HOT 1
- Dotnet packing error HOT 4
- use -m dinvoke cause notepad injection address conflicts
- LLVM Compiler Error HOT 4
- How to use chain encoding? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from inceptor.