Abolish Mail plugin in favor of calling AOSKit::retrieveHeadersForDSID directly

Open
#127 9 comments 12 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
macos, swift

Research direction

Start by reading the AOSKit entry points retrieveHeadersForDSID and retrieveOTPHeadersForDSID, then review the linked AppleIDAuth XCode project and its Catalina testing context. Replace the Mail plugin setup with direct retrieval of anisette data, and verify that the result matches the data currently obtained through the plugin.

Written by the indexing model from the issue text.

Description

enhancement

Is your feature request related to a problem? Please describe.
Not really a problem, but I found an easier way of retrieving anisette data that does not require installing a Mail plugin.

Describe the solution you'd like
AOSKit has a function retrieveHeadersForDSID that can readily retrieve the required anisette data, without needing the entitlements of the Mail program. This is not my work, I just stumbled upon this git repo: https://github.com/vtky/AppleIDAuth (all credits go to @vtky), tested it on Catalina and it works fine with my script: https://github.com/biemster/FindMy

Describe alternatives you've considered
Just do nothing, the Mail plugin works fine too. This would only remove an extra step in setting up the whole thing.

Additional context
According to Victor who did all the hard work here, the function retrieveOTPHeadersForDSID requires a single parameter. Providing "-2" as parameter retrieves the same anisette data as the Mail plugin in my tests. The original repo linked above provides a lot of additional info and a compiling XCode project with which I did my tests, and is definitely worth a read (not very long).

Dominant language
Swift
Stars
13.6k
Forks
681
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from seemoo-lab/openhaystack

All issues in seemoo-lab/openhaystack

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.