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

ERROR #9

Open
Zoogoumafou opened this issue Dec 26, 2022 · 1 comment
Open

ERROR #9

Zoogoumafou opened this issue Dec 26, 2022 · 1 comment

Comments

@Zoogoumafou
Copy link

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

@TheMythologist
Copy link

Replace:

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

with:

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

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