Coder Social home page Coder Social logo

echeck's Introduction

echeck

Echeck is a platform generic tool designed to check binary protections enabled

Installation

git clone https://github.com/R3tr074/echeck.git && cd echeck
make && sudo cp build/linux/x86_64/release/echeck /usr/bin/echeck

You can use the xmake to cross-compile and others.

Utility

You can format mach-o and ELF's(in the future Windows PE too) for extract a lot util info to exploitation:

# ELF's
r3tr0@pwnbox:~$ echeck /work/file
[*] '/work/file'
    Arch:     amd64-64-little
    RELRO:    Full RELRO
    Stack:    Canary found
    NX:       NX enabled
    PIE:      PIE enabled
    RUNPATH:  b'./'
    FUNCS:    gets system popen
r3tr0@pwnbox:~$ echeck /bin/ls
[*] '/bin/ls'
    Arch:     amd64-64-little
    RELRO:    Full RELRO
    Stack:    Canary found
    NX:       NX enabled
    PIE:      PIE enabled
    FORTIFY:  Enabled (6 functions)
# mach-o's
r3tr0@pwnbox:~$ file macho-ls 
macho-ls: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit x86_64 executable, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|PIE>] [arm64e (caps: 0x2):Mach-O 64-bit arm64e (caps: PAC00) executable, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|PIE>]
r3tr0@pwnbox:~$ echeck macho-ls 
[*] 'macho-ls'
    Arch:      amd64-64-little
    Stack:     Canary found
    NX:        NX enabled
    PIE:       PIE enabled
    ARC:       No ARC
    ENCRYPTED: No encrypted
    CODE SIGN: Signed
[*] 'macho-ls'
    Arch:      aarch-64-little
    Stack:     Canary found
    NX:        NX enabled
    PIE:       PIE enabled
    ARC:       No ARC
    ENCRYPTED: No encrypted
    CODE SIGN: Signed

Todo

  1. FORTIFY
  2. RUNPATH
  3. Interesting imports, like system()
  4. Dangerous imports, like gets()

References

echeck's People

Contributors

r3tr074 avatar

Stargazers

0xT0k0 avatar Shader Coder avatar 0xDant avatar Lups avatar Merlin_ avatar  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.