Giter Club home page Giter Club logo

Comments (11)

klezVirus avatar klezVirus commented on May 26, 2024

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.

lexone12 avatar lexone12 commented on May 26, 2024

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.

0xElessar avatar 0xElessar commented on May 26, 2024

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.

klezVirus avatar klezVirus commented on May 26, 2024

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.

0xElessar avatar 0xElessar commented on May 26, 2024

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.

klezVirus avatar klezVirus commented on May 26, 2024

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.

0xElessar avatar 0xElessar commented on May 26, 2024

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.

klezVirus avatar klezVirus commented on May 26, 2024

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.

0xElessar avatar 0xElessar commented on May 26, 2024

No problem, @klezVirus. The pleasure is mine. Thank you for helping the community. The tool is great!

from inceptor.

klezVirus avatar klezVirus commented on May 26, 2024

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.

EddieIvan01 avatar EddieIvan01 commented on May 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.