stealth: probe sqlite + dump preferences in discover importer#13
Merged
Conversation
m5d on ios 15.8 confirmed storeaccountd is not using cookie files at all on this device — /var/mobile/Library/Cookies/ is empty. state lives in sqlite databases under /var/mobile/Library/com.apple.itunesstored/ plus two small plists under Preferences/. * path E (discover) now opens itunesstored2/itunesstored_private/kvs sqlitedb files read-only, lists tables + columns + row counts so we can map the schema for m5f * path E also dumps the structure of com.apple.itunesstored.plist and com.apple.appstored.plist with values redacted (anything > 24 chars shows count + tail-4 mask) so token-shaped strings don't leak uses iOS-builtin SQLite3 module — no SPM dep added. next iteration uses the schema to extract dsid + storefront + cookies + token from the sqlite rows.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
what
m5d showed ios 15.8 doesn't use cookie files. /var/mobile/Library/Cookies/
is empty; the storeaccountd state lives in sqlite databases under
/var/mobile/Library/com.apple.itunesstored/ + two small plists under
/var/mobile/Library/Preferences/.
changes
kvs.sqlitedb read-only via iOS-builtin SQLite3, lists tables +
columns + row counts
structure with values redacted (>24 chars -> tail-4 mask)
test
schema + plist structure, telling us where dsid / storefront /
cookies / token live in the on-disk state