mirror of
https://github.com/JJTech0130/pypush.git
synced 2025-01-22 11:18:29 +00:00
start building out initial structure
This commit is contained in:
parent
c22904a39d
commit
e35f72a0fb
@ -47,6 +47,10 @@ cli = [
|
||||
"rich",
|
||||
"typer"
|
||||
]
|
||||
objc = [
|
||||
"pyobjc-core",
|
||||
"pyobjc-framework-Cocoa"
|
||||
]
|
||||
|
||||
[tool.setuptools_scm]
|
||||
version_file = "pypush/_version.py"
|
||||
|
0
pypush/grandslam/__init__.py
Normal file
0
pypush/grandslam/__init__.py
Normal file
0
pypush/grandslam/anisette/__init__.py
Normal file
0
pypush/grandslam/anisette/__init__.py
Normal file
20
pypush/grandslam/anisette/aoskit.py
Normal file
20
pypush/grandslam/anisette/aoskit.py
Normal file
@ -0,0 +1,20 @@
|
||||
import objc
|
||||
from Foundation import NSBundle, NSClassFromString # type: ignore
|
||||
|
||||
AOSKitBundle = NSBundle.bundleWithPath_(
|
||||
"/System/Library/PrivateFrameworks/AOSKit.framework"
|
||||
)
|
||||
objc.loadBundleFunctions(AOSKitBundle, globals(), [("retrieveOTPHeadersForDSID", b"")]) # type: ignore
|
||||
util = NSClassFromString("AOSUtilities")
|
||||
|
||||
h = util.retrieveOTPHeadersForDSID_("-2")
|
||||
|
||||
o = {
|
||||
"X-Apple-I-MD": str(h["X-Apple-MD"]),
|
||||
"X-Apple-I-MD-M": str(h["X-Apple-MD-M"]),
|
||||
}
|
||||
print(o)
|
||||
# h["X-Apple-I-MD"] = str(h["X-Apple-MD"])
|
||||
# h["X-Apple-I-MD-M"] = str(h["X-Apple-MD-M"])
|
||||
# print(o)
|
||||
#return o
|
Loading…
Reference in New Issue
Block a user