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

Using apbf for PIN instead of pattern #2

Closed
Nurmengardian opened this issue Jun 16, 2021 · 1 comment
Closed

Using apbf for PIN instead of pattern #2

Nurmengardian opened this issue Jun 16, 2021 · 1 comment

Comments

@Nurmengardian
Copy link

Greetings. The matter in case is a forgotten PIN. While this tool is wonderful for patterns, could you please either start a new project or modify this one for usage in scenarios of PINs, which I guess would be less complicated than brute forcing patterns. Thank you! 🤗

@timvisee
Copy link
Owner

I've just added very basic support for PIN brute forcing. It has no configurable options at this time. Because there are 10k 4 number PINs to try, this will take a very long time.

See the following configuration property to switch to PIN brute forcing:

apbf/src/config.rs

Lines 6 to 11 in 53d469a

/// What type of code we want to crack. Should likely be a pattern.
///
/// Any of:
/// - `crate::Code::Pattern`
/// - `crate::Code::Pin`
pub const CODE_TYPE: crate::Code = crate::Code::Pattern;

Please note that TWRP sometimes seems to reach some weird state where it will never decrypt successfully with any code. I don't know the ins and outs of it, and am therefore not sure how to check this or how this could happen.

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

2 participants