segment_dumper

Crates.iosegment_dumper
lib.rssegment_dumper
version0.1.5
created_at2025-10-19 18:11:09.293626+00
updated_at2025-10-19 18:41:44.914574+00
descriptionA tool to list the sections and segments from a mach-o binary
homepagehttps://github.com/CamJN/segment_dumper
repositoryhttps://github.com/CamJN/segment_dumper
max_upload_size
id1890733
size14,645
Camden Narzt (CamJN)

documentation

https://github.com/CamJN/segment_dumper

README

segment_dumper

Rust

Installing

cargo install segment_dumper

or

brew tap CamJN/fixed
brew install segment-dumper

Use

Just pass segment_dumper a path to a mach-o binary:

segment_dumper /bin/bash

it will print the section,segment pairs from the binary as so:

__TEXT,__text
__TEXT,__stubs
__TEXT,__const
__TEXT,__cstring
__TEXT,__unwind_info
__TEXT,__eh_frame
__DATA_CONST,__got
__DATA_CONST,__const
__DATA,__data
__DATA,__common
__DATA,__bss
__TEXT,__text
__TEXT,__auth_stubs
__TEXT,__const
__TEXT,__cstring
__TEXT,__unwind_info
__DATA_CONST,__auth_got
__DATA_CONST,__got
__DATA_CONST,__auth_ptr
__DATA_CONST,__const
__DATA,__data
__DATA,__common
__DATA,__bss

These are conveniently formatted for passing to launchctl plist.

Contributing

This binary is really just a thin wrapper around the goblin crate to expose particular functionality, while contributions are welcome, that effort would be more useful contributing to goblin instead.

Commit count: 0

cargo fmt