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

ValueError #7

Closed
MrPooyaX opened this issue Feb 7, 2021 · 3 comments
Closed

ValueError #7

MrPooyaX opened this issue Feb 7, 2021 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@MrPooyaX
Copy link

MrPooyaX commented Feb 7, 2021

location : True
.apk/classes.dex
Traceback (most recent call last):
File "deoptfuscator.py", line 24, in
deobfuscator.main(".apk/"+dex)
File "deobfuscator/deobfuscator.py", line 20, in main
dexfile(dex)
File "deobfuscator/classes.py", line 20, in dexfile
class_dic[int(num[0])] = int(num[1])
ValueError: invalid literal for int() with base 10: '45b8'

@MrPooyaX
Copy link
Author

MrPooyaX commented Feb 7, 2021

i edited line 20 of 'classes.py' and that error solved:
try:
class_dic[int(num[0])] = int(num[1])
except ValueError:
class_dic[int(num[0], 16)] = int(num[1])

output apk not fully and correctly deobfuscated
please check yourself and try to deobfuscate:
http://likeg.ir/tel.apk

@Gyoonus Gyoonus added enhancement New feature or request bug Something isn't working labels Feb 7, 2021
@Gyoonus
Copy link
Owner

Gyoonus commented Feb 7, 2021

Thank you! We eagar to solved it.

@geunhayou66
Copy link
Collaborator

geunhayou66 commented Feb 8, 2021

First of all, thank you for correcting the error.
If you look at the below control flow graph, it becomes de-obfuscated.
However, if there is a protection solution in .so files, it may not be possible to execute the app.
Does it matter if the app can run or not?

제목 없음

@Gyoonus Gyoonus removed the enhancement New feature or request label Feb 8, 2021
@Gyoonus Gyoonus pinned this issue Feb 8, 2021
@Gyoonus Gyoonus closed this as completed Mar 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants