Skip to content

Instantly share code, notes, and snippets.

@steeve
Last active May 26, 2023 05:27
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steeve/893b258e5a9ebd4b64cc2215ce73deac to your computer and use it in GitHub Desktop.
Save steeve/893b258e5a9ebd4b64cc2215ce73deac to your computer and use it in GitHub Desktop.
Xcode 11.3 direct download
https://osxapps.itunes.apple.com/itunes-assets/Purple113/v4/53/ee/eb/53eeeb98-3d0f-3ae5-d75c-71b6039e92af/yus17983763444028048468.pkg
{
"artwork-url" = "https://is4-ssl.mzstatic.com/image/thumb/Purple123/v4/6c/2a/3c/6c2a3c9c-a9c0-d7de-cbc7-3fb0993feeb6/Xcode-0-0-85-220-0-0-0-0-4-0-0-0-2x-sRGB-0-0-0-0-0.png/2000x2000bb.png";
assets = (
{
name = "yus17983763444028048468.pkg";
size = 7806218686;
typeStr = app;
url = "https://osxapps.itunes.apple.com/itunes-assets/Purple113/v4/53/ee/eb/53eeeb98-3d0f-3ae5-d75c-71b6039e92af/yus17983763444028048468.pkg";
}
);
"bundle-id" = "com.apple.dt.Xcode";
"bundle-version" = "11.3";
"buy-params" = "osVersion=10.14.6&mtApp=com.apple.AppStore&appExtVrsId=xxxxxxxxxx&hardwareFamily=MacBook%20Pro&mtClientId=xxxxxxxxx&installedSoftwareRatingName=4+&salableAdamId=497799835&mtOsVersion=10.14.6&pg=default&mtEventTime=1578711923266&productType=C&os=macOS&marketType=ENT&ct-id=14&osBuildNumber=18G2022&mtTopic=xp_amp_appstore&mtHardwareModel=MacBookPro14,3&hardwareModel=MacBookPro14,3&mtOsBuildNumber=18G2022&mtHardwareFamily=MacBook%20Pro&mtPageContext=Updates&pricingParameters=SWUPD&mtOs=macOS&price=0&mtRequestId=3z2DcGTnz4exxxxxxfyzK590BG3Mz1XQB";
"download-status" = <62706c69 73743030 d4010203 0405063b 3c582476 65727369 6f6e5824 6f626a65 63747359 24617263 68697665 72542474 6f701200 0186a0a7 0708171b 2f353855 246e756c 6cd7090a 0b0c0d0e 0f101112 12141216 5624636c 61737356 5f657272 6f72585f 77616974 696e675a 5f63616e 63656c6c 6564575f 70617573 6564575f 6661696c 65645c5f 61637469 76655068 61736580 06800008 08090880 02d21809 191a5f10 125f6f70 65726174 696f6e50 726f6772 65737380 038005da 1c1d1e1f 20212209 23242526 1428292a 2b2c2d2e 565f756e 69747359 5f6d6178 56616c75 65595f63 616e5061 7573655b 5f636861 6e676552 6174655f 10175f6e 6f726d61 6c697a65 64437572 72656e74 56616c75 655d5f63 75727265 6e745661 6c75655f 10135f6e 6f726d61 6c697a65 644d6178 56616c75 655f1017 5f657374 696d6174 65645469 6d655265 6d61696e 696e675e 5f6f7065 72617469 6f6e5479 70651001 2341fd14 971be000 00092341 5b382cb8 f0669b23 4000b59f db6220f0 2341a81a 00000000 00234059 00000000 00008004 2340a083 5a65fa90 301002d2 30313233 5a24636c 6173736e 616d6558 24636c61 73736573 5f101353 534f7065 72617469 6f6e5072 6f677265 7373a232 34584e53 4f626a65 6374d230 3136375f 100f5353 446f776e 6c6f6164 50686173 65a23634 d2303139 3a5f1010 5353446f 776e6c6f 61645374 61747573 a239345f 100f4e53 4b657965 64417263 68697665 72d13d3e 54726f6f 74800100 08001100 1a002300 2d003200 37003f00 45005400 5b006200 6b007600 7e008600 93009500 97009800 99009a00 9b009d00 a200b700 b900bb00 d000d700 e100eb00 f7011101 1f013501 4f015e01 60016901 6a017301 7c018501 8e019001 99019b01 a001ab01 b401ca01 cd01d601 db01ed01 f001f502 08020b02 1d022002 25000000 00000002 01000000 00000000 3f000000 00000000 00000000 00000002 27>;
"download-type" = 1;
"external-version" = 833677847;
failed = 0;
"in-server-queue" = 0;
"is-initated-by-server" = 0;
"item-id" = 497799835;
kind = software;
paused = 1;
"product-type" = "mac-os-app";
"queued-date" = "600404725.436993";
"show-in-dock" = 0;
subtitle = Apple;
title = Xcode;
"user-id" = XXXX;
}
Files are identical, except every 0x200 bytes, 0x70 bytes are different, not sure why.
OFFSET good.pkg encrypted.pkg
--------------------------------------------------------------------------------
0x00000000 78 61 72 21 00 1C 00 01 |xar!....| \ D0 AE 50 11 77 3A D6 AC |..P.w:..| <
0x00000008 00 00 00 00 00 00 12 D1 |........| / AE 62 37 31 E4 D5 B6 BC |.b71....| <
0x00000010 00 00 00 00 00 00 40 B6 |......@.| \ F8 16 F7 89 5E FD 6A C1 |....^.j.| <
0x00000018 00 00 00 01 78 DA 94 57 |....x..W| / 1A E9 60 5A 73 77 34 B1 |..`Zsw4.| <
0x00000020 D9 B2 E2 38 12 7D 27 82 |...8.}'.| \ 73 04 69 59 69 FC 33 FE |s.iYi.3.| <
0x00000028 7F B8 51 F3 48 74 7B 63 |..Q.Ht{c| / 17 15 B0 4F 1E 5E FE 42 |...O.^.B| <
0x00000030 ED B8 55 13 92 77 B0 0C |..U..w..| \ E7 04 03 14 17 7C E7 B5 |.....|..| <
0x00000038 36 D8 C6 BC 79 01 EF D8 |6...y...| / 05 7B 51 E3 21 21 D8 BF |.{Q.!!..| <
0x00000040 D8 18 61 7F FD 08 E8 5B |..a....[| \ EA 7B A1 02 13 83 C6 12 |.{......| <
0x00000048 D5 5D 5D 33 55 F3 64 2B |.]]3U.d+| / DE FD DF 54 11 9F A0 65 |...T...e| <
0x00000050 25 A5 32 95 99 E7 A4 DE |%.2.....| \ 10 C9 94 4E FE 8D 7B AC |...N..{.| <
0x00000058 FF 7D 2F F2 B7 DB B1 6E |.}/....n| / F7 82 E5 E7 4F 69 F6 53 |....Oi.S| <
0x00000060 92 F2 FC F9 13 F3 3B FD |......;.| \ 07 A0 06 24 B4 34 45 F1 |...$.4E.| <
0x00000068 E9 ED 78 0E CA 30 39 47 |..x..09G| / 1E FD 93 9F 84 AA 2C 15 |......,.| <
0x00000070 9F 3F 59 3B E9 B7 F9 A7 |.?Y;....| \ 9F 3F 59 3B E9 B7 F9 A7 |.?Y;....|
0x00000078 7F 7F 19 BC DF BD FA CB |........| / 7F 7F 19 BC DF BD FA CB |........|
0x00000080 E0 ED FD 5A 06 E4 F3 F6 |...Z....| \ E0 ED FD 5A 06 E4 F3 F6 |...Z....|
0x00000088 1E D4 47 EF 4A 76 FC 76 |..G.Jv.v| / 1E D4 47 EF 4A 76 FC 76 |..G.Jv.v|
0x00000090 4D 8A E3 17 96 66 16 BF |M....f..| \ 4D 8A E3 17 96 66 16 BF |M....f..|
0x00000098 31 CC 6F 2C BB A3 99 3F |1.o,...?| / 31 CC 6F 2C BB A3 99 3F |1.o,...?|
0x000000A0 68 EE 8F C9 FC 9D FA FB |h.......| \ 68 EE 8F C9 FC 9D FA FB |h.......|
0x000000A8 92 E7 A6 F8 18 64 4D 5B |.....dM[| / 92 E7 A6 F8 18 64 4D 5B |.....dM[|
$ curl -LO -A 'MacAppStore/3.0' 'http://osxapps.itunes.apple.com/apple-assets-us-std-000001/Purple3/v4/74/d2/82/74d28291-9db9-7ae2-305d-9b8b3f5fd463/ftk3252456602304584541.pkg
$ ls -lh
total 15270072
-rw-r--r--@ 1 steeve staff 7.3G Jan 7 17:14 yus17983763444028048468.pkg
$ pkgutil --expand ./yus17983763444028048468.pkg out
Could not open package for expansion: ./yus17983763444028048468.pkg
$ mv yus17983763444028048468.pkg yus17983763444028048468.dmg
$ mkdir tmp
$ hdiutil attach yus17983763444028048468.dmg -noverify -mountpoint ./tmp
hdiutil: attach failed - image not recognised
$ xar -t -f yus17983763444028048468.pkg
Error opening xar archive: yus17983763444028048468.pkg
$ installer -pkg yus17983763444028048468.pkg -target tmp -dumplog
installer: Error - the package path specified was invalid: 'yus17983763444028048468.pkg'.
$ xz -t yus17983763444028048468.pkg
xz: yus17983763444028048468.pkg: File format not recognized
$ file yus17983763444028048468.pkg
yus17983763444028048468.pkg: data
$ unzip -l yus17983763444028048468.pkg
Archive: yus17983763444028048468.pkg
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of yus17983763444028048468.pkg or
yus17983763444028048468.pkg.zip, and cannot find yus17983763444028048468.pkg.ZIP, period.
$ 7z l yus17983763444028048468.pkg
7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=utf8,Utf16=on,HugeFiles=on,64 bits,8 CPUs x64)
Scanning the drive for archives:
1 file, 7806218686 bytes (7445 MiB)
Listing archive: yus17983763444028048468.pkg
ERROR: yus17983763444028048468.pkg : yus17983763444028048468.pkg
Open ERROR: Can not open the file as [Xar] archive
Interceptor.attach(ObjC.classes.HashedDownloadProvider["- initWithAsset:dpInfo:streamExtraction:storeClient:"].implementation, {
onEnter: function(args) {
var self = ObjC.Object(args[0]);
var asset = ObjC.Object(args[2]);
var dpInfo = ObjC.Object(args[3]);
var manifest = asset.copyManifestRepresentation();
console.log("MANIFEST");
console.log(manifest);
console.log("DPINFO");
console.log(dpInfo);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment