Coder Social home page Coder Social logo

patternlockscripts's Introduction

About

These scripts will help you hack the swipe lock pattern of an Android device. The scripts work on the hash file gesture.key from an Android device. You'll have to get that file through a root exploit or other means to recover the swipe lock pattern.

Android_GestureFinder.py and GenerateAndroidGestureRainbowTable.py are written by Arun Prasannan and Alex Caithness of CCL Forensics.

GestureKeyLookup.py written by Joshua Wright.

HOWTO

First, precompute lookup database file. You only have to do this once:

$ python3 GenerateAndroidGestureRainbowTable.py
2016-06-16 15:03:45.620806: Building hashes for patterns with length 3
2016-06-16 15:03:45.625866: Building hashes for patterns with length 4
2016-06-16 15:03:45.658979: Building hashes for patterns with length 5
2016-06-16 15:03:45.879143: Building hashes for patterns with length 6
2016-06-16 15:03:47.436660: Building hashes for patterns with length 7
2016-06-16 15:03:57.381887: Building hashes for patterns with length 8
2016-06-16 15:05:06.871813: Building hashes for patterns with length 9

Next, download the gesture.key file from the Android device:

$ adb pull /data/system/gesture.key
4 KB/s (20 bytes in 0.004s)

Finally, recover swipe lock pattern:

$ cd PatternLockScripts/
$ python GestureKeyLookup.py /path/to/gesture.key
[0, 1, 3, 4, 5, 8]

The decoded value is in this pattern:

0  1  2
3  4  5
6  7  8

Questions, comments, concerns?

Joshua Wright [email protected]

patternlockscripts's People

Contributors

joswr1ght avatar

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.