diff --git a/.gitignore b/.gitignore index 085c4fe..9b810ae 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,5 @@ *.pyc +*.sql +output/ +resource *.db diff --git a/decrypt_db.sh b/decrypt_db.sh index 94a8528..9db2e41 100755 --- a/decrypt_db.sh +++ b/decrypt_db.sh @@ -1,6 +1,6 @@ #!/bin/bash -e # File: decrypt_db.sh -# Date: Sun Feb 01 17:30:29 2015 +0800 +# Date: Tue Jun 16 22:18:40 2015 +0800 # Author: Yuxin Wu source compatibility.sh @@ -33,9 +33,9 @@ echo "Dump decoded database... " echo "Don't worry about libcrypt.so version warning." -SQLCIPHER=./sqlcipher/$os/$version +SQLCIPHER=./third-party/sqlcipher/$os/$version export LD_LIBRARY_PATH=$SQLCIPHER -$SQLCIPHER/sqlcipher $MSGDB << EOF +"$SQLCIPHER"/sqlcipher "$MSGDB" << EOF PRAGMA key='$KEY'; PRAGMA cipher_use_hmac = off; ATTACH DATABASE "$output" AS db KEY "";