gpt4 book ai didi

iphone - 在 Safari 上检索 iPhone UDID

转载 作者:行者123 更新时间:2023-12-03 19:55:05 25 4
gpt4 key购买 nike

有一个关于在 Safari 上检索 iPhone UDID 的精彩说明。

http://www.bendytree.com/tips/Getting-an-iPhone-UDID-from-Mobile-Safari

我仔细阅读了这篇文章并遵循它。

这是我的脚本。

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<dict>
<key>URL</key>
<string>http://appfree.com/user/retrieve.php</string>
<key>DeviceAttributes</key>
<array>
<string>UDID</string>
<string>IMEI</string>
<string>ICCID</string>
<string>VERSION</string>
<string>PRODUCT</string>
</array>
</dict>
<key>PayloadOrganization</key>
<string>AppFree, Inc.</string>
<key>PayloadDisplayName</key>
<string>AppFree</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>PayloadUUID</key>
<string>9CF421B3-9853-4454-BC8A-982CBD3C907C</string>
<key>PayloadIdentifier</key>
<string>kr.co.gpon.profile-service</string>
<key>PayloadDescription</key>
<string>This temporary profile will be used to find and display your current device's UDID.</string>
<key>PayloadType</key>
<string>Profile Service</string>
</dict>
</plist>

但是,当用户尝试安装配置文件时,它仍然显示未签名消息

PS。是否有替代手册可以解决此问题?

================================================== ===========================

更新

我通过此代码成功从我的 iPhone 获取数据。

$data = file_get_contents('php://input');

$plistBegin = '<?xml version="1.0"';
$plistEnd = '</plist>';

$pos1 = strpos($data, $plistBegin);
$pos2 = strpos($data, $plistEnd);

$data2 = substr ($data,$pos1,$pos2-$pos1);

$xml = xml_parser_create();

xml_parse_into_struct($xml, $data2, $vs);
xml_parser_free($xml);

$UDID = "";
$CHALLENGE = "";
$DEVICE_NAME = "";
$DEVICE_PRODUCT = "";
$DEVICE_VERSION = "";
$iterator = 0;

$arrayCleaned = array();

foreach($vs as $v){

if($v['level'] == 3 && $v['type'] == 'complete'){
$arrayCleaned[]= $v;
}
$iterator++;
}

$data = "";

$iterator = 0;

foreach($arrayCleaned as $elem){
$data .= "\n==".$elem['tag']." -> ".$elem['value']."<br/>";
switch ($elem['value']) {
case "CHALLENGE":
$CHALLENGE = $arrayCleaned[$iterator+1]['value'];
break;
case "DEVICE_NAME":
$DEVICE_NAME = $arrayCleaned[$iterator+1]['value'];
break;
case "PRODUCT":
$DEVICE_PRODUCT = $arrayCleaned[$iterator+1]['value'];
break;
case "UDID":
$UDID = $arrayCleaned[$iterator+1]['value'];
break;
case "VERSION":
$DEVICE_VERSION = $arrayCleaned[$iterator+1]['value'];
break;
}
$iterator++;
}

$params = "UDID=".$UDID."&CHALLENGE=".$CHALLENGE."&DEVICE_NAME=".$DEVICE_NAME."&DEVICE_PR ODUCT=".$DEVICE_PRODUCT."&DEVICE_VERSION=".$DEVICE_VERSION;
// enrollment is a directory
header('Location: http://mywebsite.com/enrollment?'.$params);

然而,我遇到了新的障碍。

================================================== =========================

我读了这篇文章并关注了他所做的事情。

https://discussions.apple.com/thread/3089948?start=0&tstart=0

================================================== ========================= enter image description here

数据已发送到我的服务器,但仍然显示消息“无效的配置文件”。

它不会重定向到移动网站。

最佳答案

您是否尝试添加

header("Location: http://www.mysite.com/Results?data=".rawurlencode($data));

在代码末尾?

<小时/>
openssl smime \
-sign \
-signer your-cert.pem \
-inkey your-priv-key.pem \
-certfile TheCertChain.pem \
-nodetach \
-outform der \
-in ConfigProfile.mobileconfig \
-out ConfigProfile_signed.mobileconfig

您需要的文件是:

your-cert.pem – 这是为您颁发的证书

your-priv-key.pem – 这是您的私钥

TheCertChain.pem – 这是证书链(在某些情况下可选)

ConfigProfile.mobileconfig – 这是您的配置文件的未签名副本

更详细here

关于iphone - 在 Safari 上检索 iPhone UDID,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11477461/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com