diff --git a/CHANGELOG.md b/CHANGELOG.md index a725a5c..1db77f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,12 @@ All notable changes to this project will be documented in this file. +## [1.0.5] - 2017-06-07 +#### Added +- `BundleType` and `SignerIdentity` to the apps' metadata + + + ## [1.0.4] - 2017-05-22 #### Added - Show device's IP address in the main screen diff --git a/needle-agent/needleAgent/Constants.h b/needle-agent/needleAgent/Constants.h index a020c7b..3f6210b 100644 --- a/needle-agent/needleAgent/Constants.h +++ b/needle-agent/needleAgent/Constants.h @@ -6,7 +6,7 @@ #ifndef Constants_h #define Constants_h -#define AGENT_VERSION @"1.0.4" +#define AGENT_VERSION @"1.0.5" #define DEFAULT_PORT @"4444" #define AGENT_NAME @"Needle Agent" diff --git a/needle-agent/needleAgent/Info.plist b/needle-agent/needleAgent/Info.plist index 11f29f6..8629f6a 100755 --- a/needle-agent/needleAgent/Info.plist +++ b/needle-agent/needleAgent/Info.plist @@ -23,7 +23,7 @@ CFBundlePackageType APPL CFBundleShortVersionString - 1.0.4 + 1.0.5 CFBundleSignature ???? CFBundleVersion diff --git a/needle-agent/needleAgent/Utils.m b/needle-agent/needleAgent/Utils.m index 2b2516b..c859ef1 100644 --- a/needle-agent/needleAgent/Utils.m +++ b/needle-agent/needleAgent/Utils.m @@ -28,27 +28,63 @@ + (NSMutableDictionary *)listApplications { NSString *appType = [proxy performSelector:@selector(applicationType)]; - if ([appType isEqualToString:@"User"] && proxy.bundleContainerURL && proxy.bundleURL) + if ([appType isEqualToString:@"User"] || [appType isEqualToString:@"System"]) //&& proxy.bundleContainerURL && proxy.bundleURL) { + // ------------------------------------------------------------------------------------------------ + // EXTRACT FIELDS + // ------------------------------------------------------------------------------------------------ + NSString *bundleType = proxy.bundleType; + NSString *itemName = ((LSApplicationProxy*)proxy).itemName; - if (!itemName) - { - itemName = ((LSApplicationProxy*)proxy).localizedName; - } + if (!itemName) itemName = ((LSApplicationProxy*)proxy).localizedName; + + NSString *bundleURL = @""; + if (proxy.bundleURL) bundleURL = [proxy.bundleURL absoluteString]; + + NSString *bundleContainerURL = @""; + if (proxy.bundleContainerURL) bundleContainerURL = [proxy.bundleContainerURL absoluteString]; + + NSString *dataContainerURL = @""; + if (proxy.dataContainerURL) dataContainerURL = [proxy.dataContainerURL absoluteString]; + + NSString *bundleIdentifier = @""; + if (proxy.bundleIdentifier) bundleIdentifier = proxy.bundleIdentifier; + + NSString *bundleVersion = @""; + if (proxy.bundleVersion) bundleVersion = proxy.bundleVersion; + + NSString *entitlements = @""; + if (proxy.entitlements) entitlements = proxy.entitlements; + + NSString *sdkVersion = @""; + if (proxy.sdkVersion) sdkVersion = proxy.sdkVersion; + + NSString *minimumOS = ((LSApplicationProxy*)proxy).minimumSystemVersion; + if (!minimumOS) minimumOS = @""; + + NSString *teamID = ((LSApplicationProxy*)proxy).teamID; + if (!teamID) teamID = @""; + + NSString *signerIdentity = @""; + if (proxy.signerIdentity) signerIdentity = proxy.signerIdentity; + // ------------------------------------------------------------------------------------------------ + // CREATE DICT + // ------------------------------------------------------------------------------------------------ bundleInfo = @{ - @"BundleURL": [proxy.bundleURL absoluteString], - @"BundleContainer": [proxy.bundleContainerURL absoluteString], - @"DataContainer": [proxy.dataContainerURL absoluteString], + @"BundleType": bundleType, @"DisplayName": itemName, - @"BundleIdentifier": proxy.bundleIdentifier, - @"BundleVersion": proxy.bundleVersion, - @"BundleURL": [proxy.bundleURL absoluteString], - @"Entitlements": proxy.entitlements, - @"SDKVersion": proxy.sdkVersion, - @"MinimumOS": ((LSApplicationProxy*)proxy).minimumSystemVersion, - @"TeamID": ((LSApplicationProxy*)proxy).teamID, - }; + @"BundleURL": bundleURL, + @"BundleContainer": bundleContainerURL, + @"DataContainer": dataContainerURL, + @"BundleIdentifier": bundleIdentifier, + @"BundleVersion": bundleVersion, + @"Entitlements": entitlements, + @"SDKVersion": sdkVersion, + @"MinimumOS": minimumOS, + @"TeamID": teamID, + @"SignerIdentity": signerIdentity, + }; all_apps[proxy.bundleIdentifier] = bundleInfo; } } @@ -57,7 +93,7 @@ + (NSMutableDictionary *)listApplications } -+(BOOL)copyFile:(NSString *)infile into:(NSString *)outfile; ++(BOOL)copyFile:(NSString *)infile into:(NSString *)outfile { NSError *error; NSFileManager *fileManager = [NSFileManager defaultManager]; diff --git a/release/NeedleAgent.deb b/release/NeedleAgent.deb index f04402b..9dc9def 100644 Binary files a/release/NeedleAgent.deb and b/release/NeedleAgent.deb differ diff --git a/release/NeedleAgent/Applications/needleAgent.app/Assets.car b/release/NeedleAgent/Applications/needleAgent.app/Assets.car index 58a32a7..24b249d 100644 Binary files a/release/NeedleAgent/Applications/needleAgent.app/Assets.car and b/release/NeedleAgent/Applications/needleAgent.app/Assets.car differ diff --git a/release/NeedleAgent/Applications/needleAgent.app/Base.lproj/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib b/release/NeedleAgent/Applications/needleAgent.app/Base.lproj/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib index 2efda75..4f2c5fe 100644 Binary files a/release/NeedleAgent/Applications/needleAgent.app/Base.lproj/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib and b/release/NeedleAgent/Applications/needleAgent.app/Base.lproj/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib differ diff --git a/release/NeedleAgent/Applications/needleAgent.app/Base.lproj/LaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib b/release/NeedleAgent/Applications/needleAgent.app/Base.lproj/LaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib index 3ac4ec0..1fc7847 100644 Binary files a/release/NeedleAgent/Applications/needleAgent.app/Base.lproj/LaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib and b/release/NeedleAgent/Applications/needleAgent.app/Base.lproj/LaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib differ diff --git a/release/NeedleAgent/Applications/needleAgent.app/Frameworks/CocoaAsyncSocket.framework/CocoaAsyncSocket b/release/NeedleAgent/Applications/needleAgent.app/Frameworks/CocoaAsyncSocket.framework/CocoaAsyncSocket index 1118cf8..3c6a230 100755 Binary files a/release/NeedleAgent/Applications/needleAgent.app/Frameworks/CocoaAsyncSocket.framework/CocoaAsyncSocket and b/release/NeedleAgent/Applications/needleAgent.app/Frameworks/CocoaAsyncSocket.framework/CocoaAsyncSocket differ diff --git a/release/NeedleAgent/Applications/needleAgent.app/Info.plist b/release/NeedleAgent/Applications/needleAgent.app/Info.plist index a375496..3cbd2c3 100644 Binary files a/release/NeedleAgent/Applications/needleAgent.app/Info.plist and b/release/NeedleAgent/Applications/needleAgent.app/Info.plist differ diff --git a/release/NeedleAgent/Applications/needleAgent.app/Main.storyboardc/BF7-WO-YOG-view-ue0-Jf-hdt.nib b/release/NeedleAgent/Applications/needleAgent.app/Main.storyboardc/BF7-WO-YOG-view-ue0-Jf-hdt.nib index 494d846..3c4f2ee 100644 Binary files a/release/NeedleAgent/Applications/needleAgent.app/Main.storyboardc/BF7-WO-YOG-view-ue0-Jf-hdt.nib and b/release/NeedleAgent/Applications/needleAgent.app/Main.storyboardc/BF7-WO-YOG-view-ue0-Jf-hdt.nib differ diff --git a/release/NeedleAgent/Applications/needleAgent.app/Main.storyboardc/UINavigationController-EVn-Gp-ziU.nib b/release/NeedleAgent/Applications/needleAgent.app/Main.storyboardc/UINavigationController-EVn-Gp-ziU.nib index a64449d..36d5b11 100644 Binary files a/release/NeedleAgent/Applications/needleAgent.app/Main.storyboardc/UINavigationController-EVn-Gp-ziU.nib and b/release/NeedleAgent/Applications/needleAgent.app/Main.storyboardc/UINavigationController-EVn-Gp-ziU.nib differ diff --git a/release/NeedleAgent/Applications/needleAgent.app/_CodeSignature/CodeResources b/release/NeedleAgent/Applications/needleAgent.app/_CodeSignature/CodeResources index 99d1d1c..f3e3bdb 100644 --- a/release/NeedleAgent/Applications/needleAgent.app/_CodeSignature/CodeResources +++ b/release/NeedleAgent/Applications/needleAgent.app/_CodeSignature/CodeResources @@ -34,11 +34,11 @@ Assets.car - VtqTPqbqm4OyTD258/zF/8RGMBQ= + utngJU5evY0lgikhf1IubFUVX70= Base.lproj/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib - skicZjnUutU1Qv5zubxYrRdC2ws= + Je8w6lGshtbxeTHmFN8l0++xlO8= Base.lproj/LaunchScreen.storyboardc/Info.plist @@ -46,11 +46,11 @@ Base.lproj/LaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib - P9HzClKvNq2DCMKIhBJr3dIZrb0= + 2DReOCaGceT7rqNrHjO9n5IaBuE= Frameworks/CocoaAsyncSocket.framework/CocoaAsyncSocket - ydGi+FptEKvWum6Qk59QnK6QPtA= + RdGY2PmM1Uu9y2f5QtZz4mpwrUE= Frameworks/CocoaAsyncSocket.framework/Info.plist @@ -62,11 +62,11 @@ Info.plist - Boeo0ugvXt/ITQE+M0nY9TJvlNs= + WQAqJWEhs212NHlTNrHZoSZPyb0= Main.storyboardc/BF7-WO-YOG-view-ue0-Jf-hdt.nib - ao+CVj9SKm+K8MRtpX6Bd8ElVL8= + Thf40KheVPgCZhkGVLaZxD9kadQ= Main.storyboardc/Info.plist @@ -74,7 +74,7 @@ Main.storyboardc/UINavigationController-EVn-Gp-ziU.nib - 9C4Qu9mRMTlVTV8fDKyODXAVSv4= + QmBIzM9FCluniHsyJ5YNN5cTfwo= PkgInfo @@ -172,22 +172,22 @@ hash - VtqTPqbqm4OyTD258/zF/8RGMBQ= + utngJU5evY0lgikhf1IubFUVX70= hash2 - ALJky5CNY9Rg0neHOYGq6qq5muXkivEfyqXn/3faqTk= + wLm4q+QPqQF5YGUuo800zmWV6EvULjCI2KfgRP5gpvo= Base.lproj/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib hash - skicZjnUutU1Qv5zubxYrRdC2ws= + Je8w6lGshtbxeTHmFN8l0++xlO8= hash2 - 4rqIVK17Ru/ekKGd5n8M7wiDfd+vRfpkPC2QCaSJUU0= + H9JmRvJhcbOl41hc5do8b0e3gKwZCGng/ofeT2WjOio= Base.lproj/LaunchScreen.storyboardc/Info.plist @@ -205,22 +205,22 @@ hash - P9HzClKvNq2DCMKIhBJr3dIZrb0= + 2DReOCaGceT7rqNrHjO9n5IaBuE= hash2 - MLERHGH+XxF+t2P+k8Wx4UKg//3pajHWeEF2stK5Ce0= + qR26rDZwvh7dGCN4V5zJiaPRS3517hUHc8MEHD/pG/8= Frameworks/CocoaAsyncSocket.framework/CocoaAsyncSocket hash - ydGi+FptEKvWum6Qk59QnK6QPtA= + RdGY2PmM1Uu9y2f5QtZz4mpwrUE= hash2 - MzJPBjX0IykSbL/B8Zea/QID9fwb/7RiWSnsXHsNQgY= + fYts4MoPpl7d2hebHrsaMLMsrwACb+OIPN5/2tqKpNE= Frameworks/CocoaAsyncSocket.framework/Info.plist @@ -249,11 +249,11 @@ hash - ao+CVj9SKm+K8MRtpX6Bd8ElVL8= + Thf40KheVPgCZhkGVLaZxD9kadQ= hash2 - UWt4OEW2PjrCkt7m9LuAzOQvQCvFofrxVHDnBVI4qOk= + YOtRpPBJxZ0MywQvOxg38StvknHm62F9Z7jBAv2B97U= Main.storyboardc/Info.plist @@ -271,11 +271,11 @@ hash - 9C4Qu9mRMTlVTV8fDKyODXAVSv4= + QmBIzM9FCluniHsyJ5YNN5cTfwo= hash2 - 2Sc/DtMOrv4Wp8oua1OORMhyndlVd5ym0hD+76+SLzQ= + Ov68i9jms0U7bI9cp2VXDcmZScy5EuLyp6KRE9lDu9s= archived-expanded-entitlements.xcent diff --git a/release/NeedleAgent/Applications/needleAgent.app/needleAgent b/release/NeedleAgent/Applications/needleAgent.app/needleAgent index 4bf3afe..ea5fc6b 100755 Binary files a/release/NeedleAgent/Applications/needleAgent.app/needleAgent and b/release/NeedleAgent/Applications/needleAgent.app/needleAgent differ diff --git a/release/NeedleAgent/DEBIAN/control b/release/NeedleAgent/DEBIAN/control index a64ae63..ddf1740 100644 --- a/release/NeedleAgent/DEBIAN/control +++ b/release/NeedleAgent/DEBIAN/control @@ -1,6 +1,6 @@ Package: mwr.needle.agent Name: NeedleAgent -Version: 1.0.4 +Version: 1.0.5 Architecture: iphoneos-arm Description: Needle Agent Homepage: http://mobiletools.mwrinfosecurity.com diff --git a/release/Packages b/release/Packages index 367f6e4..3d0f5e8 100644 --- a/release/Packages +++ b/release/Packages @@ -1,11 +1,11 @@ Package: mwr.needle.agent -Version: 1.0.4 +Version: 1.0.5 Section: Develpment Maintainer: Marco Lancini Architecture: iphoneos-arm Filename: ./NeedleAgent.deb -Size: 1357288 -MD5sum: 251b1ea0e42e30be40b026c198ea334f +Size: 1360242 +MD5sum: 6759820adae2f07f00b754f8a816fc5a Description: Needle Agent Name: NeedleAgent Author: Marco Lancini diff --git a/release/Packages.bz2 b/release/Packages.bz2 index 9b84684..8e44bf7 100644 Binary files a/release/Packages.bz2 and b/release/Packages.bz2 differ diff --git a/release/Packages.gz b/release/Packages.gz index 57a7450..bea32f0 100644 Binary files a/release/Packages.gz and b/release/Packages.gz differ diff --git a/release/Release b/release/Release index e0b9446..b9940a3 100644 --- a/release/Release +++ b/release/Release @@ -1,7 +1,7 @@ Origin: Needle Agent Label: Needle Agent Suite: stable -Version: 1.0.4 +Version: 1.0.5 Codename: agent Architectures: iphoneos-arm Components: main