Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remember 2FA code #317

Open
0xallie opened this issue Sep 19, 2023 · 0 comments
Open

Remember 2FA code #317

0xallie opened this issue Sep 19, 2023 · 0 comments

Comments

@0xallie
Copy link

0xallie commented Sep 19, 2023

Would it be possible to utilize anisette data to remember the 2FA code and not prompt for it each time? It's pretty easy to get anisette on macOS with SIP/AMFI enabled, works even on macOS 14.0 RC.

#!/usr/bin/osascript -l JavaScript

ObjC.bindFunction('dlopen', ['void*', ['char*', 'int']]);
$.dlopen('/System/Library/PrivateFrameworks/AOSKit.framework/Versions/A/AOSKit', 0xa);
const AOSUtilities = $.NSClassFromString($.NSString.alloc.initWithUTF8String('AOSUtilities'));

const otp = AOSUtilities.retrieveOTPHeadersForDSID('-2');
JSON.stringify(ObjC.unwrap(otp.allKeys).reduce((o,k) => { o[ObjC.unwrap(k)] = ObjC.deepUnwrap(otp.valueForKey(k)); return o; }, {}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants