mirror of
https://github.com/blacktop/ipsw.git
synced 2026-05-08 12:22:26 +00:00
chore: various command typos
This commit is contained in:
@@ -31,10 +31,10 @@ func init() {
|
||||
AppstoreCmd.PersistentFlags().StringP("iss", "i", "", "Issuer ID")
|
||||
AppstoreCmd.PersistentFlags().StringP("kid", "k", "", "Key ID")
|
||||
AppstoreCmd.PersistentFlags().StringP("jwt", "j", "", "JWT api key")
|
||||
viper.BindPFlag("appstore.p8", AppstoreCmd.Flags().Lookup("p8"))
|
||||
viper.BindPFlag("appstore.iss", AppstoreCmd.Flags().Lookup("iss"))
|
||||
viper.BindPFlag("appstore.kid", AppstoreCmd.Flags().Lookup("kid"))
|
||||
viper.BindPFlag("appstore.jwt", AppstoreCmd.Flags().Lookup("jwt"))
|
||||
viper.BindPFlag("appstore.p8", AppstoreCmd.PersistentFlags().Lookup("p8"))
|
||||
viper.BindPFlag("appstore.iss", AppstoreCmd.PersistentFlags().Lookup("iss"))
|
||||
viper.BindPFlag("appstore.kid", AppstoreCmd.PersistentFlags().Lookup("kid"))
|
||||
viper.BindPFlag("appstore.jwt", AppstoreCmd.PersistentFlags().Lookup("jwt"))
|
||||
}
|
||||
|
||||
// AppstoreCmd represents the appstore command
|
||||
@@ -43,11 +43,6 @@ var AppstoreCmd = &cobra.Command{
|
||||
Aliases: []string{"as"},
|
||||
Short: "Interact with the App Store Connect API",
|
||||
Args: cobra.NoArgs,
|
||||
PersistentPreRun: func(cmd *cobra.Command, args []string) {
|
||||
viper.BindPFlag("color", cmd.Flags().Lookup("color"))
|
||||
viper.BindPFlag("no-color", cmd.Flags().Lookup("no-color"))
|
||||
viper.BindPFlag("verbose", cmd.Flags().Lookup("verbose"))
|
||||
},
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
cmd.Help()
|
||||
},
|
||||
|
||||
@@ -58,11 +58,6 @@ var ASBundleCapabilityAddCmd = &cobra.Command{
|
||||
}
|
||||
color.NoColor = viper.GetBool("no-color")
|
||||
|
||||
// parent flags
|
||||
viper.BindPFlag("appstore.p8", cmd.Flags().Lookup("p8"))
|
||||
viper.BindPFlag("appstore.iss", cmd.Flags().Lookup("iss"))
|
||||
viper.BindPFlag("appstore.kid", cmd.Flags().Lookup("kid"))
|
||||
viper.BindPFlag("appstore.jwt", cmd.Flags().Lookup("jwt"))
|
||||
// flags
|
||||
bid := viper.GetString("appstore.bundle.cap.add.id")
|
||||
ctype := viper.GetString("appstore.bundle.cap.add.type")
|
||||
|
||||
@@ -50,11 +50,6 @@ var ASBundleListCmd = &cobra.Command{
|
||||
}
|
||||
color.NoColor = viper.GetBool("no-color")
|
||||
|
||||
// parent flags
|
||||
viper.BindPFlag("appstore.p8", cmd.Flags().Lookup("p8"))
|
||||
viper.BindPFlag("appstore.iss", cmd.Flags().Lookup("iss"))
|
||||
viper.BindPFlag("appstore.kid", cmd.Flags().Lookup("kid"))
|
||||
viper.BindPFlag("appstore.jwt", cmd.Flags().Lookup("jwt"))
|
||||
// Validate flags
|
||||
if (viper.GetString("appstore.p8") == "" || viper.GetString("appstore.iss") == "" || viper.GetString("appstore.kid") == "") && viper.GetString("appstore.jwt") == "" {
|
||||
return fmt.Errorf("you must provide (--p8, --iss and --kid) OR --jwt")
|
||||
|
||||
@@ -62,11 +62,6 @@ var ASCertAddCmd = &cobra.Command{
|
||||
}
|
||||
color.NoColor = viper.GetBool("no-color")
|
||||
|
||||
// parent flags
|
||||
viper.BindPFlag("appstore.p8", cmd.Flags().Lookup("p8"))
|
||||
viper.BindPFlag("appstore.iss", cmd.Flags().Lookup("iss"))
|
||||
viper.BindPFlag("appstore.kid", cmd.Flags().Lookup("kid"))
|
||||
viper.BindPFlag("appstore.jwt", cmd.Flags().Lookup("jwt"))
|
||||
// flags
|
||||
ctype := viper.GetString("appstore.cert.add.type")
|
||||
csr := viper.GetString("appstore.cert.add.csr")
|
||||
|
||||
@@ -50,11 +50,6 @@ var ASCertListCmd = &cobra.Command{
|
||||
}
|
||||
color.NoColor = viper.GetBool("no-color")
|
||||
|
||||
// parent flags
|
||||
viper.BindPFlag("appstore.p8", cmd.Flags().Lookup("p8"))
|
||||
viper.BindPFlag("appstore.iss", cmd.Flags().Lookup("iss"))
|
||||
viper.BindPFlag("appstore.kid", cmd.Flags().Lookup("kid"))
|
||||
viper.BindPFlag("appstore.jwt", cmd.Flags().Lookup("jwt"))
|
||||
// Validate flags
|
||||
if (viper.GetString("appstore.p8") == "" || viper.GetString("appstore.iss") == "" || viper.GetString("appstore.kid") == "") && viper.GetString("appstore.jwt") == "" {
|
||||
return fmt.Errorf("you must provide (--p8, --iss and --kid) OR --jwt")
|
||||
|
||||
@@ -55,11 +55,6 @@ var ASCertRevokeCmd = &cobra.Command{
|
||||
}
|
||||
color.NoColor = viper.GetBool("no-color")
|
||||
|
||||
// parent flags
|
||||
viper.BindPFlag("appstore.p8", cmd.Flags().Lookup("p8"))
|
||||
viper.BindPFlag("appstore.iss", cmd.Flags().Lookup("iss"))
|
||||
viper.BindPFlag("appstore.kid", cmd.Flags().Lookup("kid"))
|
||||
viper.BindPFlag("appstore.jwt", cmd.Flags().Lookup("jwt"))
|
||||
// flags
|
||||
id := viper.GetString("appstore.cert.rm.id")
|
||||
// Validate flags
|
||||
|
||||
@@ -50,11 +50,6 @@ var ASDeviceListCmd = &cobra.Command{
|
||||
}
|
||||
color.NoColor = viper.GetBool("no-color")
|
||||
|
||||
// parent flags
|
||||
viper.BindPFlag("appstore.p8", cmd.Flags().Lookup("p8"))
|
||||
viper.BindPFlag("appstore.iss", cmd.Flags().Lookup("iss"))
|
||||
viper.BindPFlag("appstore.kid", cmd.Flags().Lookup("kid"))
|
||||
viper.BindPFlag("appstore.jwt", cmd.Flags().Lookup("jwt"))
|
||||
// Validate flags
|
||||
if (viper.GetString("appstore.p8") == "" || viper.GetString("appstore.iss") == "" || viper.GetString("appstore.kid") == "") && viper.GetString("appstore.jwt") == "" {
|
||||
return fmt.Errorf("you must provide (--p8, --iss and --kid) OR --jwt")
|
||||
|
||||
@@ -64,11 +64,6 @@ var ASDeviceModifyCmd = &cobra.Command{
|
||||
}
|
||||
color.NoColor = viper.GetBool("no-color")
|
||||
|
||||
// parent flags
|
||||
viper.BindPFlag("appstore.p8", cmd.Flags().Lookup("p8"))
|
||||
viper.BindPFlag("appstore.iss", cmd.Flags().Lookup("iss"))
|
||||
viper.BindPFlag("appstore.kid", cmd.Flags().Lookup("kid"))
|
||||
viper.BindPFlag("appstore.jwt", cmd.Flags().Lookup("jwt"))
|
||||
// flags
|
||||
id := viper.GetString("appstore.device.mod.id")
|
||||
name := viper.GetString("appstore.device.mod.name")
|
||||
|
||||
@@ -58,11 +58,6 @@ var ASDeviceRegisterCmd = &cobra.Command{
|
||||
}
|
||||
color.NoColor = viper.GetBool("no-color")
|
||||
|
||||
// parent flags
|
||||
viper.BindPFlag("appstore.p8", cmd.Flags().Lookup("p8"))
|
||||
viper.BindPFlag("appstore.iss", cmd.Flags().Lookup("iss"))
|
||||
viper.BindPFlag("appstore.kid", cmd.Flags().Lookup("kid"))
|
||||
viper.BindPFlag("appstore.jwt", cmd.Flags().Lookup("jwt"))
|
||||
// flags
|
||||
name := viper.GetString("appstore.device.reg.name")
|
||||
platform := viper.GetString("appstore.device.reg.platform")
|
||||
|
||||
@@ -73,11 +73,6 @@ var ASProfileCreateCmd = &cobra.Command{
|
||||
}
|
||||
color.NoColor = viper.GetBool("no-color")
|
||||
|
||||
// parent flags
|
||||
viper.BindPFlag("appstore.p8", cmd.Flags().Lookup("p8"))
|
||||
viper.BindPFlag("appstore.iss", cmd.Flags().Lookup("iss"))
|
||||
viper.BindPFlag("appstore.kid", cmd.Flags().Lookup("kid"))
|
||||
viper.BindPFlag("appstore.jwt", cmd.Flags().Lookup("jwt"))
|
||||
// flags
|
||||
bid := viper.GetString("appstore.profile.create.bundle-id")
|
||||
certs := viper.GetStringSlice("appstore.profile.create.certs")
|
||||
|
||||
@@ -50,11 +50,6 @@ var ASProfileListCmd = &cobra.Command{
|
||||
}
|
||||
color.NoColor = viper.GetBool("no-color")
|
||||
|
||||
// parent flags
|
||||
viper.BindPFlag("appstore.p8", cmd.Flags().Lookup("p8"))
|
||||
viper.BindPFlag("appstore.iss", cmd.Flags().Lookup("iss"))
|
||||
viper.BindPFlag("appstore.kid", cmd.Flags().Lookup("kid"))
|
||||
viper.BindPFlag("appstore.jwt", cmd.Flags().Lookup("jwt"))
|
||||
// Validate flags
|
||||
if (viper.GetString("appstore.p8") == "" || viper.GetString("appstore.iss") == "" || viper.GetString("appstore.kid") == "") && viper.GetString("appstore.jwt") == "" {
|
||||
return fmt.Errorf("you must provide (--p8, --iss and --kid) OR --jwt")
|
||||
|
||||
@@ -53,7 +53,7 @@ func init() {
|
||||
var ASProfileRenewCmd = &cobra.Command{
|
||||
Use: "renew <NAME>",
|
||||
Aliases: []string{"r"},
|
||||
Short: "Renew and expired or invalide provisioning profile",
|
||||
Short: "Renew an expired or invalid provisioning profile",
|
||||
Args: cobra.NoArgs,
|
||||
SilenceUsage: true,
|
||||
SilenceErrors: true,
|
||||
@@ -65,11 +65,6 @@ var ASProfileRenewCmd = &cobra.Command{
|
||||
}
|
||||
color.NoColor = viper.GetBool("no-color")
|
||||
|
||||
// parent flags
|
||||
viper.BindPFlag("appstore.p8", cmd.Flags().Lookup("p8"))
|
||||
viper.BindPFlag("appstore.iss", cmd.Flags().Lookup("iss"))
|
||||
viper.BindPFlag("appstore.kid", cmd.Flags().Lookup("kid"))
|
||||
viper.BindPFlag("appstore.jwt", cmd.Flags().Lookup("jwt"))
|
||||
// flags
|
||||
id := viper.GetString("appstore.profile.renew.id")
|
||||
name := viper.GetString("appstore.profile.renew.name")
|
||||
|
||||
@@ -58,11 +58,6 @@ var ASProfileRemoveCmd = &cobra.Command{
|
||||
}
|
||||
color.NoColor = viper.GetBool("no-color")
|
||||
|
||||
// parent flags
|
||||
viper.BindPFlag("appstore.p8", cmd.Flags().Lookup("p8"))
|
||||
viper.BindPFlag("appstore.iss", cmd.Flags().Lookup("iss"))
|
||||
viper.BindPFlag("appstore.kid", cmd.Flags().Lookup("kid"))
|
||||
viper.BindPFlag("appstore.jwt", cmd.Flags().Lookup("jwt"))
|
||||
// flags
|
||||
id := viper.GetString("appstore.profile.rm.id")
|
||||
name := viper.GetString("appstore.profile.rm.name")
|
||||
|
||||
@@ -72,11 +72,6 @@ for Xcode code signing.`,
|
||||
}
|
||||
color.NoColor = viper.GetBool("no-color")
|
||||
|
||||
// parent flags
|
||||
viper.BindPFlag("appstore.p8", cmd.Flags().Lookup("p8"))
|
||||
viper.BindPFlag("appstore.iss", cmd.Flags().Lookup("iss"))
|
||||
viper.BindPFlag("appstore.kid", cmd.Flags().Lookup("kid"))
|
||||
viper.BindPFlag("appstore.jwt", cmd.Flags().Lookup("jwt"))
|
||||
// flags
|
||||
certType := viper.GetString("appstore.provision.gen.type")
|
||||
csr := viper.GetBool("appstore.provision.gen.csr")
|
||||
|
||||
@@ -61,11 +61,6 @@ var ASReviewListCmd = &cobra.Command{
|
||||
}
|
||||
color.NoColor = viper.GetBool("no-color")
|
||||
|
||||
// parent flags
|
||||
viper.BindPFlag("appstore.p8", cmd.Flags().Lookup("p8"))
|
||||
viper.BindPFlag("appstore.iss", cmd.Flags().Lookup("iss"))
|
||||
viper.BindPFlag("appstore.kid", cmd.Flags().Lookup("kid"))
|
||||
viper.BindPFlag("appstore.jwt", cmd.Flags().Lookup("jwt"))
|
||||
// flags
|
||||
id := viper.GetString("appstore.review-list.id")
|
||||
after := viper.GetString("appstore.review-list.after")
|
||||
|
||||
@@ -47,10 +47,7 @@ var ASTokenCmd = &cobra.Command{
|
||||
color.NoColor = viper.GetBool("no-color")
|
||||
// flags
|
||||
lifetime := viper.GetDuration("appstore.token.lifetime")
|
||||
// parent flags
|
||||
viper.BindPFlag("appstore.p8", cmd.Flags().Lookup("p8"))
|
||||
viper.BindPFlag("appstore.iss", cmd.Flags().Lookup("iss"))
|
||||
viper.BindPFlag("appstore.kid", cmd.Flags().Lookup("kid"))
|
||||
|
||||
// Validate flags
|
||||
if viper.GetString("appstore.p8") == "" || viper.GetString("appstore.iss") == "" || viper.GetString("appstore.kid") == "" {
|
||||
return fmt.Errorf("you must provide --p8, --iss and --kid")
|
||||
|
||||
@@ -23,7 +23,6 @@ package disk
|
||||
|
||||
import (
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
)
|
||||
|
||||
// DiskCmd represents the disk command
|
||||
@@ -31,11 +30,6 @@ var DiskCmd = &cobra.Command{
|
||||
Use: "disk",
|
||||
Short: "Disk commands",
|
||||
Args: cobra.NoArgs,
|
||||
PersistentPreRun: func(cmd *cobra.Command, args []string) {
|
||||
viper.BindPFlag("color", cmd.Flags().Lookup("color"))
|
||||
viper.BindPFlag("no-color", cmd.Flags().Lookup("no-color"))
|
||||
viper.BindPFlag("verbose", cmd.Flags().Lookup("verbose"))
|
||||
},
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
cmd.Help()
|
||||
},
|
||||
|
||||
@@ -26,7 +26,6 @@ import (
|
||||
"strings"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
)
|
||||
|
||||
func getDestName(url string, removeCommas bool) string {
|
||||
@@ -42,12 +41,6 @@ var DownloadCmd = &cobra.Command{
|
||||
Aliases: []string{"dl"},
|
||||
Short: "Download Apple Firmware files (and more)",
|
||||
Args: cobra.NoArgs,
|
||||
PersistentPreRun: func(cmd *cobra.Command, args []string) {
|
||||
viper.BindPFlag("color", cmd.Flags().Lookup("color"))
|
||||
viper.BindPFlag("no-color", cmd.Flags().Lookup("no-color"))
|
||||
viper.BindPFlag("verbose", cmd.Flags().Lookup("verbose"))
|
||||
viper.BindPFlag("diff-tool", cmd.Flags().Lookup("diff-tool"))
|
||||
},
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
cmd.Help()
|
||||
},
|
||||
|
||||
@@ -89,7 +89,7 @@ func init() {
|
||||
downloadAppledbCmd.Flags().String("api-token", "", "Github API Token")
|
||||
downloadAppledbCmd.Flags().StringP("output", "o", "", "Folder to download files to")
|
||||
downloadAppledbCmd.MarkFlagDirname("output")
|
||||
downloadAppledbCmd.Flags().BoolP("flat", "f", false, "Do NOT perserve directory structure when downloading with --pattern")
|
||||
downloadAppledbCmd.Flags().BoolP("flat", "f", false, "Do NOT preserve directory structure when downloading with --pattern")
|
||||
downloadAppledbCmd.Flags().Bool("usb", false, "Download IPSWs for USB attached iDevices")
|
||||
downloadAppledbCmd.MarkFlagsMutuallyExclusive("release", "beta", "rc")
|
||||
// Bind persistent flags
|
||||
|
||||
@@ -79,7 +79,7 @@ func init() {
|
||||
downloadIpswCmd.Flags().Bool("fcs-keys", false, "Download AEA1 DMG fcs-key pem files")
|
||||
downloadIpswCmd.Flags().Bool("fcs-keys-json", false, "Download AEA1 DMG fcs-keys as JSON")
|
||||
downloadIpswCmd.Flags().Bool("decrypt", false, "Attempt to decrypt the partial files if keys are available")
|
||||
downloadIpswCmd.Flags().BoolP("flat", "f", false, "Do NOT perserve directory structure when downloading with --pattern")
|
||||
downloadIpswCmd.Flags().BoolP("flat", "f", false, "Do NOT preserve directory structure when downloading with --pattern")
|
||||
downloadIpswCmd.Flags().BoolP("urls", "u", false, "Dump URLs only")
|
||||
downloadIpswCmd.Flags().Bool("usb", false, "Download IPSWs for USB attached iDevices")
|
||||
downloadIpswCmd.Flags().StringP("output", "o", "", "Folder to download files to")
|
||||
|
||||
@@ -93,7 +93,7 @@ func init() {
|
||||
})
|
||||
downloadOtaCmd.Flags().Bool("driver-kit", false, "Extract DriverKit dyld_shared_cache(s) from remote OTA zip")
|
||||
downloadOtaCmd.Flags().String("pattern", "", "Download remote files that match regex")
|
||||
downloadOtaCmd.Flags().BoolP("flat", "f", false, "Do NOT perserve directory structure when downloading with --pattern")
|
||||
downloadOtaCmd.Flags().BoolP("flat", "f", false, "Do NOT preserve directory structure when downloading with --pattern")
|
||||
downloadOtaCmd.Flags().Bool("info", false, "Show all the latest OTAs available")
|
||||
downloadOtaCmd.Flags().StringP("output", "o", "", "Folder to download files to")
|
||||
downloadOtaCmd.MarkFlagDirname("output")
|
||||
|
||||
@@ -72,7 +72,7 @@ func init() {
|
||||
downloadWikiCmd.Flags().StringP("output", "o", "", "Folder to download files to")
|
||||
downloadWikiCmd.MarkFlagDirname("output")
|
||||
downloadWikiCmd.Flags().String("db", "wiki_db.json", "Path to local JSON database (will use CWD by default)")
|
||||
downloadWikiCmd.Flags().BoolP("flat", "f", false, "Do NOT perserve directory structure when downloading with --pattern")
|
||||
downloadWikiCmd.Flags().BoolP("flat", "f", false, "Do NOT preserve directory structure when downloading with --pattern")
|
||||
// Bind persistent flags
|
||||
viper.BindPFlag("download.wiki.proxy", downloadWikiCmd.Flags().Lookup("proxy"))
|
||||
viper.BindPFlag("download.wiki.insecure", downloadWikiCmd.Flags().Lookup("insecure"))
|
||||
|
||||
@@ -27,7 +27,6 @@ import (
|
||||
"github.com/blacktop/ipsw/pkg/dyld"
|
||||
"github.com/fatih/color"
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
)
|
||||
|
||||
var symAddrColor = color.New(color.Faint).SprintfFunc()
|
||||
@@ -75,12 +74,6 @@ var DyldCmd = &cobra.Command{
|
||||
Aliases: []string{"dsc"},
|
||||
Short: "Parse dyld_shared_cache",
|
||||
Args: cobra.NoArgs,
|
||||
PersistentPreRun: func(cmd *cobra.Command, args []string) {
|
||||
viper.BindPFlag("color", cmd.Flags().Lookup("color"))
|
||||
viper.BindPFlag("no-color", cmd.Flags().Lookup("no-color"))
|
||||
viper.BindPFlag("verbose", cmd.Flags().Lookup("verbose"))
|
||||
viper.BindPFlag("diff-tool", cmd.Flags().Lookup("diff-tool"))
|
||||
},
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
cmd.Help()
|
||||
},
|
||||
|
||||
@@ -242,7 +242,7 @@ var DisassCmd = &cobra.Command{
|
||||
Middle: 0,
|
||||
AsJSON: asJSON,
|
||||
Demangle: demangleFlag,
|
||||
Quite: quiet,
|
||||
Quiet: quiet,
|
||||
Color: viper.GetBool("color") && !viper.GetBool("no-color") && !decompile,
|
||||
})
|
||||
|
||||
@@ -357,7 +357,7 @@ var DisassCmd = &cobra.Command{
|
||||
Middle: 0,
|
||||
AsJSON: asJSON,
|
||||
Demangle: demangleFlag,
|
||||
Quite: quiet,
|
||||
Quiet: quiet,
|
||||
Color: viper.GetBool("color") && !viper.GetBool("no-color") && !decompile,
|
||||
})
|
||||
|
||||
@@ -503,7 +503,7 @@ var DisassCmd = &cobra.Command{
|
||||
Middle: middleAddr,
|
||||
AsJSON: asJSON,
|
||||
Demangle: demangleFlag,
|
||||
Quite: quiet,
|
||||
Quiet: quiet,
|
||||
Color: viper.GetBool("color") && !viper.GetBool("no-color") && !decompile,
|
||||
})
|
||||
|
||||
|
||||
@@ -193,7 +193,7 @@ var XrefCmd = &cobra.Command{
|
||||
engine := dyld.NewDyldDisass(f, &disass.Config{
|
||||
Data: data,
|
||||
StartAddress: fn.StartAddr,
|
||||
Quite: true,
|
||||
Quiet: true,
|
||||
})
|
||||
|
||||
if err := engine.Triage(); err != nil {
|
||||
|
||||
@@ -58,7 +58,7 @@ func init() {
|
||||
extractCmd.Flags().StringP("pattern", "p", "", "Extract files that match regex")
|
||||
extractCmd.Flags().StringP("output", "o", "", "Folder to extract files to")
|
||||
extractCmd.MarkFlagDirname("output")
|
||||
extractCmd.Flags().Bool("flat", false, "Do NOT perserve directory structure when extracting")
|
||||
extractCmd.Flags().Bool("flat", false, "Do NOT preserve directory structure when extracting")
|
||||
extractCmd.Flags().BoolP("json", "j", false, "Output extracted paths as JSON")
|
||||
extractCmd.Flags().StringArrayP("dyld-arch", "a", []string{}, "dyld_shared_cache architecture to extract")
|
||||
extractCmd.RegisterFlagCompletionFunc("dyld-arch", func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
|
||||
|
||||
@@ -25,7 +25,6 @@ package frida
|
||||
|
||||
import (
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
)
|
||||
|
||||
const fridaVersion = "17.2.0"
|
||||
@@ -40,13 +39,6 @@ var FridaCmd = &cobra.Command{
|
||||
Aliases: []string{"f"},
|
||||
Short: "Run Frida commands",
|
||||
Args: cobra.NoArgs,
|
||||
PersistentPreRun: func(cmd *cobra.Command, args []string) {
|
||||
viper.BindPFlag("color", cmd.Flags().Lookup("color"))
|
||||
viper.BindPFlag("no-color", cmd.Flags().Lookup("no-color"))
|
||||
viper.BindPFlag("verbose", cmd.Flags().Lookup("verbose"))
|
||||
viper.BindPFlag("frida.udid", cmd.Flags().Lookup("udid"))
|
||||
viper.BindPFlag("diff-tool", cmd.Flags().Lookup("diff-tool"))
|
||||
},
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
cmd.Help()
|
||||
},
|
||||
|
||||
@@ -23,7 +23,6 @@ package fw
|
||||
|
||||
import (
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
)
|
||||
|
||||
// FwCmd represents the fw command
|
||||
@@ -31,12 +30,6 @@ var FwCmd = &cobra.Command{
|
||||
Use: "fw",
|
||||
Short: "Firmware commands",
|
||||
Args: cobra.NoArgs,
|
||||
PersistentPreRun: func(cmd *cobra.Command, args []string) {
|
||||
viper.BindPFlag("color", cmd.Flags().Lookup("color"))
|
||||
viper.BindPFlag("no-color", cmd.Flags().Lookup("no-color"))
|
||||
viper.BindPFlag("verbose", cmd.Flags().Lookup("verbose"))
|
||||
viper.BindPFlag("diff-tool", cmd.Flags().Lookup("diff-tool"))
|
||||
},
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
cmd.Help()
|
||||
},
|
||||
|
||||
@@ -23,7 +23,6 @@ package idev
|
||||
|
||||
import (
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
)
|
||||
|
||||
func init() {
|
||||
@@ -36,13 +35,6 @@ var IDevCmd = &cobra.Command{
|
||||
Aliases: []string{"usb"},
|
||||
Short: "USB connected device commands",
|
||||
Args: cobra.NoArgs,
|
||||
PersistentPreRun: func(cmd *cobra.Command, args []string) {
|
||||
viper.BindPFlag("color", cmd.Flags().Lookup("color"))
|
||||
viper.BindPFlag("no-color", cmd.Flags().Lookup("no-color"))
|
||||
viper.BindPFlag("verbose", cmd.Flags().Lookup("verbose"))
|
||||
viper.BindPFlag("diff-tool", cmd.Flags().Lookup("diff-tool"))
|
||||
viper.BindPFlag("idev.udid", cmd.Flags().Lookup("udid"))
|
||||
},
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
cmd.Help()
|
||||
},
|
||||
|
||||
@@ -45,7 +45,7 @@ func init() {
|
||||
var idevAmfiDevModeCmd = &cobra.Command{
|
||||
Use: "dev",
|
||||
Aliases: []string{"d", "developer", "developer-mode"},
|
||||
Short: "Enabled Developer Mode on device",
|
||||
Short: "Enable Developer Mode on device",
|
||||
Args: cobra.NoArgs,
|
||||
SilenceUsage: true,
|
||||
SilenceErrors: true,
|
||||
|
||||
@@ -30,7 +30,7 @@ import (
|
||||
// backupCreateCmd represents the create command
|
||||
var backupCreateCmd = &cobra.Command{
|
||||
Use: "create",
|
||||
Short: "A brief description of your command",
|
||||
Short: "Create a backup",
|
||||
Long: `A longer description that spans multiple lines and likely contains examples
|
||||
and usage of using your command. For example:
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ import (
|
||||
// backupEraseCmd represents the erase command
|
||||
var backupEraseCmd = &cobra.Command{
|
||||
Use: "erase",
|
||||
Short: "A brief description of your command",
|
||||
Short: "Erase a backup",
|
||||
Long: `A longer description that spans multiple lines and likely contains examples
|
||||
and usage of using your command. For example:
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ import (
|
||||
// backupExtractCmd represents the extract command
|
||||
var backupExtractCmd = &cobra.Command{
|
||||
Use: "extract",
|
||||
Short: "A brief description of your command",
|
||||
Short: "Extract a backup",
|
||||
Long: `A longer description that spans multiple lines and likely contains examples
|
||||
and usage of using your command. For example:
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ import (
|
||||
// backupInfoCmd represents the info command
|
||||
var backupInfoCmd = &cobra.Command{
|
||||
Use: "info",
|
||||
Short: "A brief description of your command",
|
||||
Short: "Get backup info",
|
||||
Long: `A longer description that spans multiple lines and likely contains examples
|
||||
and usage of using your command. For example:
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ import (
|
||||
// backupLsCmd represents the ls command
|
||||
var backupLsCmd = &cobra.Command{
|
||||
Use: "ls",
|
||||
Short: "A brief description of your command",
|
||||
Short: "List backups",
|
||||
Long: `A longer description that spans multiple lines and likely contains examples
|
||||
and usage of using your command. For example:
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ import (
|
||||
// backupRestoreCmd represents the restore command
|
||||
var backupRestoreCmd = &cobra.Command{
|
||||
Use: "restore",
|
||||
Short: "A brief description of your command",
|
||||
Short: "Restore a backup",
|
||||
Long: `A longer description that spans multiple lines and likely contains examples
|
||||
and usage of using your command. For example:
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ import (
|
||||
// dvtInfoCmd represents the info command
|
||||
var dvtInfoCmd = &cobra.Command{
|
||||
Use: "info",
|
||||
Short: "A brief description of your command",
|
||||
Short: "Get DVT info",
|
||||
Long: `A longer description that spans multiple lines and likely contains examples
|
||||
and usage of using your command. For example:
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ import (
|
||||
// dvtLogsCmd represents the logs command
|
||||
var dvtLogsCmd = &cobra.Command{
|
||||
Use: "logs",
|
||||
Short: "A brief description of your command",
|
||||
Short: "Get DVT logs",
|
||||
Long: `A longer description that spans multiple lines and likely contains examples
|
||||
and usage of using your command. For example:
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ import (
|
||||
// dvtLsCmd represents the ls command
|
||||
var dvtLsCmd = &cobra.Command{
|
||||
Use: "ls",
|
||||
Short: "A brief description of your command",
|
||||
Short: "List DVT services",
|
||||
Long: `A longer description that spans multiple lines and likely contains examples
|
||||
and usage of using your command. For example:
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ import (
|
||||
// dvtMonCmd represents the mon command
|
||||
var dvtMonCmd = &cobra.Command{
|
||||
Use: "mon",
|
||||
Short: "A brief description of your command",
|
||||
Short: "Monitor DVT services",
|
||||
Long: `A longer description that spans multiple lines and likely contains examples
|
||||
and usage of using your command. For example:
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ import (
|
||||
// dvtNetCmd represents the net command
|
||||
var dvtNetCmd = &cobra.Command{
|
||||
Use: "net",
|
||||
Short: "A brief description of your command",
|
||||
Short: "Network related commands",
|
||||
Long: `A longer description that spans multiple lines and likely contains examples
|
||||
and usage of using your command. For example:
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ import (
|
||||
// dvtNotiCmd represents the noti command
|
||||
var dvtNotiCmd = &cobra.Command{
|
||||
Use: "noti",
|
||||
Short: "A brief description of your command",
|
||||
Short: "Notification related commands",
|
||||
Long: `A longer description that spans multiple lines and likely contains examples
|
||||
and usage of using your command. For example:
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ import (
|
||||
// dvtPsCmd represents the ps command
|
||||
var dvtPsCmd = &cobra.Command{
|
||||
Use: "ps",
|
||||
Short: "A brief description of your command",
|
||||
Short: "Process list",
|
||||
Long: `A longer description that spans multiple lines and likely contains examples
|
||||
and usage of using your command. For example:
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ func init() {
|
||||
// profLsCmd represents the ls command
|
||||
var profLsCmd = &cobra.Command{
|
||||
Use: "ls",
|
||||
Short: "List installed provision profiles",
|
||||
Short: "List installed provisioning profiles",
|
||||
SilenceUsage: true,
|
||||
SilenceErrors: true,
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
|
||||
@@ -39,7 +39,7 @@ func init() {
|
||||
// provClearCmd represents the clear command
|
||||
var provClearCmd = &cobra.Command{
|
||||
Use: "clear",
|
||||
Short: "Remove all provision profiles",
|
||||
Short: "Remove all provisioning profiles",
|
||||
SilenceUsage: true,
|
||||
SilenceErrors: true,
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
|
||||
@@ -43,7 +43,7 @@ func init() {
|
||||
// provDumpCmd represents the dump command
|
||||
var provDumpCmd = &cobra.Command{
|
||||
Use: "dump",
|
||||
Short: "Dump installed provision profiles",
|
||||
Short: "Dump installed provisioning profiles",
|
||||
SilenceUsage: true,
|
||||
SilenceErrors: true,
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
|
||||
@@ -39,7 +39,7 @@ func init() {
|
||||
// provInstallCmd represents the install command
|
||||
var provInstallCmd = &cobra.Command{
|
||||
Use: "install <PROV>",
|
||||
Short: "Install a provision profile (.mobileprovision file)",
|
||||
Short: "Install a provisioning profile (.mobileprovision file)",
|
||||
SilenceUsage: true,
|
||||
SilenceErrors: true,
|
||||
Args: cobra.ExactArgs(1),
|
||||
|
||||
@@ -42,7 +42,7 @@ func init() {
|
||||
// provLsCmd represents the ls command
|
||||
var provLsCmd = &cobra.Command{
|
||||
Use: "ls",
|
||||
Short: "List installed provision profiles",
|
||||
Short: "List installed provisioning profiles",
|
||||
SilenceUsage: true,
|
||||
SilenceErrors: true,
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
|
||||
@@ -39,7 +39,7 @@ func init() {
|
||||
// provRmCmd represents the rm command
|
||||
var provRmCmd = &cobra.Command{
|
||||
Use: "rm <PROV>",
|
||||
Short: "Remove a provision profile",
|
||||
Short: "Remove a provisioning profile",
|
||||
SilenceUsage: true,
|
||||
SilenceErrors: true,
|
||||
Args: cobra.ExactArgs(1),
|
||||
|
||||
@@ -23,7 +23,6 @@ package img3
|
||||
|
||||
import (
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
)
|
||||
|
||||
// Img3Cmd represents the img3 command
|
||||
@@ -31,12 +30,6 @@ var Img3Cmd = &cobra.Command{
|
||||
Use: "img3",
|
||||
Short: "Parse Img3",
|
||||
Args: cobra.NoArgs,
|
||||
PersistentPreRun: func(cmd *cobra.Command, args []string) {
|
||||
viper.BindPFlag("color", cmd.Flags().Lookup("color"))
|
||||
viper.BindPFlag("no-color", cmd.Flags().Lookup("no-color"))
|
||||
viper.BindPFlag("verbose", cmd.Flags().Lookup("verbose"))
|
||||
viper.BindPFlag("diff-tool", cmd.Flags().Lookup("diff-tool"))
|
||||
},
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
cmd.Help()
|
||||
},
|
||||
|
||||
@@ -22,10 +22,7 @@ THE SOFTWARE.
|
||||
package img4
|
||||
|
||||
import (
|
||||
"github.com/apex/log"
|
||||
"github.com/fatih/color"
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
)
|
||||
|
||||
// Img4Cmd represents the img4 command
|
||||
@@ -33,16 +30,6 @@ var Img4Cmd = &cobra.Command{
|
||||
Use: "img4",
|
||||
Short: "Parse and manipulate IMG4 files",
|
||||
Args: cobra.NoArgs,
|
||||
PersistentPreRun: func(cmd *cobra.Command, args []string) {
|
||||
viper.BindPFlag("color", cmd.Flags().Lookup("color"))
|
||||
viper.BindPFlag("no-color", cmd.Flags().Lookup("no-color"))
|
||||
viper.BindPFlag("verbose", cmd.Flags().Lookup("verbose"))
|
||||
viper.BindPFlag("diff-tool", cmd.Flags().Lookup("diff-tool"))
|
||||
if viper.GetBool("verbose") {
|
||||
log.SetLevel(log.DebugLevel)
|
||||
}
|
||||
color.NoColor = viper.GetBool("no-color")
|
||||
},
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
cmd.Help()
|
||||
},
|
||||
|
||||
@@ -23,7 +23,6 @@ package kernel
|
||||
|
||||
import (
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
)
|
||||
|
||||
// KernelcacheCmd represents the kernelcache command
|
||||
@@ -32,12 +31,6 @@ var KernelcacheCmd = &cobra.Command{
|
||||
Aliases: []string{"k"},
|
||||
Short: "Parse kernelcache",
|
||||
Args: cobra.NoArgs,
|
||||
PersistentPreRun: func(cmd *cobra.Command, args []string) {
|
||||
viper.BindPFlag("color", cmd.Flags().Lookup("color"))
|
||||
viper.BindPFlag("no-color", cmd.Flags().Lookup("no-color"))
|
||||
viper.BindPFlag("verbose", cmd.Flags().Lookup("verbose"))
|
||||
viper.BindPFlag("diff-tool", cmd.Flags().Lookup("diff-tool"))
|
||||
},
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
cmd.Help()
|
||||
},
|
||||
|
||||
@@ -49,7 +49,7 @@ func init() {
|
||||
var kextsCmd = &cobra.Command{
|
||||
Use: "kexts <kernelcache>",
|
||||
Aliases: []string{"k"},
|
||||
Short: "List kernel extentions",
|
||||
Short: "List kernel extensions",
|
||||
Args: cobra.MinimumNArgs(1),
|
||||
SilenceUsage: true,
|
||||
SilenceErrors: true,
|
||||
|
||||
@@ -23,7 +23,6 @@ package macho
|
||||
|
||||
import (
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
)
|
||||
|
||||
// MachoCmd represents the macho command
|
||||
@@ -32,12 +31,6 @@ var MachoCmd = &cobra.Command{
|
||||
Aliases: []string{"m"},
|
||||
Short: "Parse MachO",
|
||||
Args: cobra.NoArgs,
|
||||
PersistentPreRun: func(cmd *cobra.Command, args []string) {
|
||||
viper.BindPFlag("color", cmd.Flags().Lookup("color"))
|
||||
viper.BindPFlag("no-color", cmd.Flags().Lookup("no-color"))
|
||||
viper.BindPFlag("verbose", cmd.Flags().Lookup("verbose"))
|
||||
viper.BindPFlag("diff-tool", cmd.Flags().Lookup("diff-tool"))
|
||||
},
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
cmd.Help()
|
||||
},
|
||||
|
||||
@@ -245,7 +245,7 @@ var machoDisassCmd = &cobra.Command{
|
||||
Middle: 0,
|
||||
AsJSON: asJSON,
|
||||
Demangle: demangleFlag,
|
||||
Quite: quiet,
|
||||
Quiet: quiet,
|
||||
Color: viper.GetBool("color") && !viper.GetBool("no-color") && !decompile,
|
||||
})
|
||||
|
||||
@@ -371,7 +371,7 @@ var machoDisassCmd = &cobra.Command{
|
||||
Middle: middleAddr,
|
||||
AsJSON: asJSON,
|
||||
Demangle: demangleFlag,
|
||||
Quite: quiet,
|
||||
Quiet: quiet,
|
||||
Color: viper.GetBool("color") && !viper.GetBool("no-color") && !decompile,
|
||||
})
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ var supportedAddLCs = []string{
|
||||
func init() {
|
||||
machoPatchCmd.AddCommand(machoPatchAddCmd)
|
||||
machoPatchAddCmd.Flags().BoolP("overwrite", "f", false, "Overwrite file")
|
||||
machoPatchAddCmd.Flags().BoolP("re-sign", "s", false, "Adhoc sign file")
|
||||
machoPatchAddCmd.Flags().BoolP("re-sign", "s", false, "Ad-hoc sign file")
|
||||
machoPatchAddCmd.Flags().StringP("output", "o", "", "Output new file")
|
||||
viper.BindPFlag("macho.patch.add.overwrite", machoPatchAddCmd.Flags().Lookup("overwrite"))
|
||||
viper.BindPFlag("macho.patch.add.re-sign", machoPatchAddCmd.Flags().Lookup("re-sign"))
|
||||
|
||||
@@ -62,7 +62,7 @@ var supportedRmLCs = []string{
|
||||
func init() {
|
||||
machoPatchCmd.AddCommand(machoPatchRmCmd)
|
||||
machoPatchRmCmd.Flags().BoolP("overwrite", "f", false, "Overwrite file")
|
||||
machoPatchRmCmd.Flags().BoolP("re-sign", "s", false, "Adhoc sign file")
|
||||
machoPatchRmCmd.Flags().BoolP("re-sign", "s", false, "Ad-hoc sign file")
|
||||
machoPatchRmCmd.Flags().StringP("output", "o", "", "Output new file")
|
||||
viper.BindPFlag("macho.patch.rm.overwrite", machoPatchRmCmd.Flags().Lookup("overwrite"))
|
||||
viper.BindPFlag("macho.patch.rm.re-sign", machoPatchRmCmd.Flags().Lookup("re-sign"))
|
||||
|
||||
@@ -43,12 +43,6 @@ var OtaCmd = &cobra.Command{
|
||||
Use: "ota",
|
||||
Short: "Parse OTAs",
|
||||
Args: cobra.NoArgs,
|
||||
PersistentPreRun: func(cmd *cobra.Command, args []string) {
|
||||
viper.BindPFlag("color", cmd.Flags().Lookup("color"))
|
||||
viper.BindPFlag("no-color", cmd.Flags().Lookup("no-color"))
|
||||
viper.BindPFlag("verbose", cmd.Flags().Lookup("verbose"))
|
||||
viper.BindPFlag("diff-tool", cmd.Flags().Lookup("diff-tool"))
|
||||
},
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
cmd.Help()
|
||||
},
|
||||
|
||||
@@ -43,7 +43,7 @@ func init() {
|
||||
// pbzxCmd represents the pbzx command
|
||||
var pbzxCmd = &cobra.Command{
|
||||
Use: "pbzx",
|
||||
Short: "Decompess pbzx files",
|
||||
Short: "Decompress pbzx files",
|
||||
Args: cobra.ExactArgs(1),
|
||||
SilenceUsage: true,
|
||||
SilenceErrors: true,
|
||||
|
||||
@@ -23,7 +23,6 @@ package sb
|
||||
|
||||
import (
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
)
|
||||
|
||||
// SbCmd represents the sb command
|
||||
@@ -32,12 +31,6 @@ var SbCmd = &cobra.Command{
|
||||
Short: "Sandbox commands",
|
||||
Args: cobra.NoArgs,
|
||||
Hidden: true,
|
||||
PersistentPreRun: func(cmd *cobra.Command, args []string) {
|
||||
viper.BindPFlag("color", cmd.Flags().Lookup("color"))
|
||||
viper.BindPFlag("no-color", cmd.Flags().Lookup("no-color"))
|
||||
viper.BindPFlag("verbose", cmd.Flags().Lookup("verbose"))
|
||||
viper.BindPFlag("diff-tool", cmd.Flags().Lookup("diff-tool"))
|
||||
},
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
cmd.Help()
|
||||
},
|
||||
|
||||
@@ -46,11 +46,6 @@ var SSHCmd = &cobra.Command{
|
||||
Use: "ssh",
|
||||
Short: "SSH into a jailbroken device",
|
||||
Args: cobra.NoArgs,
|
||||
PersistentPreRun: func(cmd *cobra.Command, args []string) {
|
||||
viper.BindPFlag("color", cmd.Flags().Lookup("color"))
|
||||
viper.BindPFlag("no-color", cmd.Flags().Lookup("no-color"))
|
||||
viper.BindPFlag("verbose", cmd.Flags().Lookup("verbose"))
|
||||
},
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
cmd.Help()
|
||||
},
|
||||
|
||||
@@ -50,7 +50,7 @@ func init() {
|
||||
var sshDebugserverCmd = &cobra.Command{
|
||||
Use: "debugserver",
|
||||
Aliases: []string{"ds"},
|
||||
Short: "Prep device for remote debugging",
|
||||
Short: "Prepare device for remote debugging",
|
||||
Args: cobra.NoArgs,
|
||||
SilenceUsage: true,
|
||||
SilenceErrors: true,
|
||||
|
||||
@@ -126,7 +126,7 @@ type Config struct {
|
||||
Middle uint64
|
||||
AsJSON bool
|
||||
Demangle bool
|
||||
Quite bool
|
||||
Quiet bool
|
||||
Color bool
|
||||
}
|
||||
type AddrDetails struct {
|
||||
|
||||
+1
-1
@@ -40,7 +40,7 @@ func (d MachoDisass) Demangle() bool {
|
||||
return d.cfg.Demangle
|
||||
}
|
||||
func (d MachoDisass) Quite() bool {
|
||||
return d.cfg.Quite
|
||||
return d.cfg.Quiet
|
||||
}
|
||||
func (d MachoDisass) Color() bool {
|
||||
return d.cfg.Color
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@ func (d DyldDisass) Demangle() bool {
|
||||
return d.cfg.Demangle
|
||||
}
|
||||
func (d DyldDisass) Quite() bool {
|
||||
return d.cfg.Quite
|
||||
return d.cfg.Quiet
|
||||
}
|
||||
func (d DyldDisass) Color() bool {
|
||||
return d.cfg.Color
|
||||
|
||||
@@ -261,7 +261,7 @@ func getMigInitFunc(m *macho.File) (*types.Function, error) {
|
||||
engine := disass.NewMachoDisass(m, &disass.Config{
|
||||
Data: data,
|
||||
StartAddress: text.Addr,
|
||||
Quite: true,
|
||||
Quiet: true,
|
||||
})
|
||||
if err := engine.Triage(); err != nil {
|
||||
return nil, fmt.Errorf("first pass triage failed: %v", err)
|
||||
|
||||
@@ -97,7 +97,7 @@ func (sm SymbolMap) symbolicate(m *macho.File, name string, sigs Symbolicator, q
|
||||
engine := disass.NewMachoDisass(m, &disass.Config{
|
||||
Data: data,
|
||||
StartAddress: text.Addr,
|
||||
Quite: true,
|
||||
Quiet: true,
|
||||
})
|
||||
|
||||
log.WithField("name", name).Info("Analyzing MachO...")
|
||||
|
||||
Reference in New Issue
Block a user