Skip to content

Commit 6f34706

Browse files
authored
Create README.md
1 parent a2bcb7e commit 6f34706

File tree

1 file changed

+128
-0
lines changed

1 file changed

+128
-0
lines changed

README.md

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
# ktool
2+
Command-line tool and mini-framework to analyze Apple mach-o and dyld_shared_cache files
3+
4+
# Usage Menu
5+
```
6+
Usage: ktool [Operation] [Operation-Options] [Path] [Path-Options]
7+
Options:
8+
--help, Print this Menu
9+
--usage, Print this Menu
10+
Operations:
11+
-h, --header, Print header of a Mach-O File
12+
Supports: Mach-O Files │ FAT Mach-O Files │ Apple dyld_shared_cache Files │ Apple dyld_shared_cache Mach-O Images
13+
Options:
14+
-v, --verbose, Print more Verbose Information
15+
16+
-l, --lc, Print Load-commands of a Thin Mach-O File
17+
Supports: Mach-O Files │ Apple dyld_shared_cache Mach-O Images
18+
Options:
19+
-v, --verbose, Print more Verbose Information
20+
21+
-L, --libraries, Print imported Shared-Libraries of a Thin Mach-O File
22+
Supports: Mach-O Files │ Apple dyld_shared_cache Mach-O Images
23+
Options:
24+
--sort-by-current-version, Sort by Current-Version
25+
--sort-by-compat-version, Sort by Compat-Version
26+
--sort-by-index, Sort by LC Index
27+
--sort-by-name, Sort by Name
28+
--sort-by-timestamp, Sort by TimeStamp
29+
--verbose, Print more Verbose Information
30+
31+
-Id, --Identity, Print Identification of a Thin Mach-O File
32+
Supports: Mach-O Files │ Apple dyld_shared_cache Mach-O Images
33+
Options:
34+
-v, --verbose, Print more Verbose Information
35+
36+
--list-archs, List Archs of a FAT Mach-O File
37+
Supports: FAT Mach-O Files
38+
Options:
39+
-v, --verbose, Print more Verbose Information
40+
41+
--list-export-trie, List Export-Trie of a Thin Mach-O File
42+
Supports: Mach-O Files │ Apple dyld_shared_cache Mach-O Images
43+
Options:
44+
--only-count, Only print the count of exports, or with --tree, print the number of nodes
45+
--require-kind, Only print exports with a specific kind
46+
--require-segment, Only print exports with a specific segment
47+
--require-section, Only print exports with a specific segment & section
48+
--sort, Sort every node alphabetically
49+
-v, --verbose, Print more Verbose Information
50+
51+
--list-objc-classes, List Objc-Classes of a Thin Mach-O File
52+
Supports: Mach-O Files
53+
Options:
54+
--include-categories, Include Objective-C Class Categories
55+
--sort-by-dylib-ordinal, Sort Objective-C Classes by Dylib-Ordinal
56+
--sort-by-kind, Sort Objective-C Classes by Kind
57+
--sort-by-name, Sort Objective-C Classes by Name
58+
--tree, Print Objective-C Classes in a tree
59+
-v, --verbose, Print more Verbose Information
60+
61+
--list-bind-actions, List Bind-Actions of a Thin Mach-O File
62+
Supports: Mach-O Files │ Apple dyld_shared_cache Mach-O Images
63+
Options:
64+
--only-normal, Only Print Normal-Bind Action-List
65+
--only-lazy, Only Print Lazy-Bind Action-List
66+
--only-weak, Only Print Weak-Bind Action-List
67+
--sort-by-dylib-ordinal, Sort Bind-Actions by Dylib-Ordinal
68+
--sort-by-name, Sort Bind-Actions by Symbol-Name
69+
--sort-by-type, Sort Bind-Actions by Type
70+
-v, --verbose, Print more Verbose Information
71+
72+
--list-bind-opcodes, List Bind-Opcodes of a Thin Mach-O File
73+
Supports: Mach-O Files │ Apple dyld_shared_cache Mach-O Images
74+
Options:
75+
--only-normal, Only Print Normal-Bind Opcode-List
76+
--only-lazy, Only Print Lazy-Bind Opcode-List
77+
--only-weak, Only Print Weak-Bind Opcode-List
78+
-v, --verbose, Print more Verbose Information
79+
80+
--list-bind-symbols, List Bind-Symbols of a Thin Mach-O File
81+
Supports: Mach-O Files │ Apple dyld_shared_cache Mach-O Images
82+
Options:
83+
--only-normal, Only Print Normal-Bind Action-List
84+
--only-lazy, Only Print Lazy-Bind Action-List
85+
--only-weak, Only Print Weak-Bind Action-List
86+
--sort-by-dylib-ordinal, Sort Bind-Actions by Dylib-Ordinal
87+
--sort-by-name, Sort Bind-Actions by Symbol-Name
88+
--sort-by-type, Sort Bind-Actions by Type
89+
-v, --verbose, Print more Verbose Information
90+
91+
--list-rebase-actions, List Rebase-Actions of a Thin Mach-O File
92+
Supports: Mach-O Files │ Apple dyld_shared_cache Mach-O Images
93+
Options:
94+
--sort, Sort Rebase-Actions
95+
-v, --verbose, Print more Verbose Information
96+
97+
--list-rebase-opcodes, List Rebase-Opcodes of a Thin Mach-O File
98+
Supports: Mach-O Files │ Apple dyld_shared_cache Mach-O Images
99+
Options:
100+
-v, --verbose, Print more Verbose Information
101+
102+
--list-c-string-section, List C-Strings of a C-String Section of a Thin Mach-O File
103+
Supports: Mach-O Files │ Apple dyld_shared_cache Mach-O Images
104+
Options:
105+
--sort, Sort C-String List
106+
-v, --verbose, Print more Verbose Information
107+
108+
--list-symbol-ptr-section, List Symbols of a Symbol-Ptr Section of a Thin Mach-O File
109+
Supports: Mach-O Files │ Apple dyld_shared_cache Mach-O Images
110+
Options:
111+
--sort-by-dylib-ordinal, Sort C-String List by Dylib-Ordinal
112+
--sort-by-index, Sort C-String List by Index
113+
--sort-by-symbol, Sort C-String List by Symbol-Name
114+
-v, --verbose, Print more Verbose Information
115+
116+
--list-dsc-images, List Images of a Dyld Shared-Cache File
117+
Supports: Apple dyld_shared_cache Files
118+
Options:
119+
--count, Only print image-count
120+
--sort-by-address, Sort Image List by Image-Address
121+
--sort-by-inode, Sort Image List by Inode
122+
--sort-by-modtime, Sort Image List by Modification-Time
123+
--sort-by-name, Sort Image List by Name
124+
-v, --verbose, Print more Verbose Information
125+
Path-Options:
126+
--arch <ordinal>, Select arch (at ordinal) of a FAT Mach-O File
127+
--image <path-or-ordinal>, Select image (at path or ordinal) of an Apple dyld_shared_cache file
128+
```

0 commit comments

Comments
 (0)