拒绝MDM推送词典,因为它没有正确的魔法字符串

问题描述:

我使用苹果的MDM并找到一个奇怪的问题。 这个iphone设备本来可以被mdm控制,它工作正常,但突然失去控制权,看到xcode设备日志出现,“拒绝MDM推送字典,因为它没有正确的魔术字符串。” 这是如何解决这个问题的?拒绝MDM推送词典,因为它没有正确的魔法字符串

Aug 1 08:03:04 iPhone6 apsd(PersistentConnection)[93] <Notice>: 2017-08-01 08:03:04 +0800 apsd[93]: <APSCourier: 0x155d12f70>: Received message for enabled topic 'com.apple.mgmt.External.69e3a6a4-4f53' with payload '{ 
 
aps = { 
 
}; 
 
mdm = "5E73DE3E-ADE2-4955-B58C"; 
 
}' onInterface: WWAN for device token: YES with priority (null) 
 
Aug 1 08:03:04 iPhone6 mdmd(libdispatch.dylib)[4508] <Notice>: Push token received. 
 
Aug 1 08:03:04 iPhone6 mdmd(ApplePushService)[4508] <Notice>: Received push notification. 
 
Aug 1 08:03:04 iPhone6 mdmd(ApplePushService)[4508] <Notice>: Rejecting MDM push dictionary because it does not have the right magic string.

你推魔力似乎并不正确,应该几乎始终处于UUID格式,仔细检查您发送正确的,或显示代码,您是如何在发送/获取它

来源:

https://media.blackhat.com/bh-us-11/Schuetz/BH_US_11_Schuetz_InsideAppleMDM_WP.pdf

The PushMagic token is a hexadecimal string, likely a simple random UUID (in UUID format).