/grey-hack-exploit-builder

Scan lib and generate exploits for it (In Grey Hack game)

Exploit Builder (Grey Hack)


I can't really explain what the game is better than the actual developper.

In my opinion, making a game like that is a real talent, and you should defenetly check it out (you can find more informations here (Steam link)).


Actual Exploit Builder

The game have an intresting way of "handeling" exploits :

Each service uses a lib (for example, an http server will use the libhttp library), and those have vulnerabilities.

Those can be retreived using the metaxploit library.

Knowing that, I made a script to automate the process of building exploits.

How to use

In order to use this project, simply copy the content of ebtemplate.src, and put it in /sys/ebtemplate.src (within the game, of course).

Next, build builder.src as any binary you want (I'd recommand /bin/exploitbuilder), and enjoy !

In order to build exploits, simply run exploitbuilder [path to a lib.so], and it'll generate an ExploitBuilder directory within your current directory.

Within that ExploitBuilder directory, you'll find a [lib name]-[lib version] directory containing all the exploits.

How to use the exploits

Feel free to update the ebtemplate.src file to suit whatever you need.

The way you use the exploits themselfs, is by compiling one, and the running it.

If you run it "raw", it'll try to exploit the current machine (the one you ran it from).

If you need to exploit a remote machine, simply run your_exploit_binary [ip] [port].

In case you end up with a computer or file object as the result of the exploit, you might need to dive into the code to actually do whatever you want.