https://github.com/ruslashev/elfcat Skip to content Sign up * Why GitHub? Features - + Mobile - + Actions - + Codespaces - + Packages - + Security - + Code review - + Project management - + Integrations - + GitHub Sponsors - + Customer stories- * Team * Enterprise * Explore + Explore GitHub - Learn and contribute + Topics - + Collections - + Trending - + Learning Lab - + Open source guides - Connect with others + The ReadME Project - + Events - + Community forum - + GitHub Education - + GitHub Stars program - * Marketplace * Pricing Plans - + Compare plans - + Contact Sales - + Education - [ ] [search-key] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this user All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} ruslashev / elfcat * Notifications * Star 390 * Fork 5 ELF visualizer. Generates HTML files from ELF binaries. crates.io/crates/elfcat Zlib License 390 stars 5 forks Star Notifications * Code * Issues 1 * Pull requests 1 * Actions * Projects 0 * Wiki * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Wiki * Security * Insights master Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags 1 branch 4 tags Code Clone HTTPS GitHub CLI [https://github.com/r] Use Git or checkout with SVN using the web URL. [gh repo clone ruslas] Work fast with our official CLI. Learn more. * Open with GitHub Desktop * Download ZIP Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Go back Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Go back Launching Xcode If nothing happens, download Xcode and try again. Go back Launching Visual Studio Code Your codespace will open once ready. There was a problem preparing your codespace, please try again. Latest commit @ruslashev ruslashev unset font-size and work around dumb chrome bug ... 4730209 Jun 22, 2021 unset font-size and work around dumb chrome bug 4730209 Git stats * 156 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time src unset font-size and work around dumb chrome bug Jun 21, 2021 .gitignore initial commit Oct 3, 2020 Cargo.lock unset font-size and work around dumb chrome bug Jun 21, 2021 Cargo.toml unset font-size and work around dumb chrome bug Jun 21, 2021 license relicense as zlib Jun 7, 2021 readme.md add readme Jun 20, 2021 View code readme.md 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. How does it look like? This is how 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. When I try this on huge files, it slows down my browser! Sorry about that. There used to be a feature where segments and sections would be collapsed into a couple characters instead of showing full contents, but it was disabled because it: + broke when these would overlap + in a way, defeats the purpose: seeing specific bytes is a feature. 6. Upcoming features? + Ability to tune the width instead of hardcoded 16 bytes + Visualization of virtual memory mappings + Dark theme + Highlight bytes in ASCII column About ELF visualizer. Generates HTML files from ELF binaries. crates.io/crates/elfcat Resources Readme License Zlib License Releases 4 tags Packages 0 No packages published Languages * Rust 85.5% * JavaScript 11.5% * CSS 3.0% * (c) 2021 GitHub, Inc. * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.