Git Product home page Git Product logo

black-hell-team / thebhtinjector Goto Github PK

View Code? Open in Web Editor NEW
8.0 0.0 1.0 375 KB

TheBhTiNjector is a filebinder that can concatenate two or more files of some extensions that preserves the integrity of the files and gives you the option of injecting shellcode into them.

License: MIT License

C++ 47.68% Assembly 52.32%
binder file-binder file-binding malware malware-analysis malware-sample malware-samples ransomware ransomware-builder ransomware-source-code

thebhtinjector's Introduction

TheBhTiNjector C++ GitHub followers

TheBhTiNjector is a file binder that concatenates files while preserving their functionality.

And how does it work?

Basically, it concatenates multiple types of files, which can be executables, images or executables with images, uniting them and having the possibility of injecting shellcode.

What is shellcode?

The shortest definition is, a shellcode is a small piece of code used as a payload in exploiting a software vulnerability. And what does it mean? Shellcode is defined as a set of instructions injected and then executed by an exploit. Shellcode is used to directly manipulate the registries and functionality of an exploit, and can even secure a shell on the target machine. For the shellcode to work correctly, you need to pay attention to these aspects:

-- Shellcode Size: The shellcode size cannot exceed the available space in the image, resulting in improper injection.

-- Shellcode Format: The shellcode may not be formatted correctly to run on the target architecture. Make sure the shellcode is compatible with the architecture of the system where the image will run.

-- Poor Testing: If you are not seeing the expected behavior when opening the image, it is possible that your testing is incomplete or inadequate. Make sure you are testing in a suitable environment and that you are observing the results correctly.

And how do I use it?

First you compile the shellcode, enter the shellcodes directory with cd shellcodes, after entering you can compile them (this may vary depending on your machine) for example:

nasm -f elf32 -o shellcode.o shellcodeWin.asm

ld -m elf_i386 -o shellcode shellcode.o

or:

nasm -f win32 shellcodeWin.asm -o shellcode.obj

Then you move the compiled shellcodes to the main directory.

Then, you compile the main code with your preferred compiler, in this case I will use G++ for example: g++ -o main.exe main.cpp

After you compile, you can run for example: ./main.exe -h which will give you all the options of what to do and how to do it.

running the script

After that, you can concatenate the files and inject the shellcode, as in this example:

You can also concatenate binary with binary, as in this example:

You can also inject shellcode into binaries

How do I contribute to this project?

To contribute to this project you need to make a pull request, and then give us a detailed description of what you want to add or change and we at the black hell team will review the code and authorize it, sometimes editing the implementation a little to maintain good programming practices.

License

License

thebhtinjector's People

Contributors

brunociccarino avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

k4mu5

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.