-
-
Save Techlord-RCE/c31049ea5fae73e28f12bd172a24c3f6 to your computer and use it in GitHub Desktop.
A sample bash script to build IAT_Patcher on Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| echo "Trying to autobuild IAT_patcher..." | |
| #QT check | |
| QT_VER=`qmake -v` | |
| QTV="version 4." | |
| if echo "$QT_VER" | grep -q "$QTV"; then | |
| echo "[+] Qt4 found!" | |
| else | |
| echo "[-] Qt4 NOT found!" | |
| echo "Install qt-sdk first" | |
| exit -1 | |
| fi | |
| CMAKE_VER=`cmake --version` | |
| CMAKEV="cmake version" | |
| if echo "$CMAKE_VER" | grep -q "$CMAKEV"; then | |
| echo "[+] CMake found!" | |
| else | |
| echo "[-] CMake NOT found!" | |
| echo "Install cmake first" | |
| exit -1 | |
| fi | |
| mkdir IAT_patcher | |
| cd IAT_patcher | |
| git clone https://github.com/hasherezade/IAT_patcher.git | |
| echo "[+] IAT_patcher cloned" | |
| mv IAT_patcher src | |
| cd src | |
| git clone https://github.com/hasherezade/bearparser.git | |
| echo "[+] bearparser cloned" | |
| cd .. | |
| mkdir build | |
| echo "[+] build directory created" | |
| cd build | |
| cmake -G "Unix Makefiles" ../src/ | |
| make | |
| cd .. | |
| cp build/patcher/IAT_Patcher ./ | |
| echo "[+] Success! IAT_Patcher is here:" | |
| pwd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment