-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
38 lines (31 loc) · 1.01 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import sys
from extract import extract
from kakao_decrypt import decrypt
import hashlib
import base64
import argparse
import csv
import pandas as pd
from Crypto.Cipher import AES
import binascii
def main():
import argparse
parser = argparse.ArgumentParser(description='extract and decrypt kakaotalk message.')
parser.add_argument('-f', '--file',
type = str,
default = 'image.dd',
help = 'File name to extract.')
parser.add_argument('-e', '--extracrt',
dest = 'decrypt',
action = 'store_false',
help = 'Extract kakaotalk message option')
parser.add_argument('-d', '--decrypt',
dest = 'extract',
action = 'store_false',
help = 'Decrypt kakaotalk message option')
args = parser.parse_args()
if (args.extract):
extract(args)
if (args.decrypt):
decrypt()
main()