androidpatternlock icon indicating copy to clipboard operation
androidpatternlock copied to clipboard

ERROR

Open Zoogoumafou opened this issue 2 years ago • 1 comments

sudo python3 aplc.py gesture.sample.key 

################################
# Android Pattern Lock Cracker #
#             v0.2             #
# ---------------------------- #
#  Written by Chema Garcia     #
#     http://safetybits.net    #
#     [email protected]     #
#          @sch3m4             #
################################

[i] Taken from: http://forensics.spreitzenbarth.de/2012/02/28/cracking-the-pattern-lock-on-android/

Traceback (most recent call last):
  File "/home/htb-onibi/androidpatternlock/aplc.py", line 178, in <module>
    main()
  File "/home/htb-onibi/androidpatternlock/aplc.py", line 152, in main
    gest = f.read(hashlib.sha1().digest_size).encode('hex')
AttributeError: 'bytes' object has no attribute 'encode'

I don't know whats cause that and how to solve it

Zoogoumafou avatar Dec 26 '22 20:12 Zoogoumafou

Replace:

gest = f.read(hashlib.sha1().digest_size).encode('hex')

with:

gest = f.read(hashlib.sha1().digest_size).hex()

TheMythologist avatar Mar 10 '23 04:03 TheMythologist