#elf #html #visualizer #binaries

app elfcat

ELF visualizer. Generates HTML files from ELF binaries.

7 releases

new 0.1.8 Oct 13, 2021
0.1.7 Aug 24, 2021
0.1.4 Jul 4, 2021
0.1.3 Jun 21, 2021
Download history 34/week @ 2021-06-25 46/week @ 2021-07-02 5/week @ 2021-07-09 13/week @ 2021-07-16 14/week @ 2021-07-23 39/week @ 2021-07-30 33/week @ 2021-08-06 24/week @ 2021-08-13 26/week @ 2021-08-20 11/week @ 2021-08-27 3/week @ 2021-09-03 8/week @ 2021-09-10 13/week @ 2021-09-17 14/week @ 2021-09-24 8/week @ 2021-10-01 43/week @ 2021-10-08

71 downloads per month

Zlib license

85KB
2K SLoC

Rust 2K SLoC // 0.0% comments JavaScript 314 SLoC // 0.0% comments

elfcat - ELF visualizer. Generates HTML files from ELF binaries.

  1. How do I install and use it?

    $ cargo install elfcat
    $ elfcat path/to/file
    
  2. What does it look like?

    This is what the following small example ELF file looks like:

    http://ruslashev.github.io/elfcat/hello_world.html

    Steps to create it:

    $ cat hello_world.s
    global _start
    
    section .text
    _start:
        mov rax, 1
        mov rdi, 1
        mov rsi, msg
        mov rdx, len
        syscall
    
        mov rax, 60
        xor rdi, rdi
        syscall
    
    section .data
        msg db "Hello, world!", 0xA
        len equ $ - msg
    
    $ cat link.ld
    ENTRY(_start)
    
    SECTIONS {
        . = 0x10080; /* vm.mmap_min_addr + p_offset of first segment */
    
        .text : {
            * (.text)
        }
    
        .data : {
            * (.data)
        }
    }
    
    $ nasm hello_world.s -f elf64
    $ ld hello_world.o -o hello_world -n -T link.ld
    $ elfcat hello_world
    $ xdg-open hello_world.html
    
  3. Can I contribute?

    Of course!

  4. License?

    Zlib.

  5. Upcoming features?

    • Better text renderer to fix bad performance when opening big files

    • Ability to tune the width instead of hardcoded 16 bytes

    • Visualization of virtual memory mappings

    • Dark theme

    • Highlight bytes in ASCII column

  6. Addendum

No runtime deps