Coder Social home page Coder Social logo

timvisee / apbf Goto Github PK

View Code? Open in Web Editor NEW
96.0 7.0 22.0 1.38 MB

Tool to brute force Android security pattern through TWRP recovery. https://gitlab.com/timvisee/apbf

License: GNU General Public License v3.0

Rust 100.00%
android brute-force pattern-lock adb twrp decrypt

apbf's People

Contributors

qlyoung avatar timvisee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

apbf's Issues

Fix pattern elements

I'm using apbf to attempt a recovery of a 5x5 pattern. Obviously that's a huge number of options, even if I know that my pattern has a max distance of 1. I do however think I know some elements of the pattern.

It would be amazing if you could fix dots in the pattern (e. g. in my case I believe my pattern started with 0, 5, 10, 15, 25) to decrease the permutations considerably.

Happy to sponsor the adjustments needed, ping me.

Switch to the hippocratic license?

Like, i can imagine that this tool could be used by bad law enforcement to do bad things, like the chinese gov. GPL3 permits any use at all, while hippocratic doesnt allow the evil uses.

I know it won't be "open source" (as defined by OSI and FSF), but come on. This is literally a tool to brute force the android FBE.

Also, i know that they probably have their own tools for that and it is very unlikely that a license would stop them, but it is some effort, right?

TWRP without timeout

Do you have a pointer on where I can find the source code for the timeout of TWRP?
As I sadly have set a 4x4 pattern, it is not feasible to brute force it with 10 seconds timeout, so instead I would like to give it one last try and compile TWRP without this timeout, so I can bruteforce it more quickly. But sadly I cannot find the corresponding source code line.
Thank you very much for your tool by the way.

Using apbf for PIN instead of pattern

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! ๐Ÿค—

Remove the timeout

Is it possible to remove the timeout enforcement from TWRP? Also, are you aware that people have been having trouble with TWRP decryption in that it wouldn't decrypt even after it's given the right password?

wordlist?

Is it possible to make use of a wordlist? I am quite sure of the first dot in my 8digit-pattern, so i could decrease the amount of tries from 40.000 to 2.700....

Awesome work!!

error: process didn't exit successfully

I keep getting this message

$ cargo run --release

Finished release [optimized] target(s) in 0.03s
 Running `target\release\apbf.exe`

Generating possible patterns...
Patterns to try: 1614

Pattern: 2-1-0-3
โ—โ—โ—
โ—โ—‹โ—‹
โ—‹โ—‹โ—‹
Passphrase: '3214'
1 / 1614 [>----------------------------------------------] 0.06 % 49019.61/s 0s
thread 'main' panicked at 'failed to invoke decrypt command: Error { kind: NotFound, message: "program not found" }', src\main.rs:139:10
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
error: process didn't exit successfully: target\release\apbf.exe (exit code: 101)

Process didn't exit successfully

Have no idea, what's wrong.

Generating possible patterns...
Patterns to try: 1614

Pattern: 2-1-0-3
โ—โ—โ—
โ—โ—‹โ—‹
โ—‹โ—‹โ—‹
Passphrase: '3214'
1 / 1614 [>---------------------------------------------------------------------------------------] 0.06 % 564.72/s 3s
An error occurred, heres the output for the decryption attempt:

  • status: exit code: 0

  • stdout: Attempting to decrypt data partition or user data via command line.
    Attempting to decrypt FBE for user 0...
    Failed to decrypt user 0

  • stderr:
    error: process didn't exit successfully: .\apbf.exe (exit code: 1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.