├── .gitignore ├── DylibSearch.xcodeproj ├── project.pbxproj └── project.xcworkspace │ └── contents.xcworkspacedata ├── DylibSearch ├── AppDelegate.h ├── AppDelegate.m ├── AppScanner.h ├── AppScanner.m ├── Base.lproj │ ├── LaunchScreen.xib │ └── Main.storyboard ├── BorderButton.h ├── BorderButton.m ├── FileInfo.h ├── FileInfo.m ├── FileManager.h ├── FileManager.m ├── Images.xcassets │ ├── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── Icon-29pt_at_1.png │ │ ├── Icon-29pt_at_2-1.png │ │ ├── Icon-29pt_at_2.png │ │ ├── Icon-29pt_at_3.png │ │ ├── Icon-40pt_at_1.png │ │ ├── Icon-40pt_at_2-1.png │ │ ├── Icon-40pt_at_2.png │ │ ├── Icon-40pt_at_3.png │ │ ├── Icon-60pt_at_2.png │ │ ├── Icon-60pt_at_3.png │ │ ├── Icon-76pt_at_1.png │ │ └── Icon-76pt_at_2.png │ └── LaunchImage.launchimage │ │ ├── Contents.json │ │ ├── iphone4.png │ │ └── iphone5.png ├── Info.plist ├── OutputViewController.h ├── OutputViewController.m ├── SearchTableViewController.h ├── SearchTableViewController.m ├── Sysout.h ├── Sysout.m ├── ViewController.h ├── ViewController.m ├── cross.png ├── help.png ├── main.m ├── ok.png └── search.txt ├── DylibSearchTests ├── DylibSearchTests.m └── Info.plist ├── LICENSE └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | build/ 4 | *.pbxuser 5 | !default.pbxuser 6 | *.mode1v3 7 | !default.mode1v3 8 | *.mode2v3 9 | !default.mode2v3 10 | *.perspectivev3 11 | !default.perspectivev3 12 | xcuserdata 13 | *.xccheckout 14 | *.moved-aside 15 | DerivedData 16 | *.hmap 17 | *.ipa 18 | *.xcuserstate 19 | 20 | # CocoaPods 21 | # 22 | # We recommend against adding the Pods directory to your .gitignore. However 23 | # you should judge for yourself, the pros and cons are mentioned at: 24 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 25 | # 26 | #Pods/ 27 | -------------------------------------------------------------------------------- /DylibSearch.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 796DB8A81BEB609F00A79F6D /* AppScanner.m in Sources */ = {isa = PBXBuildFile; fileRef = 796DB8A71BEB609F00A79F6D /* AppScanner.m */; settings = {ASSET_TAGS = (); }; }; 11 | 796DB8AB1BEB69C700A79F6D /* BorderButton.m in Sources */ = {isa = PBXBuildFile; fileRef = 796DB8AA1BEB69C700A79F6D /* BorderButton.m */; settings = {ASSET_TAGS = (); }; }; 12 | 796DB8AE1BEB6A3700A79F6D /* OutputViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 796DB8AD1BEB6A3700A79F6D /* OutputViewController.m */; settings = {ASSET_TAGS = (); }; }; 13 | 796DB8B11BEB6AE400A79F6D /* Sysout.m in Sources */ = {isa = PBXBuildFile; fileRef = 796DB8B01BEB6AE400A79F6D /* Sysout.m */; settings = {ASSET_TAGS = (); }; }; 14 | 798A2AE21B99DD7D00F4131F /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 798A2AE11B99DD7D00F4131F /* main.m */; }; 15 | 798A2AE51B99DD7D00F4131F /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 798A2AE41B99DD7D00F4131F /* AppDelegate.m */; }; 16 | 798A2AE81B99DD7D00F4131F /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 798A2AE71B99DD7D00F4131F /* ViewController.m */; }; 17 | 798A2AEB1B99DD7D00F4131F /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 798A2AE91B99DD7D00F4131F /* Main.storyboard */; }; 18 | 798A2AED1B99DD7D00F4131F /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 798A2AEC1B99DD7D00F4131F /* Images.xcassets */; }; 19 | 798A2AF01B99DD7D00F4131F /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 798A2AEE1B99DD7D00F4131F /* LaunchScreen.xib */; }; 20 | 798A2AFC1B99DD7E00F4131F /* DylibSearchTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 798A2AFB1B99DD7E00F4131F /* DylibSearchTests.m */; }; 21 | 798A2B071B99DDB100F4131F /* SearchTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 798A2B061B99DDB100F4131F /* SearchTableViewController.m */; }; 22 | 798A2B0F1B99DF5000F4131F /* FileInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = 798A2B0E1B99DF5000F4131F /* FileInfo.m */; }; 23 | 798A2B131B99E0A300F4131F /* cross.png in Resources */ = {isa = PBXBuildFile; fileRef = 798A2B101B99E0A300F4131F /* cross.png */; }; 24 | 798A2B141B99E0A300F4131F /* help.png in Resources */ = {isa = PBXBuildFile; fileRef = 798A2B111B99E0A300F4131F /* help.png */; }; 25 | 798A2B151B99E0A300F4131F /* ok.png in Resources */ = {isa = PBXBuildFile; fileRef = 798A2B121B99E0A300F4131F /* ok.png */; }; 26 | 798A2B181B99E3F100F4131F /* FileManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 798A2B171B99E3F100F4131F /* FileManager.m */; }; 27 | 798A2B1A1B99E8FB00F4131F /* search.txt in Resources */ = {isa = PBXBuildFile; fileRef = 798A2B191B99E8FB00F4131F /* search.txt */; }; 28 | /* End PBXBuildFile section */ 29 | 30 | /* Begin PBXContainerItemProxy section */ 31 | 798A2AF61B99DD7E00F4131F /* PBXContainerItemProxy */ = { 32 | isa = PBXContainerItemProxy; 33 | containerPortal = 798A2AD41B99DD7D00F4131F /* Project object */; 34 | proxyType = 1; 35 | remoteGlobalIDString = 798A2ADB1B99DD7D00F4131F; 36 | remoteInfo = DylibSearch; 37 | }; 38 | /* End PBXContainerItemProxy section */ 39 | 40 | /* Begin PBXFileReference section */ 41 | 796DB8A61BEB609F00A79F6D /* AppScanner.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppScanner.h; sourceTree = ""; }; 42 | 796DB8A71BEB609F00A79F6D /* AppScanner.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppScanner.m; sourceTree = ""; }; 43 | 796DB8A91BEB69C700A79F6D /* BorderButton.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BorderButton.h; sourceTree = ""; }; 44 | 796DB8AA1BEB69C700A79F6D /* BorderButton.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BorderButton.m; sourceTree = ""; }; 45 | 796DB8AC1BEB6A3700A79F6D /* OutputViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OutputViewController.h; sourceTree = ""; }; 46 | 796DB8AD1BEB6A3700A79F6D /* OutputViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OutputViewController.m; sourceTree = ""; }; 47 | 796DB8AF1BEB6AE400A79F6D /* Sysout.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Sysout.h; sourceTree = ""; }; 48 | 796DB8B01BEB6AE400A79F6D /* Sysout.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Sysout.m; sourceTree = ""; }; 49 | 798A2ADC1B99DD7D00F4131F /* DylibSearch.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = DylibSearch.app; sourceTree = BUILT_PRODUCTS_DIR; }; 50 | 798A2AE01B99DD7D00F4131F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 51 | 798A2AE11B99DD7D00F4131F /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; lineEnding = 0; path = main.m; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.objc; }; 52 | 798A2AE31B99DD7D00F4131F /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = AppDelegate.h; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; }; 53 | 798A2AE41B99DD7D00F4131F /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; lineEnding = 0; path = AppDelegate.m; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.objc; }; 54 | 798A2AE61B99DD7D00F4131F /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = ViewController.h; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; }; 55 | 798A2AE71B99DD7D00F4131F /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; lineEnding = 0; path = ViewController.m; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.objc; }; 56 | 798A2AEA1B99DD7D00F4131F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 57 | 798A2AEC1B99DD7D00F4131F /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 58 | 798A2AEF1B99DD7D00F4131F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 59 | 798A2AF51B99DD7E00F4131F /* DylibSearchTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = DylibSearchTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 60 | 798A2AFA1B99DD7E00F4131F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 61 | 798A2AFB1B99DD7E00F4131F /* DylibSearchTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; lineEnding = 0; path = DylibSearchTests.m; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.objc; }; 62 | 798A2B051B99DDB100F4131F /* SearchTableViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = SearchTableViewController.h; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; }; 63 | 798A2B061B99DDB100F4131F /* SearchTableViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; lineEnding = 0; path = SearchTableViewController.m; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.objc; }; 64 | 798A2B0D1B99DF5000F4131F /* FileInfo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = FileInfo.h; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; }; 65 | 798A2B0E1B99DF5000F4131F /* FileInfo.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; lineEnding = 0; path = FileInfo.m; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.objc; }; 66 | 798A2B101B99E0A300F4131F /* cross.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = cross.png; sourceTree = ""; }; 67 | 798A2B111B99E0A300F4131F /* help.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = help.png; sourceTree = ""; }; 68 | 798A2B121B99E0A300F4131F /* ok.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = ok.png; sourceTree = ""; }; 69 | 798A2B161B99E3F100F4131F /* FileManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = FileManager.h; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; }; 70 | 798A2B171B99E3F100F4131F /* FileManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; lineEnding = 0; path = FileManager.m; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.objc; }; 71 | 798A2B191B99E8FB00F4131F /* search.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = search.txt; sourceTree = ""; }; 72 | /* End PBXFileReference section */ 73 | 74 | /* Begin PBXFrameworksBuildPhase section */ 75 | 798A2AD91B99DD7D00F4131F /* Frameworks */ = { 76 | isa = PBXFrameworksBuildPhase; 77 | buildActionMask = 2147483647; 78 | files = ( 79 | ); 80 | runOnlyForDeploymentPostprocessing = 0; 81 | }; 82 | 798A2AF21B99DD7E00F4131F /* Frameworks */ = { 83 | isa = PBXFrameworksBuildPhase; 84 | buildActionMask = 2147483647; 85 | files = ( 86 | ); 87 | runOnlyForDeploymentPostprocessing = 0; 88 | }; 89 | /* End PBXFrameworksBuildPhase section */ 90 | 91 | /* Begin PBXGroup section */ 92 | 798A2AD31B99DD7D00F4131F = { 93 | isa = PBXGroup; 94 | children = ( 95 | 798A2ADE1B99DD7D00F4131F /* DylibSearch */, 96 | 798A2AF81B99DD7E00F4131F /* DylibSearchTests */, 97 | 798A2ADD1B99DD7D00F4131F /* Products */, 98 | ); 99 | sourceTree = ""; 100 | }; 101 | 798A2ADD1B99DD7D00F4131F /* Products */ = { 102 | isa = PBXGroup; 103 | children = ( 104 | 798A2ADC1B99DD7D00F4131F /* DylibSearch.app */, 105 | 798A2AF51B99DD7E00F4131F /* DylibSearchTests.xctest */, 106 | ); 107 | name = Products; 108 | sourceTree = ""; 109 | }; 110 | 798A2ADE1B99DD7D00F4131F /* DylibSearch */ = { 111 | isa = PBXGroup; 112 | children = ( 113 | 798A2B101B99E0A300F4131F /* cross.png */, 114 | 798A2B111B99E0A300F4131F /* help.png */, 115 | 798A2B121B99E0A300F4131F /* ok.png */, 116 | 798A2AE31B99DD7D00F4131F /* AppDelegate.h */, 117 | 798A2AE41B99DD7D00F4131F /* AppDelegate.m */, 118 | 798A2AE61B99DD7D00F4131F /* ViewController.h */, 119 | 798A2AE71B99DD7D00F4131F /* ViewController.m */, 120 | 796DB8AC1BEB6A3700A79F6D /* OutputViewController.h */, 121 | 796DB8AD1BEB6A3700A79F6D /* OutputViewController.m */, 122 | 798A2AE91B99DD7D00F4131F /* Main.storyboard */, 123 | 798A2AEC1B99DD7D00F4131F /* Images.xcassets */, 124 | 798A2AEE1B99DD7D00F4131F /* LaunchScreen.xib */, 125 | 798A2ADF1B99DD7D00F4131F /* Supporting Files */, 126 | 798A2B051B99DDB100F4131F /* SearchTableViewController.h */, 127 | 798A2B061B99DDB100F4131F /* SearchTableViewController.m */, 128 | 798A2B0D1B99DF5000F4131F /* FileInfo.h */, 129 | 798A2B0E1B99DF5000F4131F /* FileInfo.m */, 130 | 798A2B161B99E3F100F4131F /* FileManager.h */, 131 | 798A2B171B99E3F100F4131F /* FileManager.m */, 132 | 798A2B191B99E8FB00F4131F /* search.txt */, 133 | 796DB8A61BEB609F00A79F6D /* AppScanner.h */, 134 | 796DB8A71BEB609F00A79F6D /* AppScanner.m */, 135 | 796DB8A91BEB69C700A79F6D /* BorderButton.h */, 136 | 796DB8AA1BEB69C700A79F6D /* BorderButton.m */, 137 | 796DB8AF1BEB6AE400A79F6D /* Sysout.h */, 138 | 796DB8B01BEB6AE400A79F6D /* Sysout.m */, 139 | ); 140 | path = DylibSearch; 141 | sourceTree = ""; 142 | }; 143 | 798A2ADF1B99DD7D00F4131F /* Supporting Files */ = { 144 | isa = PBXGroup; 145 | children = ( 146 | 798A2AE01B99DD7D00F4131F /* Info.plist */, 147 | 798A2AE11B99DD7D00F4131F /* main.m */, 148 | ); 149 | name = "Supporting Files"; 150 | sourceTree = ""; 151 | }; 152 | 798A2AF81B99DD7E00F4131F /* DylibSearchTests */ = { 153 | isa = PBXGroup; 154 | children = ( 155 | 798A2AFB1B99DD7E00F4131F /* DylibSearchTests.m */, 156 | 798A2AF91B99DD7E00F4131F /* Supporting Files */, 157 | ); 158 | path = DylibSearchTests; 159 | sourceTree = ""; 160 | }; 161 | 798A2AF91B99DD7E00F4131F /* Supporting Files */ = { 162 | isa = PBXGroup; 163 | children = ( 164 | 798A2AFA1B99DD7E00F4131F /* Info.plist */, 165 | ); 166 | name = "Supporting Files"; 167 | sourceTree = ""; 168 | }; 169 | /* End PBXGroup section */ 170 | 171 | /* Begin PBXNativeTarget section */ 172 | 798A2ADB1B99DD7D00F4131F /* DylibSearch */ = { 173 | isa = PBXNativeTarget; 174 | buildConfigurationList = 798A2AFF1B99DD7E00F4131F /* Build configuration list for PBXNativeTarget "DylibSearch" */; 175 | buildPhases = ( 176 | 798A2AD81B99DD7D00F4131F /* Sources */, 177 | 798A2AD91B99DD7D00F4131F /* Frameworks */, 178 | 798A2ADA1B99DD7D00F4131F /* Resources */, 179 | ); 180 | buildRules = ( 181 | ); 182 | dependencies = ( 183 | ); 184 | name = DylibSearch; 185 | productName = DylibSearch; 186 | productReference = 798A2ADC1B99DD7D00F4131F /* DylibSearch.app */; 187 | productType = "com.apple.product-type.application"; 188 | }; 189 | 798A2AF41B99DD7E00F4131F /* DylibSearchTests */ = { 190 | isa = PBXNativeTarget; 191 | buildConfigurationList = 798A2B021B99DD7E00F4131F /* Build configuration list for PBXNativeTarget "DylibSearchTests" */; 192 | buildPhases = ( 193 | 798A2AF11B99DD7E00F4131F /* Sources */, 194 | 798A2AF21B99DD7E00F4131F /* Frameworks */, 195 | 798A2AF31B99DD7E00F4131F /* Resources */, 196 | ); 197 | buildRules = ( 198 | ); 199 | dependencies = ( 200 | 798A2AF71B99DD7E00F4131F /* PBXTargetDependency */, 201 | ); 202 | name = DylibSearchTests; 203 | productName = DylibSearchTests; 204 | productReference = 798A2AF51B99DD7E00F4131F /* DylibSearchTests.xctest */; 205 | productType = "com.apple.product-type.bundle.unit-test"; 206 | }; 207 | /* End PBXNativeTarget section */ 208 | 209 | /* Begin PBXProject section */ 210 | 798A2AD41B99DD7D00F4131F /* Project object */ = { 211 | isa = PBXProject; 212 | attributes = { 213 | LastUpgradeCheck = 0640; 214 | ORGANIZATIONNAME = posdorfer; 215 | TargetAttributes = { 216 | 798A2ADB1B99DD7D00F4131F = { 217 | CreatedOnToolsVersion = 6.4; 218 | }; 219 | 798A2AF41B99DD7E00F4131F = { 220 | CreatedOnToolsVersion = 6.4; 221 | TestTargetID = 798A2ADB1B99DD7D00F4131F; 222 | }; 223 | }; 224 | }; 225 | buildConfigurationList = 798A2AD71B99DD7D00F4131F /* Build configuration list for PBXProject "DylibSearch" */; 226 | compatibilityVersion = "Xcode 3.2"; 227 | developmentRegion = English; 228 | hasScannedForEncodings = 0; 229 | knownRegions = ( 230 | en, 231 | Base, 232 | ); 233 | mainGroup = 798A2AD31B99DD7D00F4131F; 234 | productRefGroup = 798A2ADD1B99DD7D00F4131F /* Products */; 235 | projectDirPath = ""; 236 | projectRoot = ""; 237 | targets = ( 238 | 798A2ADB1B99DD7D00F4131F /* DylibSearch */, 239 | 798A2AF41B99DD7E00F4131F /* DylibSearchTests */, 240 | ); 241 | }; 242 | /* End PBXProject section */ 243 | 244 | /* Begin PBXResourcesBuildPhase section */ 245 | 798A2ADA1B99DD7D00F4131F /* Resources */ = { 246 | isa = PBXResourcesBuildPhase; 247 | buildActionMask = 2147483647; 248 | files = ( 249 | 798A2B151B99E0A300F4131F /* ok.png in Resources */, 250 | 798A2B131B99E0A300F4131F /* cross.png in Resources */, 251 | 798A2B1A1B99E8FB00F4131F /* search.txt in Resources */, 252 | 798A2B141B99E0A300F4131F /* help.png in Resources */, 253 | 798A2AEB1B99DD7D00F4131F /* Main.storyboard in Resources */, 254 | 798A2AF01B99DD7D00F4131F /* LaunchScreen.xib in Resources */, 255 | 798A2AED1B99DD7D00F4131F /* Images.xcassets in Resources */, 256 | ); 257 | runOnlyForDeploymentPostprocessing = 0; 258 | }; 259 | 798A2AF31B99DD7E00F4131F /* Resources */ = { 260 | isa = PBXResourcesBuildPhase; 261 | buildActionMask = 2147483647; 262 | files = ( 263 | ); 264 | runOnlyForDeploymentPostprocessing = 0; 265 | }; 266 | /* End PBXResourcesBuildPhase section */ 267 | 268 | /* Begin PBXSourcesBuildPhase section */ 269 | 798A2AD81B99DD7D00F4131F /* Sources */ = { 270 | isa = PBXSourcesBuildPhase; 271 | buildActionMask = 2147483647; 272 | files = ( 273 | 798A2AE81B99DD7D00F4131F /* ViewController.m in Sources */, 274 | 798A2AE51B99DD7D00F4131F /* AppDelegate.m in Sources */, 275 | 796DB8AE1BEB6A3700A79F6D /* OutputViewController.m in Sources */, 276 | 798A2B0F1B99DF5000F4131F /* FileInfo.m in Sources */, 277 | 796DB8AB1BEB69C700A79F6D /* BorderButton.m in Sources */, 278 | 798A2AE21B99DD7D00F4131F /* main.m in Sources */, 279 | 796DB8B11BEB6AE400A79F6D /* Sysout.m in Sources */, 280 | 796DB8A81BEB609F00A79F6D /* AppScanner.m in Sources */, 281 | 798A2B071B99DDB100F4131F /* SearchTableViewController.m in Sources */, 282 | 798A2B181B99E3F100F4131F /* FileManager.m in Sources */, 283 | ); 284 | runOnlyForDeploymentPostprocessing = 0; 285 | }; 286 | 798A2AF11B99DD7E00F4131F /* Sources */ = { 287 | isa = PBXSourcesBuildPhase; 288 | buildActionMask = 2147483647; 289 | files = ( 290 | 798A2AFC1B99DD7E00F4131F /* DylibSearchTests.m in Sources */, 291 | ); 292 | runOnlyForDeploymentPostprocessing = 0; 293 | }; 294 | /* End PBXSourcesBuildPhase section */ 295 | 296 | /* Begin PBXTargetDependency section */ 297 | 798A2AF71B99DD7E00F4131F /* PBXTargetDependency */ = { 298 | isa = PBXTargetDependency; 299 | target = 798A2ADB1B99DD7D00F4131F /* DylibSearch */; 300 | targetProxy = 798A2AF61B99DD7E00F4131F /* PBXContainerItemProxy */; 301 | }; 302 | /* End PBXTargetDependency section */ 303 | 304 | /* Begin PBXVariantGroup section */ 305 | 798A2AE91B99DD7D00F4131F /* Main.storyboard */ = { 306 | isa = PBXVariantGroup; 307 | children = ( 308 | 798A2AEA1B99DD7D00F4131F /* Base */, 309 | ); 310 | name = Main.storyboard; 311 | sourceTree = ""; 312 | }; 313 | 798A2AEE1B99DD7D00F4131F /* LaunchScreen.xib */ = { 314 | isa = PBXVariantGroup; 315 | children = ( 316 | 798A2AEF1B99DD7D00F4131F /* Base */, 317 | ); 318 | name = LaunchScreen.xib; 319 | sourceTree = ""; 320 | }; 321 | /* End PBXVariantGroup section */ 322 | 323 | /* Begin XCBuildConfiguration section */ 324 | 798A2AFD1B99DD7E00F4131F /* Debug */ = { 325 | isa = XCBuildConfiguration; 326 | buildSettings = { 327 | ALWAYS_SEARCH_USER_PATHS = NO; 328 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 329 | CLANG_CXX_LIBRARY = "libc++"; 330 | CLANG_ENABLE_MODULES = YES; 331 | CLANG_ENABLE_OBJC_ARC = YES; 332 | CLANG_WARN_BOOL_CONVERSION = YES; 333 | CLANG_WARN_CONSTANT_CONVERSION = YES; 334 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 335 | CLANG_WARN_EMPTY_BODY = YES; 336 | CLANG_WARN_ENUM_CONVERSION = YES; 337 | CLANG_WARN_INT_CONVERSION = YES; 338 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 339 | CLANG_WARN_UNREACHABLE_CODE = YES; 340 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 341 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 342 | COPY_PHASE_STRIP = NO; 343 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 344 | ENABLE_STRICT_OBJC_MSGSEND = YES; 345 | GCC_C_LANGUAGE_STANDARD = gnu99; 346 | GCC_DYNAMIC_NO_PIC = NO; 347 | GCC_NO_COMMON_BLOCKS = YES; 348 | GCC_OPTIMIZATION_LEVEL = 0; 349 | GCC_PREPROCESSOR_DEFINITIONS = ( 350 | "DEBUG=1", 351 | "$(inherited)", 352 | ); 353 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 354 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 355 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 356 | GCC_WARN_UNDECLARED_SELECTOR = YES; 357 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 358 | GCC_WARN_UNUSED_FUNCTION = YES; 359 | GCC_WARN_UNUSED_VARIABLE = YES; 360 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 361 | MTL_ENABLE_DEBUG_INFO = YES; 362 | ONLY_ACTIVE_ARCH = YES; 363 | SDKROOT = iphoneos; 364 | TARGETED_DEVICE_FAMILY = "1,2"; 365 | }; 366 | name = Debug; 367 | }; 368 | 798A2AFE1B99DD7E00F4131F /* Release */ = { 369 | isa = XCBuildConfiguration; 370 | buildSettings = { 371 | ALWAYS_SEARCH_USER_PATHS = NO; 372 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 373 | CLANG_CXX_LIBRARY = "libc++"; 374 | CLANG_ENABLE_MODULES = YES; 375 | CLANG_ENABLE_OBJC_ARC = YES; 376 | CLANG_WARN_BOOL_CONVERSION = YES; 377 | CLANG_WARN_CONSTANT_CONVERSION = YES; 378 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 379 | CLANG_WARN_EMPTY_BODY = YES; 380 | CLANG_WARN_ENUM_CONVERSION = YES; 381 | CLANG_WARN_INT_CONVERSION = YES; 382 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 383 | CLANG_WARN_UNREACHABLE_CODE = YES; 384 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 385 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 386 | COPY_PHASE_STRIP = NO; 387 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 388 | ENABLE_NS_ASSERTIONS = NO; 389 | ENABLE_STRICT_OBJC_MSGSEND = YES; 390 | GCC_C_LANGUAGE_STANDARD = gnu99; 391 | GCC_NO_COMMON_BLOCKS = YES; 392 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 393 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 394 | GCC_WARN_UNDECLARED_SELECTOR = YES; 395 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 396 | GCC_WARN_UNUSED_FUNCTION = YES; 397 | GCC_WARN_UNUSED_VARIABLE = YES; 398 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 399 | MTL_ENABLE_DEBUG_INFO = NO; 400 | SDKROOT = iphoneos; 401 | TARGETED_DEVICE_FAMILY = "1,2"; 402 | VALIDATE_PRODUCT = YES; 403 | }; 404 | name = Release; 405 | }; 406 | 798A2B001B99DD7E00F4131F /* Debug */ = { 407 | isa = XCBuildConfiguration; 408 | buildSettings = { 409 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 410 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 411 | INFOPLIST_FILE = DylibSearch/Info.plist; 412 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 413 | PRODUCT_NAME = "$(TARGET_NAME)"; 414 | }; 415 | name = Debug; 416 | }; 417 | 798A2B011B99DD7E00F4131F /* Release */ = { 418 | isa = XCBuildConfiguration; 419 | buildSettings = { 420 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 421 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 422 | INFOPLIST_FILE = DylibSearch/Info.plist; 423 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 424 | PRODUCT_NAME = "$(TARGET_NAME)"; 425 | }; 426 | name = Release; 427 | }; 428 | 798A2B031B99DD7E00F4131F /* Debug */ = { 429 | isa = XCBuildConfiguration; 430 | buildSettings = { 431 | BUNDLE_LOADER = "$(TEST_HOST)"; 432 | FRAMEWORK_SEARCH_PATHS = ( 433 | "$(SDKROOT)/Developer/Library/Frameworks", 434 | "$(inherited)", 435 | ); 436 | GCC_PREPROCESSOR_DEFINITIONS = ( 437 | "DEBUG=1", 438 | "$(inherited)", 439 | ); 440 | INFOPLIST_FILE = DylibSearchTests/Info.plist; 441 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 442 | PRODUCT_NAME = "$(TARGET_NAME)"; 443 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/DylibSearch.app/DylibSearch"; 444 | }; 445 | name = Debug; 446 | }; 447 | 798A2B041B99DD7E00F4131F /* Release */ = { 448 | isa = XCBuildConfiguration; 449 | buildSettings = { 450 | BUNDLE_LOADER = "$(TEST_HOST)"; 451 | FRAMEWORK_SEARCH_PATHS = ( 452 | "$(SDKROOT)/Developer/Library/Frameworks", 453 | "$(inherited)", 454 | ); 455 | INFOPLIST_FILE = DylibSearchTests/Info.plist; 456 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 457 | PRODUCT_NAME = "$(TARGET_NAME)"; 458 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/DylibSearch.app/DylibSearch"; 459 | }; 460 | name = Release; 461 | }; 462 | /* End XCBuildConfiguration section */ 463 | 464 | /* Begin XCConfigurationList section */ 465 | 798A2AD71B99DD7D00F4131F /* Build configuration list for PBXProject "DylibSearch" */ = { 466 | isa = XCConfigurationList; 467 | buildConfigurations = ( 468 | 798A2AFD1B99DD7E00F4131F /* Debug */, 469 | 798A2AFE1B99DD7E00F4131F /* Release */, 470 | ); 471 | defaultConfigurationIsVisible = 0; 472 | defaultConfigurationName = Release; 473 | }; 474 | 798A2AFF1B99DD7E00F4131F /* Build configuration list for PBXNativeTarget "DylibSearch" */ = { 475 | isa = XCConfigurationList; 476 | buildConfigurations = ( 477 | 798A2B001B99DD7E00F4131F /* Debug */, 478 | 798A2B011B99DD7E00F4131F /* Release */, 479 | ); 480 | defaultConfigurationIsVisible = 0; 481 | defaultConfigurationName = Release; 482 | }; 483 | 798A2B021B99DD7E00F4131F /* Build configuration list for PBXNativeTarget "DylibSearchTests" */ = { 484 | isa = XCConfigurationList; 485 | buildConfigurations = ( 486 | 798A2B031B99DD7E00F4131F /* Debug */, 487 | 798A2B041B99DD7E00F4131F /* Release */, 488 | ); 489 | defaultConfigurationIsVisible = 0; 490 | defaultConfigurationName = Release; 491 | }; 492 | /* End XCConfigurationList section */ 493 | }; 494 | rootObject = 798A2AD41B99DD7D00F4131F /* Project object */; 495 | } 496 | -------------------------------------------------------------------------------- /DylibSearch.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /DylibSearch/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // DylibSearch 4 | // 5 | // Created by Mordredd666 on 04.09.15. 6 | // Copyright (c) 2015 Mordredd666. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "Sysout.h" 11 | 12 | @interface AppDelegate : UIResponder 13 | 14 | @property (strong, nonatomic) UIWindow *window; 15 | 16 | 17 | @end 18 | 19 | 20 | 21 | @interface SysoutToStd :NSObject 22 | @end -------------------------------------------------------------------------------- /DylibSearch/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // DylibSearch 4 | // 5 | // Created by Mordredd666 on 04.09.15. 6 | // Copyright (c) 2015 Mordredd666. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | 12 | @interface AppDelegate () 13 | 14 | @property (nonatomic,retain) id sysout; 15 | 16 | @end 17 | 18 | 19 | 20 | @implementation SysoutToStd 21 | 22 | - (void) print:(NSString*) stringToPrint 23 | { 24 | NSLog(@"%@", stringToPrint); 25 | } 26 | 27 | @end 28 | 29 | 30 | @implementation AppDelegate 31 | 32 | 33 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 34 | // Override point for customization after application launch. 35 | 36 | self.sysout = [Sysout sharedManager]; 37 | [self.sysout addObserver:[SysoutToStd new]]; 38 | 39 | return YES; 40 | } 41 | 42 | - (void)applicationWillResignActive:(UIApplication *)application { 43 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 44 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 45 | } 46 | 47 | - (void)applicationDidEnterBackground:(UIApplication *)application { 48 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 49 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 50 | } 51 | 52 | - (void)applicationWillEnterForeground:(UIApplication *)application { 53 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 54 | } 55 | 56 | - (void)applicationDidBecomeActive:(UIApplication *)application { 57 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 58 | } 59 | 60 | - (void)applicationWillTerminate:(UIApplication *)application { 61 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 62 | } 63 | 64 | @end 65 | -------------------------------------------------------------------------------- /DylibSearch/AppScanner.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppScanner.h 3 | // DylibSearch 4 | // 5 | // Created by wolf on 05.11.15. 6 | // Copyright © 2015 posdorfer. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppScanner : NSObject 12 | 13 | 14 | +(void) startScanning; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /DylibSearch/AppScanner.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppScanner.m 3 | // DylibSearch 4 | // 5 | // Created by wolf on 05.11.15. 6 | // Copyright © 2015 posdorfer. All rights reserved. 7 | // 8 | 9 | #import "Sysout.h" 10 | #import "AppScanner.h" 11 | #include 12 | #import 13 | #import 14 | 15 | //@interface LSApplicationProxy : NSObject 16 | //{ 17 | // unsigned int _flags; 18 | // unsigned int _bundleFlags; 19 | // NSArray *_privateDocumentIconNames; 20 | // LSApplicationProxy *_privateDocumentTypeOwner; 21 | // NSArray *_directionsModes; 22 | // NSArray *_UIBackgroundModes; 23 | // NSArray *_audioComponents; 24 | // BOOL _profileValidated; 25 | // BOOL _isPlaceholder; 26 | // BOOL _isAppUpdate; 27 | // BOOL _isNewsstandApp; 28 | // BOOL _isRestricted; 29 | // BOOL _foundBackingBundle; 30 | // NSString *_applicationType; 31 | // NSString *_signerIdentity; 32 | // NSDictionary *_entitlements; 33 | // NSDictionary *_environmentVariables; 34 | // NSArray *_machOUUIDs; 35 | // NSString *_vendorID; 36 | // NSString *_vendorName; 37 | // NSString *_bundleVersion; 38 | // NSString *_shortVersionString; 39 | // NSDictionary* _groupContainers; 40 | // NSURL *_bundleURL; 41 | // unsigned int _installType; 42 | //} 43 | //@end 44 | 45 | @interface LSApplicationProxy : NSObject 46 | { 47 | NSNumber *_ODRDiskUsage; 48 | NSArray *_UIBackgroundModes; 49 | NSArray *_VPNPlugins; 50 | NSArray *_appTags; 51 | NSString *_applicationDSID; 52 | NSString *_applicationVariant; 53 | NSArray *_audioComponents; 54 | NSString *_companionAppIdentifier; 55 | NSArray *_deviceFamily; 56 | NSUUID *_deviceIdentifierForVendor; 57 | NSArray *_directionsModes; 58 | NSNumber *_downloaderDSID; 59 | NSNumber *_dynamicDiskUsage; 60 | NSArray *_externalAccessoryProtocols; 61 | NSNumber *_familyID; 62 | unsigned int _flags; 63 | NSDictionary *_groupContainers; 64 | NSArray *_groupIdentifiers; 65 | unsigned int _installType; 66 | BOOL _isContainerized; 67 | NSNumber *_itemID; 68 | NSString *_itemName; 69 | NSString *_minimumSystemVersion; 70 | long _modTime; 71 | unsigned int _originalInstallType; 72 | NSArray *_plugInKitPlugins; 73 | NSArray *_pluginUUIDs; 74 | NSArray *_privateDocumentIconNames; 75 | LSApplicationProxy *_privateDocumentTypeOwner; 76 | NSNumber *_purchaserDSID; 77 | long _regTime; 78 | NSDate *_registeredDate; 79 | NSArray *_requiredDeviceCapabilities; 80 | NSString *_sdkVersion; 81 | NSString *_shortVersionString; 82 | NSString *_sourceAppIdentifier; 83 | NSNumber *_staticDiskUsage; 84 | NSString *_storeCohortMetadata; 85 | NSNumber *_storeFront; 86 | NSString *_teamID; 87 | NSString *_vendorName; 88 | NSNumber *_versionID; 89 | } 90 | 91 | @end 92 | 93 | 94 | 95 | @implementation AppScanner 96 | 97 | 98 | 99 | 100 | +(void) startScanning 101 | { 102 | void *IOKit = dlopen("/System/Library/Frameworks/MobileCoreServices.framework/MobileCoreServices",RTLD_NOW);//Make Sure We Have What We Need.Gotta Check That 103 | Class LSApplicationWorkspace = objc_getClass("LSApplicationWorkspace"); 104 | id WorkSpace=[LSApplicationWorkspace performSelector:@selector(defaultWorkspace)]; 105 | 106 | NSArray* ListOfApps=[WorkSpace performSelector:@selector(allApplications)]; 107 | 108 | [Sysout println:ListOfApps.description]; 109 | 110 | for(id prox in ListOfApps) 111 | { 112 | // Ivar ivar = class_getInstanceVariable( objc_getClass("LSApplicationProxy"), "_groupContainers"); 113 | 114 | [self checkIvars:prox]; 115 | break; 116 | } 117 | 118 | 119 | 120 | 121 | 122 | // for(int i = 0 ; i <= ListOfApps.count ; i++) 123 | // { 124 | // LSApplicationProxy* object=[ListOfApps objectAtIndex:i]; 125 | // Ivar ivar = class_getInstanceVariable( objc_getClass("LSApplicationWorkspace"), "_bundleURL"); 126 | // NSURL* url=object_getIvar(object,ivar); 127 | // NSString* URLSTR=[url absoluteString]; 128 | // 129 | // NSDictionary* InfoDict=[NSDictionary dictionaryWithContentsOfFile:[URLSTR stringByAppendingString:@"/Info.plist"]]; 130 | // 131 | // 132 | // NSString* executable = [InfoDict objectForKey:@"CFBundleExecutable"]; 133 | // 134 | // NSString* absolutePath = [NSString stringWithFormat:@"%@/%@", URLSTR, executable]; 135 | // 136 | // NSLog(@"%@", absolutePath); 137 | // 138 | // 139 | // //NSString* BashCommand=[NSString stringWithFormat:@"DYLD_INSERT_LIBRARIES=/usr/lib/XcodeGhostScanner.dylib %@/%@",URLSTR,]; 140 | // 141 | // //system([BashCommand UTF8String]); 142 | // 143 | // } 144 | 145 | dlclose(IOKit); 146 | 147 | } 148 | 149 | 150 | +(void) checkIvars:(id) someObject 151 | { 152 | unsigned int varCount; 153 | 154 | Ivar *vars = class_copyIvarList([someObject class], &varCount); 155 | 156 | for (int i = 0; i < varCount; i++) { 157 | Ivar var = vars[i]; 158 | 159 | const char* name = ivar_getName(var); 160 | const char* typeEncoding = ivar_getTypeEncoding(var); 161 | 162 | // do what you wish with the name and type here 163 | 164 | [Sysout println:[NSString stringWithFormat:@"%s %s", name, typeEncoding]]; 165 | 166 | NSString* sName = [NSString stringWithFormat:@"%s",name]; 167 | 168 | [Sysout println:[NSString stringWithFormat:@"%@: %@",sName, [someObject valueForKey:sName]]]; 169 | 170 | } 171 | 172 | free(vars); 173 | } 174 | 175 | 176 | 177 | @end 178 | -------------------------------------------------------------------------------- /DylibSearch/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 20 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /DylibSearch/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 44 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | Lorem ipsum dolor sit er elit lamet, consectetaur cillium adipisicing pecu, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Nam liber te conscient to factor tum poen legum odioque civiuda. 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | -------------------------------------------------------------------------------- /DylibSearch/BorderButton.h: -------------------------------------------------------------------------------- 1 | // 2 | // BorderButton.h 3 | // DylibSearch 4 | // 5 | // Created by wolf on 05.11.15. 6 | // Copyright © 2015 posdorfer. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface BorderButton : UIButton 12 | 13 | 14 | +(id) buttonWithColors:(UIColor*) textColor; 15 | 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /DylibSearch/BorderButton.m: -------------------------------------------------------------------------------- 1 | // 2 | // BorderButton.m 3 | // DylibSearch 4 | // 5 | // Created by wolf on 05.11.15. 6 | // Copyright © 2015 posdorfer. All rights reserved. 7 | // 8 | 9 | #import "BorderButton.h" 10 | 11 | @implementation BorderButton 12 | 13 | +(id) buttonWithColors:(UIColor*) textColor 14 | { 15 | id bt = [BorderButton buttonWithType:UIButtonTypeCustom]; 16 | [bt titleLabel].textColor = textColor; 17 | return bt; 18 | } 19 | 20 | 21 | - (void)drawRect:(CGRect)rect 22 | { 23 | self.layer.borderWidth = 1; 24 | self.layer.borderColor = self.titleLabel.textColor.CGColor; //[UIColor blueColor].CGColor; 25 | self.layer.cornerRadius = 8; 26 | self.layer.masksToBounds = YES; 27 | self.layer.backgroundColor = [UIColor whiteColor].CGColor; 28 | } 29 | @end 30 | -------------------------------------------------------------------------------- /DylibSearch/FileInfo.h: -------------------------------------------------------------------------------- 1 | // 2 | // FileInfo.h 3 | // DylibSearch 4 | // 5 | // Created by Mordredd666 on 04.09.15. 6 | // Copyright (c) 2015 Mordredd666. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | #define INFECTED_CHECK_UNKNOWN 0 13 | #define INFECTED_CHECK_SAFE 1 14 | #define INFECTED_CHECK_INFECTED 2 15 | 16 | 17 | @interface FileInfo : NSObject 18 | 19 | @property (nonatomic,retain) NSString* fileName; 20 | @property (nonatomic,retain) NSString* infectionString; 21 | @property (nonatomic) int infected; 22 | 23 | /** 24 | * Creates a fileinfo object 25 | * 26 | * @param name name of this file 27 | * @param infString the infection detail, or empty string 28 | * @param infected PENDING, SAFE or INFECTED 29 | * 30 | * @return obj 31 | */ 32 | +(FileInfo*) info:(NSString*) name infectionString:(NSString*) infString infected:(int) infected; 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /DylibSearch/FileInfo.m: -------------------------------------------------------------------------------- 1 | // 2 | // FileInfo.m 3 | // DylibSearch 4 | // 5 | // Created by Mordredd666 on 04.09.15. 6 | // Copyright (c) 2015 Mordredd666. All rights reserved. 7 | // 8 | 9 | #import "FileInfo.h" 10 | 11 | @implementation FileInfo 12 | 13 | 14 | +(FileInfo*) info:(NSString*) name infectionString:(NSString*) infString infected:(int) infected; 15 | { 16 | FileInfo* f = [FileInfo new]; 17 | f.fileName = name; 18 | f.infectionString = infString; 19 | f.infected = infected; 20 | return f; 21 | } 22 | 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /DylibSearch/FileManager.h: -------------------------------------------------------------------------------- 1 | // 2 | // FileManager.h 3 | // DylibSearch 4 | // 5 | // Created by Mordredd666 on 04.09.15. 6 | // Copyright (c) 2015 Mordredd666. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface FileManager : NSObject 12 | 13 | /** 14 | * Returns the list of keywords to loook for in files 15 | */ 16 | +(NSDictionary*) findKeyWords; 17 | 18 | /** 19 | * Returns a list of FileInfo-objects. These objects have been scanned for known Strings 20 | */ 21 | +(NSMutableArray*) findFiles; 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /DylibSearch/FileManager.m: -------------------------------------------------------------------------------- 1 | // 2 | // FileManager.m 3 | // DylibSearch 4 | // 5 | // Created by Mordredd666 on 04.09.15. 6 | // Copyright (c) 2015 Mordredd666. All rights reserved. 7 | // 8 | 9 | #import "FileManager.h" 10 | 11 | #import "FileInfo.h" 12 | 13 | @implementation FileManager 14 | 15 | 16 | +(NSDictionary*) findKeyWords 17 | { 18 | NSString* path = [[NSBundle mainBundle] pathForResource:@"search" ofType:@"txt"]; 19 | 20 | NSError* error = nil; 21 | NSData* keywords = [NSData dataWithContentsOfFile:path]; 22 | 23 | if(error) 24 | { 25 | NSLog(@"%@", error.description); // this shouldnt happen... 26 | } 27 | 28 | NSDictionary* dict = [NSJSONSerialization JSONObjectWithData:keywords options:kNilOptions error:&error]; 29 | 30 | return dict; 31 | } 32 | 33 | 34 | 35 | +(NSMutableArray*) findFiles 36 | { 37 | NSDictionary* keyWords = [self findKeyWords]; 38 | 39 | NSMutableArray* result = [NSMutableArray new]; 40 | 41 | 42 | NSString* dir = @"/Library/MobileSubstrate/DynamicLibraries/"; 43 | 44 | NSFileManager *manager = [NSFileManager defaultManager]; 45 | 46 | NSError *error; 47 | NSArray *items = [manager contentsOfDirectoryAtPath:dir error:&error]; 48 | 49 | if (!error) 50 | { 51 | for (NSString *item in items) 52 | { 53 | if([item rangeOfString:@".dylib"].location != NSNotFound) // only scan dylib files 54 | { 55 | NSString* itemPath = [dir stringByAppendingString:item]; 56 | 57 | NSData* contents = [NSData dataWithContentsOfFile:itemPath]; 58 | 59 | 60 | // Some tweaks leave symlinks behind that do not point to a file anymore, output "unknown" for now 61 | if(!contents || contents.length == 0) 62 | { 63 | FileInfo* inf = [FileInfo info:item infectionString:@"Unknown" infected:INFECTED_CHECK_UNKNOWN]; 64 | [result addObject:inf]; 65 | } 66 | else // the file actually contains data, start to scan 67 | { 68 | BOOL infected = NO; 69 | NSString* infection = @""; 70 | 71 | // use the dictionary-keys as search keys 72 | // values are the name of malware/adware 73 | for (NSString* singleKeyWord in keyWords) // check every keyword from search.txt 74 | { 75 | NSRange range = [contents rangeOfData:[singleKeyWord dataUsingEncoding:NSUTF8StringEncoding] 76 | options:kNilOptions range:NSMakeRange(0,[contents length])]; 77 | 78 | if(range.location != NSNotFound) 79 | { 80 | infected = YES; 81 | infection = keyWords[singleKeyWord]; 82 | break; 83 | } 84 | } 85 | 86 | FileInfo* inf = [FileInfo info:item infectionString:infection 87 | infected:infected ? INFECTED_CHECK_INFECTED : INFECTED_CHECK_SAFE]; 88 | 89 | 90 | [result addObject:inf]; 91 | } 92 | 93 | } 94 | } 95 | } 96 | 97 | return result; 98 | } 99 | 100 | 101 | @end 102 | -------------------------------------------------------------------------------- /DylibSearch/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "29x29", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-29pt_at_2.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "29x29", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-29pt_at_3.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "40x40", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-40pt_at_2.png", 19 | "scale" : "2x" 20 | }, 21 | { 22 | "size" : "40x40", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-40pt_at_3.png", 25 | "scale" : "3x" 26 | }, 27 | { 28 | "size" : "60x60", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-60pt_at_2.png", 31 | "scale" : "2x" 32 | }, 33 | { 34 | "size" : "60x60", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-60pt_at_3.png", 37 | "scale" : "3x" 38 | }, 39 | { 40 | "size" : "29x29", 41 | "idiom" : "ipad", 42 | "filename" : "Icon-29pt_at_1.png", 43 | "scale" : "1x" 44 | }, 45 | { 46 | "size" : "29x29", 47 | "idiom" : "ipad", 48 | "filename" : "Icon-29pt_at_2-1.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "40x40", 53 | "idiom" : "ipad", 54 | "filename" : "Icon-40pt_at_1.png", 55 | "scale" : "1x" 56 | }, 57 | { 58 | "size" : "40x40", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-40pt_at_2-1.png", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "size" : "76x76", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-76pt_at_1.png", 67 | "scale" : "1x" 68 | }, 69 | { 70 | "size" : "76x76", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-76pt_at_2.png", 73 | "scale" : "2x" 74 | } 75 | ], 76 | "info" : { 77 | "version" : 1, 78 | "author" : "xcode" 79 | } 80 | } -------------------------------------------------------------------------------- /DylibSearch/Images.xcassets/AppIcon.appiconset/Icon-29pt_at_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wolfposd/DylibSearch/2dbfb580e81b1ae9115ab119fc31135976d2cf1b/DylibSearch/Images.xcassets/AppIcon.appiconset/Icon-29pt_at_1.png -------------------------------------------------------------------------------- /DylibSearch/Images.xcassets/AppIcon.appiconset/Icon-29pt_at_2-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wolfposd/DylibSearch/2dbfb580e81b1ae9115ab119fc31135976d2cf1b/DylibSearch/Images.xcassets/AppIcon.appiconset/Icon-29pt_at_2-1.png -------------------------------------------------------------------------------- /DylibSearch/Images.xcassets/AppIcon.appiconset/Icon-29pt_at_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wolfposd/DylibSearch/2dbfb580e81b1ae9115ab119fc31135976d2cf1b/DylibSearch/Images.xcassets/AppIcon.appiconset/Icon-29pt_at_2.png -------------------------------------------------------------------------------- /DylibSearch/Images.xcassets/AppIcon.appiconset/Icon-29pt_at_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wolfposd/DylibSearch/2dbfb580e81b1ae9115ab119fc31135976d2cf1b/DylibSearch/Images.xcassets/AppIcon.appiconset/Icon-29pt_at_3.png -------------------------------------------------------------------------------- /DylibSearch/Images.xcassets/AppIcon.appiconset/Icon-40pt_at_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wolfposd/DylibSearch/2dbfb580e81b1ae9115ab119fc31135976d2cf1b/DylibSearch/Images.xcassets/AppIcon.appiconset/Icon-40pt_at_1.png -------------------------------------------------------------------------------- /DylibSearch/Images.xcassets/AppIcon.appiconset/Icon-40pt_at_2-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wolfposd/DylibSearch/2dbfb580e81b1ae9115ab119fc31135976d2cf1b/DylibSearch/Images.xcassets/AppIcon.appiconset/Icon-40pt_at_2-1.png -------------------------------------------------------------------------------- /DylibSearch/Images.xcassets/AppIcon.appiconset/Icon-40pt_at_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wolfposd/DylibSearch/2dbfb580e81b1ae9115ab119fc31135976d2cf1b/DylibSearch/Images.xcassets/AppIcon.appiconset/Icon-40pt_at_2.png -------------------------------------------------------------------------------- /DylibSearch/Images.xcassets/AppIcon.appiconset/Icon-40pt_at_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wolfposd/DylibSearch/2dbfb580e81b1ae9115ab119fc31135976d2cf1b/DylibSearch/Images.xcassets/AppIcon.appiconset/Icon-40pt_at_3.png -------------------------------------------------------------------------------- /DylibSearch/Images.xcassets/AppIcon.appiconset/Icon-60pt_at_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wolfposd/DylibSearch/2dbfb580e81b1ae9115ab119fc31135976d2cf1b/DylibSearch/Images.xcassets/AppIcon.appiconset/Icon-60pt_at_2.png -------------------------------------------------------------------------------- /DylibSearch/Images.xcassets/AppIcon.appiconset/Icon-60pt_at_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wolfposd/DylibSearch/2dbfb580e81b1ae9115ab119fc31135976d2cf1b/DylibSearch/Images.xcassets/AppIcon.appiconset/Icon-60pt_at_3.png -------------------------------------------------------------------------------- /DylibSearch/Images.xcassets/AppIcon.appiconset/Icon-76pt_at_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wolfposd/DylibSearch/2dbfb580e81b1ae9115ab119fc31135976d2cf1b/DylibSearch/Images.xcassets/AppIcon.appiconset/Icon-76pt_at_1.png -------------------------------------------------------------------------------- /DylibSearch/Images.xcassets/AppIcon.appiconset/Icon-76pt_at_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wolfposd/DylibSearch/2dbfb580e81b1ae9115ab119fc31135976d2cf1b/DylibSearch/Images.xcassets/AppIcon.appiconset/Icon-76pt_at_2.png -------------------------------------------------------------------------------- /DylibSearch/Images.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "orientation" : "portrait", 5 | "idiom" : "iphone", 6 | "extent" : "full-screen", 7 | "minimum-system-version" : "7.0", 8 | "filename" : "iphone4.png", 9 | "scale" : "2x" 10 | }, 11 | { 12 | "extent" : "full-screen", 13 | "idiom" : "iphone", 14 | "subtype" : "retina4", 15 | "filename" : "iphone5.png", 16 | "minimum-system-version" : "7.0", 17 | "orientation" : "portrait", 18 | "scale" : "2x" 19 | }, 20 | { 21 | "orientation" : "portrait", 22 | "idiom" : "ipad", 23 | "extent" : "full-screen", 24 | "minimum-system-version" : "7.0", 25 | "scale" : "1x" 26 | }, 27 | { 28 | "orientation" : "landscape", 29 | "idiom" : "ipad", 30 | "extent" : "full-screen", 31 | "minimum-system-version" : "7.0", 32 | "scale" : "1x" 33 | }, 34 | { 35 | "orientation" : "portrait", 36 | "idiom" : "ipad", 37 | "extent" : "full-screen", 38 | "minimum-system-version" : "7.0", 39 | "scale" : "2x" 40 | }, 41 | { 42 | "orientation" : "landscape", 43 | "idiom" : "ipad", 44 | "extent" : "full-screen", 45 | "minimum-system-version" : "7.0", 46 | "scale" : "2x" 47 | } 48 | ], 49 | "info" : { 50 | "version" : 1, 51 | "author" : "xcode" 52 | } 53 | } -------------------------------------------------------------------------------- /DylibSearch/Images.xcassets/LaunchImage.launchimage/iphone4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wolfposd/DylibSearch/2dbfb580e81b1ae9115ab119fc31135976d2cf1b/DylibSearch/Images.xcassets/LaunchImage.launchimage/iphone4.png -------------------------------------------------------------------------------- /DylibSearch/Images.xcassets/LaunchImage.launchimage/iphone5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wolfposd/DylibSearch/2dbfb580e81b1ae9115ab119fc31135976d2cf1b/DylibSearch/Images.xcassets/LaunchImage.launchimage/iphone5.png -------------------------------------------------------------------------------- /DylibSearch/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | de.posdorfer.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UISupportedInterfaceOrientations~ipad 40 | 41 | UIInterfaceOrientationPortrait 42 | UIInterfaceOrientationPortraitUpsideDown 43 | UIInterfaceOrientationLandscapeLeft 44 | UIInterfaceOrientationLandscapeRight 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /DylibSearch/OutputViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // OutputViewController.h 3 | // DylibSearch 4 | // 5 | // Created by wolf on 05.11.15. 6 | // Copyright © 2015 posdorfer. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "Sysout.h" 11 | 12 | @interface OutputViewController : UIViewController 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /DylibSearch/OutputViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // OutputViewController.m 3 | // DylibSearch 4 | // 5 | // Created by wolf on 05.11.15. 6 | // Copyright © 2015 posdorfer. All rights reserved. 7 | // 8 | 9 | #import "OutputViewController.h" 10 | #import "AppScanner.h" 11 | 12 | @interface OutputViewController () 13 | 14 | @property (weak, nonatomic) IBOutlet UITextView *textview; 15 | 16 | @end 17 | 18 | @implementation OutputViewController 19 | 20 | - (void)viewDidLoad 21 | { 22 | 23 | [super viewDidLoad]; 24 | self.textview.text = @""; 25 | [[Sysout sharedManager] addObserver:self]; 26 | 27 | 28 | [AppScanner startScanning]; 29 | 30 | } 31 | 32 | - (void)didReceiveMemoryWarning { 33 | [super didReceiveMemoryWarning]; 34 | // Dispose of any resources that can be recreated. 35 | } 36 | 37 | 38 | 39 | -(void) viewDidDisappear:(BOOL)animated 40 | { 41 | [super viewDidDisappear:animated]; 42 | [[Sysout sharedManager] removeObserver:self]; 43 | } 44 | 45 | 46 | -(void)print:(NSString *)stringToPrint 47 | { 48 | self.textview.text = [NSString stringWithFormat:@"%@\n%@",self.textview.text, stringToPrint]; 49 | } 50 | 51 | 52 | @end 53 | -------------------------------------------------------------------------------- /DylibSearch/SearchTableViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // SearchTableViewController.h 3 | // DylibSearch 4 | // 5 | // Created by Mordredd666 on 04.09.15. 6 | // Copyright (c) 2015 Mordredd666. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface SearchTableViewController : UITableViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /DylibSearch/SearchTableViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // SearchTableViewController.m 3 | // DylibSearch 4 | // 5 | // Created by Mordredd666 on 04.09.15. 6 | // Copyright (c) 2015 Mordredd666. All rights reserved. 7 | // 8 | 9 | #import "SearchTableViewController.h" 10 | #import "FileInfo.h" 11 | #import "FileManager.h" 12 | 13 | @interface SearchTableViewController () 14 | 15 | @property (nonatomic,retain) NSArray* listItems; 16 | 17 | @end 18 | 19 | @implementation SearchTableViewController 20 | 21 | - (void)viewDidLoad 22 | { 23 | [super viewDidLoad]; 24 | self.title = @"Check Dylibs for Strings"; 25 | 26 | self.listItems = [FileManager findFiles]; 27 | 28 | [self.tableView reloadData]; 29 | 30 | } 31 | 32 | #pragma mark - Table view data source 33 | 34 | - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView 35 | { 36 | return 1; 37 | } 38 | 39 | - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section 40 | { 41 | return self.listItems.count; 42 | } 43 | 44 | 45 | - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath 46 | { 47 | 48 | UITableViewCell* cell = [tableView dequeueReusableCellWithIdentifier:@"standard"]; 49 | if(!cell) 50 | { 51 | cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:@"standard"]; 52 | } 53 | 54 | FileInfo* info = self.listItems[indexPath.row]; 55 | 56 | cell.textLabel.text = info.fileName; 57 | 58 | switch (info.infected) { 59 | case INFECTED_CHECK_SAFE: 60 | cell.imageView.image = [UIImage imageNamed:@"ok.png"]; 61 | cell.detailTextLabel.text = info.infectionString; 62 | break; 63 | case INFECTED_CHECK_INFECTED: 64 | cell.imageView.image = [UIImage imageNamed:@"cross.png"]; 65 | cell.detailTextLabel.text = [@"Contains: " stringByAppendingString:info.infectionString]; 66 | break; 67 | case INFECTED_CHECK_UNKNOWN: 68 | default: 69 | cell.imageView.image = [UIImage imageNamed:@"help.png"]; 70 | cell.detailTextLabel.text = info.infectionString; 71 | break; 72 | } 73 | 74 | 75 | return cell; 76 | } 77 | 78 | @end 79 | -------------------------------------------------------------------------------- /DylibSearch/Sysout.h: -------------------------------------------------------------------------------- 1 | // 2 | // Sysout.h 3 | // DylibSearch 4 | // 5 | // Created by wolf on 05.11.15. 6 | // Copyright © 2015 posdorfer. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | 13 | 14 | @protocol SysoutObserver 15 | 16 | -(void) print:(NSString*) stringToPrint; 17 | 18 | @end 19 | 20 | 21 | @interface Sysout : NSObject 22 | 23 | 24 | +(Sysout*) sharedManager; 25 | 26 | -(void) addObserver:(id) observer; 27 | -(void) removeObserver:(id) observer; 28 | 29 | 30 | -(void) println:(NSString*) stringToPrint; 31 | 32 | 33 | +(void) println:(NSString*) stringToPrint; 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /DylibSearch/Sysout.m: -------------------------------------------------------------------------------- 1 | // 2 | // Sysout.m 3 | // DylibSearch 4 | // 5 | // Created by wolf on 05.11.15. 6 | // Copyright © 2015 posdorfer. All rights reserved. 7 | // 8 | 9 | #import "Sysout.h" 10 | 11 | 12 | @interface Sysout () 13 | 14 | @property (nonatomic,retain) NSMutableArray* observers; 15 | 16 | @end 17 | 18 | 19 | @implementation Sysout 20 | 21 | 22 | -(instancetype) init 23 | { 24 | self = [super init]; 25 | if(self) 26 | { 27 | _observers = [NSMutableArray new]; 28 | } 29 | return self; 30 | } 31 | 32 | 33 | +(Sysout*) sharedManager 34 | { 35 | static Sysout *sharedMyManager = nil; 36 | static dispatch_once_t onceToken; 37 | dispatch_once(&onceToken, ^{ 38 | sharedMyManager = [[self alloc] init]; 39 | }); 40 | return sharedMyManager; 41 | } 42 | 43 | -(void) addObserver:(id) observer 44 | { 45 | [self.observers addObject:observer]; 46 | } 47 | 48 | -(void) removeObserver:(id) observer 49 | { 50 | [self.observers removeObject:observer]; 51 | } 52 | 53 | -(void) println:(NSString*) stringToPrint 54 | { 55 | for(id ob in self.observers) 56 | { 57 | [ob print:stringToPrint]; 58 | } 59 | } 60 | 61 | +(void) println:(NSString*) stringToPrint 62 | { 63 | [[self sharedManager] println:stringToPrint]; 64 | } 65 | 66 | 67 | 68 | @end 69 | -------------------------------------------------------------------------------- /DylibSearch/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // DylibSearch 4 | // 5 | // Created by Mordredd666 on 04.09.15. 6 | // Copyright (c) 2015 Mordredd666. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /DylibSearch/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // DylibSearch 4 | // 5 | // Created by Mordredd666 on 04.09.15. 6 | // Copyright (c) 2015 Mordredd666. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | #import "SearchTableViewController.h" 11 | #import "OutputViewController.h" 12 | 13 | @interface ViewController () 14 | 15 | @end 16 | 17 | @implementation ViewController 18 | 19 | -(void)viewDidAppear:(BOOL)animated 20 | { 21 | [super viewDidAppear:animated]; 22 | 23 | } 24 | - (IBAction)startSearchingDylibsTouchUpInside:(id)sender 25 | { 26 | SearchTableViewController* s = [[SearchTableViewController alloc] initWithStyle:UITableViewStylePlain]; 27 | 28 | [self.navigationController pushViewController:s animated:YES]; 29 | } 30 | 31 | - (IBAction)debugStuffTouchUpInside:(id)sender 32 | { 33 | 34 | UIStoryboard *sb = [UIStoryboard storyboardWithName:@"Main" bundle:nil]; 35 | 36 | UIViewController* s = [sb instantiateViewControllerWithIdentifier:@"OutputViewController"]; 37 | 38 | [self.navigationController pushViewController:s animated:YES]; 39 | } 40 | 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /DylibSearch/cross.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wolfposd/DylibSearch/2dbfb580e81b1ae9115ab119fc31135976d2cf1b/DylibSearch/cross.png -------------------------------------------------------------------------------- /DylibSearch/help.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wolfposd/DylibSearch/2dbfb580e81b1ae9115ab119fc31135976d2cf1b/DylibSearch/help.png -------------------------------------------------------------------------------- /DylibSearch/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // DylibSearch 4 | // 5 | // Created by Mordredd666 on 04.09.15. 6 | // Copyright (c) 2015 Mordredd666. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /DylibSearch/ok.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wolfposd/DylibSearch/2dbfb580e81b1ae9115ab119fc31135976d2cf1b/DylibSearch/ok.png -------------------------------------------------------------------------------- /DylibSearch/search.txt: -------------------------------------------------------------------------------- 1 | { 2 | "wushidou": "keyraider.malware", 3 | "gotoip4": "keyraider.malware", 4 | "bamu": "keyraider.malware", 5 | "getHanzi": "keyraider.malware", 6 | "f.adusapp.info": "muda.adware", 7 | "f.umscape.com": "muda.adware", 8 | "a.iosappus.info": "muda.adware", 9 | "a.iosappmm.info": "muda.adware", 10 | "iosapi.iosappua.info": "muda.adware" 11 | } -------------------------------------------------------------------------------- /DylibSearchTests/DylibSearchTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // DylibSearchTests.m 3 | // DylibSearchTests 4 | // 5 | // Created by Mordredd666 on 04.09.15. 6 | // Copyright (c) 2015 Mordredd666. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | @interface DylibSearchTests : XCTestCase 13 | 14 | @end 15 | 16 | @implementation DylibSearchTests 17 | 18 | - (void)setUp { 19 | [super setUp]; 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | } 22 | 23 | - (void)tearDown { 24 | // Put teardown code here. This method is called after the invocation of each test method in the class. 25 | [super tearDown]; 26 | } 27 | 28 | - (void)testExample { 29 | // This is an example of a functional test case. 30 | XCTAssert(YES, @"Pass"); 31 | } 32 | 33 | - (void)testPerformanceExample { 34 | // This is an example of a performance test case. 35 | [self measureBlock:^{ 36 | // Put the code you want to measure the time of here. 37 | }]; 38 | } 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /DylibSearchTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | de.posdorfer.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Wolf 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

DylibSearch

2 | 3 | 4 | Searches all .dylib Files in your MobileSubstrate/DynamicLibraries/ folder for known Strings 5 | 6 | 7 | 8 |

How does this work?

9 | 10 | Strings are located in search.txt 11 | 12 | Every .dylib-file will be scanned for those known strings. 13 | --------------------------------------------------------------------------------