Skip to content
프로젝트

소개

Infrastructure for Reassembleable Disassembling and Transformation

시스템 및 인프라

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Uroboros

build GitHub last commit GitHub issues contributions welcome

Uroboros is an infrastructure for reassembleable disassembling and transformation. Uroboros can disassemble and reassemble an executable multiple times. Before reassembly, Uroboros can also perform code transformation, modifying the intended behavior of the executable. An example code transformation is instrumentation.

Installation

Docker

Uroboros is available as a docker image, you can check the details in docker.

Build

The OCaml compiler and dependent libraries can be obtained through opam:

$ sudo apt install opam
$ opam init
$ opam switch create 5.3.0
$ opam install -y ppx_deriving.6.0.3 batteries.3.9.0
$ eval $(opam env)

Usage

Uroboros can take a 32-bit or 64-bit, statically-linked or dynamically-linked ELF executable as the input. To use Uroboros:

$ python3 uroboros.py bzip

The disassembled output can be found at current directory, named final.s. Uroboros will also reassemble it back into an executable, named a.out.

Python script uroboros.py provides options to manipulate the disassemble-reassemble process.

  1. -i (iteration):

The disassemble-reassemble process can be iterated multiple times:

$ python3 uroboros.py bzip -i 500
  1. -k (keep):

This option will create a folder to store the assembly code and binary generated from each iteration. This is only effective together with -i:

$ python3 uroboros.py bzip -i 500 -k

A subfolder will be created in ./src folder, with input binary name and timestamp (e.g., test_fold_bzip_2021-09-19_05:51:00).

  1. --arch (architecture):

Uroboros supports x86 (--arch intel), ARM Thumb (--arch thumb), and ARM64 (--arch arm). --arch intel is applied by default. To work with ARM Thumb and ARM64 binaries, please refer to ARM.md.

Instrumentation

One application of Uroboros is binary code instrumentation. The documentation for Uroboros' instrumentation framework can be found in INSTRUMENTATION.md.

Publication

@inproceedings {190920,
author = {Shuai Wang and Pei Wang and Dinghao Wu},
title = {Reassembleable Disassembling},
booktitle = {24th {USENIX} Security Symposium ({USENIX} Security 15)},
year = {2015},
isbn = {978-1-939133-11-3},
address = {Washington, D.C.},
pages = {627--642},
url = {https://www.usenix.org/conference/usenixsecurity15/technical-sessions/presentation/wang-shuai},
publisher = {{USENIX} Association},
month = aug,
}

관련 프로젝트 살펴보기

불러오는 중…