Skip to content

Commit

Permalink
Merge pull request #9 from mwrlabs/develop
Browse files Browse the repository at this point in the history
[V1.0.5] Update version and changelog
  • Loading branch information
marco-lancini authored Jun 7, 2017
2 parents ad7c716 + 88bd6d1 commit 6c5d1a2
Show file tree
Hide file tree
Showing 19 changed files with 85 additions and 43 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion needle-agent/needleAgent/Constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion needle-agent/needleAgent/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0.4</string>
<string>1.0.5</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
70 changes: 53 additions & 17 deletions needle-agent/needleAgent/Utils.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand All @@ -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];
Expand Down
Binary file modified release/NeedleAgent.deb
Binary file not shown.
Binary file modified release/NeedleAgent/Applications/needleAgent.app/Assets.car
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified release/NeedleAgent/Applications/needleAgent.app/Info.plist
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,23 @@
</data>
<key>Assets.car</key>
<data>
VtqTPqbqm4OyTD258/zF/8RGMBQ=
utngJU5evY0lgikhf1IubFUVX70=
</data>
<key>Base.lproj/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib</key>
<data>
skicZjnUutU1Qv5zubxYrRdC2ws=
Je8w6lGshtbxeTHmFN8l0++xlO8=
</data>
<key>Base.lproj/LaunchScreen.storyboardc/Info.plist</key>
<data>
n2t8gsDpfE6XkhG31p7IQJRxTxU=
</data>
<key>Base.lproj/LaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib</key>
<data>
P9HzClKvNq2DCMKIhBJr3dIZrb0=
2DReOCaGceT7rqNrHjO9n5IaBuE=
</data>
<key>Frameworks/CocoaAsyncSocket.framework/CocoaAsyncSocket</key>
<data>
ydGi+FptEKvWum6Qk59QnK6QPtA=
RdGY2PmM1Uu9y2f5QtZz4mpwrUE=
</data>
<key>Frameworks/CocoaAsyncSocket.framework/Info.plist</key>
<data>
Expand All @@ -62,19 +62,19 @@
</data>
<key>Info.plist</key>
<data>
Boeo0ugvXt/ITQE+M0nY9TJvlNs=
WQAqJWEhs212NHlTNrHZoSZPyb0=
</data>
<key>Main.storyboardc/BF7-WO-YOG-view-ue0-Jf-hdt.nib</key>
<data>
ao+CVj9SKm+K8MRtpX6Bd8ElVL8=
Thf40KheVPgCZhkGVLaZxD9kadQ=
</data>
<key>Main.storyboardc/Info.plist</key>
<data>
ZS37Y9v7m+LMZu/RwxHyx/OvsiY=
</data>
<key>Main.storyboardc/UINavigationController-EVn-Gp-ziU.nib</key>
<data>
9C4Qu9mRMTlVTV8fDKyODXAVSv4=
QmBIzM9FCluniHsyJ5YNN5cTfwo=
</data>
<key>PkgInfo</key>
<data>
Expand Down Expand Up @@ -172,22 +172,22 @@
<dict>
<key>hash</key>
<data>
VtqTPqbqm4OyTD258/zF/8RGMBQ=
utngJU5evY0lgikhf1IubFUVX70=
</data>
<key>hash2</key>
<data>
ALJky5CNY9Rg0neHOYGq6qq5muXkivEfyqXn/3faqTk=
wLm4q+QPqQF5YGUuo800zmWV6EvULjCI2KfgRP5gpvo=
</data>
</dict>
<key>Base.lproj/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib</key>
<dict>
<key>hash</key>
<data>
skicZjnUutU1Qv5zubxYrRdC2ws=
Je8w6lGshtbxeTHmFN8l0++xlO8=
</data>
<key>hash2</key>
<data>
4rqIVK17Ru/ekKGd5n8M7wiDfd+vRfpkPC2QCaSJUU0=
H9JmRvJhcbOl41hc5do8b0e3gKwZCGng/ofeT2WjOio=
</data>
</dict>
<key>Base.lproj/LaunchScreen.storyboardc/Info.plist</key>
Expand All @@ -205,22 +205,22 @@
<dict>
<key>hash</key>
<data>
P9HzClKvNq2DCMKIhBJr3dIZrb0=
2DReOCaGceT7rqNrHjO9n5IaBuE=
</data>
<key>hash2</key>
<data>
MLERHGH+XxF+t2P+k8Wx4UKg//3pajHWeEF2stK5Ce0=
qR26rDZwvh7dGCN4V5zJiaPRS3517hUHc8MEHD/pG/8=
</data>
</dict>
<key>Frameworks/CocoaAsyncSocket.framework/CocoaAsyncSocket</key>
<dict>
<key>hash</key>
<data>
ydGi+FptEKvWum6Qk59QnK6QPtA=
RdGY2PmM1Uu9y2f5QtZz4mpwrUE=
</data>
<key>hash2</key>
<data>
MzJPBjX0IykSbL/B8Zea/QID9fwb/7RiWSnsXHsNQgY=
fYts4MoPpl7d2hebHrsaMLMsrwACb+OIPN5/2tqKpNE=
</data>
</dict>
<key>Frameworks/CocoaAsyncSocket.framework/Info.plist</key>
Expand Down Expand Up @@ -249,11 +249,11 @@
<dict>
<key>hash</key>
<data>
ao+CVj9SKm+K8MRtpX6Bd8ElVL8=
Thf40KheVPgCZhkGVLaZxD9kadQ=
</data>
<key>hash2</key>
<data>
UWt4OEW2PjrCkt7m9LuAzOQvQCvFofrxVHDnBVI4qOk=
YOtRpPBJxZ0MywQvOxg38StvknHm62F9Z7jBAv2B97U=
</data>
</dict>
<key>Main.storyboardc/Info.plist</key>
Expand All @@ -271,11 +271,11 @@
<dict>
<key>hash</key>
<data>
9C4Qu9mRMTlVTV8fDKyODXAVSv4=
QmBIzM9FCluniHsyJ5YNN5cTfwo=
</data>
<key>hash2</key>
<data>
2Sc/DtMOrv4Wp8oua1OORMhyndlVd5ym0hD+76+SLzQ=
Ov68i9jms0U7bI9cp2VXDcmZScy5EuLyp6KRE9lDu9s=
</data>
</dict>
<key>archived-expanded-entitlements.xcent</key>
Expand Down
Binary file modified release/NeedleAgent/Applications/needleAgent.app/needleAgent
Binary file not shown.
2 changes: 1 addition & 1 deletion release/NeedleAgent/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions release/Packages
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Binary file modified release/Packages.bz2
Binary file not shown.
Binary file modified release/Packages.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion release/Release
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 6c5d1a2

Please sign in to comment.