jiru / kakaodecrypt Goto Github PK
View Code? Open in Web Editor NEWDecrypt chat history from the local database of Kakaotalk’s Android app
License: Do What The F*ck You Want To Public License
Decrypt chat history from the local database of Kakaotalk’s Android app
License: Do What The F*ck You Want To Public License
잘 진행되다가 갑자기 뻗더라고요
복호화가 완료된건가요? 아니면 오류인가요?
Traceback (most recent call last):
File "kakaodecrypt.py", line 20, in genSalt
salt = prefixes[encType] + str(user_id)
IndexError: list index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "kakaodecrypt.py", line 215, in <module>
KakaoDbDecrypt.run(args.db_file, enc_table, dec_table, enc_fields, args.p, args.u)
File "kakaodecrypt.py", line 177, in run
contents = KakaoDecrypt.decrypt(user_id, enc_type, contents)
File "kakaodecrypt.py", line 92, in decrypt
salt = KakaoDecrypt.genSalt(user_id, encType)
File "kakaodecrypt.py", line 23, in genSalt
raise ValueError('Unsupported encoding type %i' % encType)
ValueError: Unsupported encoding type 30
First, sorry for my bad English :(
I have KeyError 'enc' similar to issue #13
chat_logs are successfully decoded and make chat_logs_dec table, but i think there is an issue decoding chat_rooms.
Here is my error log:
PS kakaodecrypt-master> python .\kakaodecrypt.py -u 54976745 apps\com.kakao.talk\db\KakaoTalk.db
Created table 'chat_logs_dec'.
Traceback (most recent call last):
File "\kakaodecrypt.py", line 197, in run
enc_type = row[ col_defs['enc'] ]
KeyError: 'enc'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "kakaodecrypt.py", line 255, in <module>
KakaoDbDecrypt.run(args.db_file, enc_table, dec_table, enc_fields, args.p, args.u)
File "kakaodecrypt.py", line 205, in run
enc_type = v_data['enc']
KeyError: 'enc'
and codes where error appeared:
using env : windows 10 pro version 22H2 (os build 19045.3803)
python 3.9.13 64-bit
pycrypthodome, pycryptodome == 3.19.0
I uploaded my kakaotalk.db file at google drive.
If u need db file, let me know how to share file link (like e-mail address or something else).
Thank you.
Traceback (most recent call last):
File "C:/Users/..../PycharmProjects/kakaode/talk.py", line 3, in
from Crypto.Cipher import AES
ModuleNotFoundError: No module named 'Crypto'
Traceback (most recent call last):
File "kakaodecrypt.py", line 181, in run
enc_type = row[ col_defs['enc'] ]
KeyError: 'enc'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "kakaodecrypt.py", line 239, in
KakaoDbDecrypt.run(args.db_file, enc_table, dec_table, enc_fields, args.p, args.u)
File "kakaodecrypt.py", line 189, in run
enc_type = v_data['enc']
KeyError: 'enc'
it seems its not working in large size userId, which is used in openchatting
can you please check it?
test case :
KakaoDecrypt.decrypt(77289285161409090,26,"6ooWLeWv/zcVSNsm8X44SOqc/Yg9u2wYe9HolLxmLOw=")
I decrypted chat_logs using your code.
It creates friends_dec table, However, It doesn't work.
name, nickname, and other things returns blank, blob, or null.
I think It doesn't work because user_id doesn't exist in friends table.
In my case, It has these Integer fields : _id, contact_id, id, type, chat_id, brand_new, blocked, favorite, position, user_type, story_user_id, account_id, hidden, member_type, enc, created_at, new_badge_update_at, new_badge_seen_at.
There are no user_id.
If you need my database, I'll send it to you.
C:\Users\123\Desktop\kakaodecrypt-master>python kakaodecrypt.py -p KakaoTalk.db
C:\Users\123\Desktop\kakaodecrypt-master>
and open kakaotalk.db ->
table (0)
index (0)
view (0)
trigger (0)
DB browser for sqlite
I did my research and the new prefix should be "tony".
And I always have the following error running the program. I don't know what's wrong.
Traceback (most recent call last):
File "kakaodecrypt.py", line 166, in <module>
KakaoDbDecrypt.run(db_file, enc_table, dec_table, do_print)
File "kakaodecrypt.py", line 135, in run
contents = KakaoDecrypt.decrypt(user_id, enc_type, contents)
File "kakaodecrypt.py", line 88, in decrypt
key = KakaoDecrypt.deriveKey(key, salt, 2, 32)
File "kakaodecrypt.py", line 72, in deriveKey
KakaoDecrypt.pkcs16adjust(I, j * v, B)
File "kakaodecrypt.py", line 24, in pkcs16adjust
x = (b[len(b) - 1] & 0xff) + (a[aOff + len(b) - 1] & 0xff) + 1
TypeError: unsupported operand type(s) for &: 'str' and 'int'
Traceback (most recent call last):
File "kakaodecrypt.py", line 19, in genSalt
salt = prefixes[encType] + str(user_id)
IndexError: list index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "kakaodecrypt.py", line 207, in
KakaoDbDecrypt.run(db_file, enc_table, dec_table, enc_fields, do_print)
File "kakaodecrypt.py", line 167, in run
contents = KakaoDecrypt.decrypt(user_id, enc_type, contents)
File "kakaodecrypt.py", line 91, in decrypt
salt = KakaoDecrypt.genSalt(user_id, encType)
File "kakaodecrypt.py", line 22, in genSalt
raise ValueError('Unsupported encoding type %i' % encType)
ValueError: Unsupported encoding type 28
아직도 복호화가 되는건가요? 돌려보면
C:\pentest\virus>python decryt.py -p KakaoTalk.db
1|1504226982476158976|1|169654773776406|240440409|pBO6rG5DQmOOfRwyoV6nqw==|None|1500255029|0|743764879|1504219690368274433|{"origin":"MCHATLOGS","defaultEmoticonsCount":0,"isMine":false,"notDecoded":false,"c":"07-17 10:41:58","isSingleDefaultEmoticon":false,"enc":22}
2|1504229712213088256|1|169654773776406|240440409|Ah06VZFMkDYZTdUrbrBb77fLJjvbAuv1xjrAkaLOdkQ=|{}|1500255355|0|1311838799|1504226982476158976|{"origin":"MCHATLOGS","defaultEmoticonsCount":0,"isMine":false,"notDecoded":false,"c":"07-17 10:41:58","isSingleDefaultEmoticon":false,"enc":22}
3|1504231764695846913|1|173183388153071|3741085|6U/FA+Cva5b84+EsB/MOXQ==|None|1500255599|0|745694590|1504218710151079936|{"origin":"MCHATLOGS","defaultEmoticonsCount":0,"isMine":false,"notDecoded":false,"c":"07-17 10:41:58","isSingleDefaultEmoticon":false,"enc":22}
이러한 애러가 뜹니다
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.