Skip to content

Instantly share code, notes, and snippets.

@Techlord-RCE
Forked from hasherezade/iatp_autobuild.sh
Created May 30, 2019 01:08
Show Gist options
  • Select an option

  • Save Techlord-RCE/c31049ea5fae73e28f12bd172a24c3f6 to your computer and use it in GitHub Desktop.

Select an option

Save Techlord-RCE/c31049ea5fae73e28f12bd172a24c3f6 to your computer and use it in GitHub Desktop.

Revisions

  1. @hasherezade hasherezade revised this gist Jan 9, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion iatp_autobuild.sh
    Original file line number Diff line number Diff line change
    @@ -37,6 +37,6 @@ cd build
    cmake -G "Unix Makefiles" ../src/
    make
    cd ..
    cp build/IAT_patcher/IAT_Patcher ./
    cp build/patcher/IAT_Patcher ./
    echo "[+] Success! IAT_Patcher is here:"
    pwd
  2. @hasherezade hasherezade revised this gist Jan 9, 2016. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions iatp_autobuild.sh
    Original file line number Diff line number Diff line change
    @@ -37,6 +37,6 @@ cd build
    cmake -G "Unix Makefiles" ../src/
    make
    cd ..
    cp build/IAT_patcher/IAT_patcher ./
    echo "[+] Success! IAT_patcher is here:"
    cp build/IAT_patcher/IAT_Patcher ./
    echo "[+] Success! IAT_Patcher is here:"
    pwd
  3. @hasherezade hasherezade renamed this gist Jan 9, 2016. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. @hasherezade hasherezade revised this gist Jan 9, 2016. No changes.
  5. @hasherezade hasherezade created this gist Jan 9, 2016.
    42 changes: 42 additions & 0 deletions autobuild.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,42 @@
    #!/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/IAT_patcher/IAT_patcher ./
    echo "[+] Success! IAT_patcher is here:"
    pwd