67 lines
3.2 KiB
Go
67 lines
3.2 KiB
Go
package wrapper
|
|
|
|
type WrapArgument struct {
|
|
Config string `short:"c" required help:"User config.json" type:"existingfile"`
|
|
Out string `short:"o" required name:"outfile" help:"Modified Mach-O/Fat binary output file" type:"path"`
|
|
Bcell string `short:"b" required help:"bcell.dat output file" type:"path"`
|
|
Signed bool `short:"s" required help:"Output Protobuf<SignedData> for bcell.dat"`
|
|
OFile string `arg help:"Path to Mach-O/Fat binary file" type:"existingfile"`
|
|
}
|
|
|
|
type VltkArgument struct {
|
|
Out string `short:"o" required name:"outfile" help:"Modified Mach-O/Fat binary output file" type:"path"`
|
|
OFile string `arg help:"Path to Mach-O/Fat binary file" type:"existingfile"`
|
|
}
|
|
|
|
type InfoArgument struct {
|
|
OFile string `arg help:"Path to Mach-O/Fat binary file" type:"existingfile"`
|
|
All bool `short:"a" help:"If print all information"`
|
|
Arch string `help:"Only print information in this arch"`
|
|
}
|
|
|
|
type RemoveCodesignArgument struct {
|
|
Out string `short:"o" required name:"outfile" help:"Modified Mach-O/Fat binary output file" type:"path"`
|
|
OFile string `arg help:"Path to Mach-O/Fat binary file" type:"existingfile"`
|
|
}
|
|
|
|
type SignedBcellArgument struct {
|
|
Out string `short:"o" required name:"outfile" help:"bcell.dat.signed output file" type:"existingfile"`
|
|
Bcell string `arg short:"b" required help:"bcell.dat input file" type:"existingfile"`
|
|
}
|
|
|
|
type DisplayBcellArgument struct {
|
|
Bcell string `arg short:"b" required help:"Protobuf<BcellFile> bcell.dat input file" type:"existingfile"`
|
|
}
|
|
|
|
type Addr2LineArgument struct {
|
|
Load string `short:"l" required help:"Load address of binary"`
|
|
Dwarf string `short:"d" required help:"Path to Mach-O DWARF binary file" type:"existingfile"`
|
|
Addresses []string `arg help:"Addresses to resolve"`
|
|
}
|
|
|
|
type LipoArgument struct {
|
|
Join struct {
|
|
Out string `short:"o" required help:"Output Fat binary file" type:"path"`
|
|
Macho []string `arg help:"Macho binaries to join" type:"existingfile"`
|
|
} `cmd help:"Join Macho binaries into Fat binary"`
|
|
Split struct {
|
|
Fat string `arg help:"Fat binary to split" type:"existingfile"`
|
|
} `cmd help:"Split fat binary into files, named <name>_<arch>"`
|
|
}
|
|
|
|
type PepeArgument struct {
|
|
OFile string `arg help:"Path to Mach-O/Fat binary file" type:"existingfile"`
|
|
}
|
|
|
|
type Argument struct {
|
|
Wrap WrapArgument `cmd help:"Modifies Mach-O/Fat binary"`
|
|
Vltk VltkArgument `cmd help:"Modifies Mach-O/Fat binary"`
|
|
Info InfoArgument `cmd help:"Show Mach-O/Fat binary information"`
|
|
RemoveCodesign RemoveCodesignArgument `cmd aliases:"remove-signature" name:"remove-codesign" help:"Remove LC_CODE_SIGNATURE from Mach-O/Fat binary"`
|
|
SignedBcell SignedBcellArgument `cmd name:"signed-bcell" help:"Change Protobuf<BcellFile> into Protobuf<SignedData>"`
|
|
DisplayBcell DisplayBcellArgument `cmd name:"display-bcell" help:"Display Protobuf<BcellFile> content"`
|
|
Addr2Line Addr2LineArgument `cmd name:"addr2line" help:"Resolve crash address from DWARF file"`
|
|
Lipo LipoArgument `cmd help:"split Fat binary or join Mach-O binares"`
|
|
Pepe PepeArgument `cmd help:"split Fat binary or join Mach-O binares"`
|
|
}
|