GithubHelp home page GithubHelp logo

liyansong2018 / elfspirit Goto Github PK

View Code? Open in Web Editor NEW
45.0 45.0 9.0 82 KB

ELF static analysis and injection framework that parse, manipulate, patch and camouflage ELF files.

License: MIT License

Makefile 0.28% C 99.72%

elfspirit's People

Contributors

clkskw avatar liyansong2018 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

elfspirit's Issues

To Do: Need some useful scripts

  • Use elfspirt to add useful headers and section header tables for bare metal programming in embedded systems (Help decompile tools better identify the target program)

Out-of-bounds read in elf parsing.

poc

$ ./elfspirit parse id_000000

log

[+] ELF Header
     e_type:                       3 -> A shared object                                               
     e_machine:                   62 -> Intel 80386
     e_version:                    1 -> Current version
     e_entry:                   4176
     e_phoff:                     64
     e_shoff:                  13608
     e_flags:                      0
     e_ehsize:                    64
     e_phentsize:                 56
     e_phnum:                      9
     e_shentsize:                 64
     e_shentsize:                 64
     e_shstrndx:                  27
 [+] Section Header Table
     [Nr] Name            Type                Addr    Off   Size Es  Flg  Lk Inf  Al
AddressSanitizer:DEADLYSIGNAL
=================================================================
==193419==ERROR: AddressSanitizer: SEGV on unknown address 0x7f08638c5000 (pc 0x7f0842727231 bp 0x7ffcbf981330 sp 0x7ffcbf980ad8 T0)                                                                        
==193419==The signal is caused by a READ memory access.                                               
    #0 0x7f0842727231  (/lib/x86_64-linux-gnu/libc.so.6+0x15f231)
    #1 0x7f08427c9a8c in __interceptor_strlen ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:368
    #2 0x55862b528026 in parse /home/lys/Tools/elfspirit/parse.c:975
    #3 0x55862b4c5167 in readcmdline /home/lys/Tools/elfspirit/main.c:251
    #4 0x55862b4c5167 in main /home/lys/Tools/elfspirit/main.c:263
    #5 0x7f08425efe49 in __libc_start_main ../csu/libc-start.c:314
    #6 0x55862b4c5d09 in _start (/home/lys/Tools/elfspirit/elfspirit+0x9d09)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/lib/x86_64-linux-gnu/libc.so.6+0x15f231) 
==193419==ABORTING

poc.zip

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.