GithubHelp home page GithubHelp logo

arm-concolic-execution's Introduction

ACEE: ARM Concolic Execution Engine

Gonna be a powerful concolic execution tool against arm assembly.

Environment setup

For mac user, add the libz3.dylib path to DYLD_LIBRARY_PATH

export DYLD_LIBRARY_PATH=/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib:$DYLD_LIBRARY_PATH

Installing Z3

From anywhere, install z3 by following these steps

git clone https://github.com/Z3Prover/z3.git
cd z3//
python scripts/mk_make.py
cd build
make
sudo make install

Quick start

make run <input_file>.s

ACEE will create a logfile under the name acee_<input_file>.log.

Todo

Support of differrnt indexing mode

Now support writeback mode Example: str r0, [r1, #4]! - This stores the word in r0 at the address (r1 + 4), and then adds 4 to r1.

Immediate offset / Pre-indexed addressing mode(supported)

In this mode, an immediate offset is added to or subtracted from the base register to form the memory address.

Example: ldr r0, [r1, #4] - This loads the word at the address (r1 + 4) into r0.

Register offset / Pre-indexed addressing mode(supported)

In this mode, the value of an offset register is added to or subtracted from the base register to form the memory address.

Example: ldr r0, [r1, r2] - This loads the word at the address (r1 + r2) into r0.

Scaled register offset / Pre-indexed addressing mode

In this mode, the value of an offset register is optionally shifted by a constant amount and then added to or subtracted from the base register to form the memory address.

Example: ldr r0, [r1, r2, lsl #2] - This loads the word at the address (r1 + (r2 << 2)) into r0.

Post-indexed addressing mode

In this mode, the base register contains the memory address for the current operation. After the operation, an offset is added to or subtracted from the base register.

Example: ldr r0, [r1], #4 - This loads the word at the address in r1 into r0, and then adds 4 to r1.

Post-indexed register offset addressing mode

In this mode, the base register contains the memory address for the current operation. After the operation, the value of an offset register is added to or subtracted from the base register.

Example: ldr r0, [r1], r2 - This loads the word at the address in r1 into r0, and then adds the value in r2 to r1.

arm-concolic-execution's People

Contributors

karanisingh avatar annoyingpatrick avatar

Watchers

 avatar

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.