Skip to content

Commit

Permalink
Fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
kjamroz-bt committed Jun 14, 2019
1 parent 1f6ee93 commit 829e346
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions MachObfuscator/Options/Options.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ extension Options {
var debug = false
var machOViewDoom = false
var methTypeObfuscation = false
var switfReflectionObfuscation = false
var swiftReflectionObfuscation = false
var manglerKey = SymbolManglers.defaultManglerKey

struct OptLongChars {
Expand All @@ -50,15 +50,15 @@ extension Options {
}
enum OptLongCases: Int32 {
case OPT_FIRST = 256;
case switfrefl;
case swiftReflection;
};

let longopts: [option] = [
option(name: Options.newCCharPtrFromStaticString("help"), has_arg: no_argument, flag: nil, val: OptLongChars.help),
option(name: Options.newCCharPtrFromStaticString("verbose"), has_arg: no_argument, flag: nil, val: OptLongChars.verbose),
option(name: Options.newCCharPtrFromStaticString("methtype"), has_arg: no_argument, flag: nil, val: OptLongChars.methTypeObfuscation),
option(name: Options.newCCharPtrFromStaticString("machoview-doom"), has_arg: no_argument, flag: nil, val: OptLongChars.machOViewDoom),
option(name: Options.newCCharPtrFromStaticString("swift-reflection"), has_arg: no_argument, flag: nil, val: OptLongCases.switfrefl.rawValue),
option(name: Options.newCCharPtrFromStaticString("swift-reflection"), has_arg: no_argument, flag: nil, val: OptLongCases.swiftReflection.rawValue),
option(name: Options.newCCharPtrFromStaticString("mangler"), has_arg: required_argument, flag: nil, val: OptLongChars.manglerKey),
option() // { NULL, NULL, NULL, NULL }
];
Expand All @@ -79,8 +79,8 @@ extension Options {
machOViewDoom = true
case OptLongChars.manglerKey:
manglerKey = String(cString: optarg)
case OptLongCases.switfrefl.rawValue:
switfReflectionObfuscation = true;
case OptLongCases.swiftReflection.rawValue:
swiftReflectionObfuscation = true;
case OptLongChars.unknownOption:
help = true
break
Expand All @@ -106,7 +106,7 @@ extension Options {
debug: debug,
methTypeObfuscation: methTypeObfuscation,
machOViewDoom: machOViewDoom,
switfReflectionObfuscation: switfReflectionObfuscation,
switfReflectionObfuscation: swiftReflectionObfuscation,
manglerType: manglerType,
appDirectory: appDirectoryURL)
}
Expand All @@ -125,7 +125,7 @@ extension Options {
-t, --methtype obfuscate methType section (objc/runtime.h methods may work incorrectly)
-D, --machoview-doom MachOViewDoom, MachOView crashes after trying to open your binary (doesn't work with caesarMangler)
--swift-reflection obfuscate Swift reflection sections (typeref and reflstr)
--swift-reflection obfuscate Swift reflection sections (typeref and reflstr). May cause problems for Swift >= 4.2
-m mangler_key,
--mangler mangler_key select mangler to generate obfuscated symbols
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Options:
-t, --methtype obfuscate methType section (objc/runtime.h methods may work incorrectly)
-D, --machoview-doom MachOViewDoom, MachOView crashes after trying to open your binary (doesn't work with caesarMangler)
--swift-reflection obfuscate Swift reflection sections (typeref and reflstr). May cause problem for Swift >= 4.2
--swift-reflection obfuscate Swift reflection sections (typeref and reflstr). May cause problems for Swift >= 4.2
-m mangler_key,
--mangler mangler_key select mangler to generate obfuscated symbols
Expand Down

0 comments on commit 829e346

Please sign in to comment.