-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhide
21 lines (19 loc) · 1.06 KB
/
hide
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
# run from terminal ./hide
echo "|--------------------------------------------------------------------|"
echo "| This script will allow you to hide the data inside your |"
echo "| .MKV container. Please follow the instructions below to launch |"
echo "| data_hiding process successfully. |"
echo "|--------------------------------------------------------------------|"
read -p " Enter the name of your .MKV container and press [ENTER]: " filename
if [ "${filename: -4}" == ".mkv" ]; then
cat ${filename} | python parse_and_convert_mkv2xml.py > .tmp.xml &&
python hide_data.py .tmp.xml &&
cat .hidden_data.xml | python convert_xml2mkv.py > modified_mkv.mkv &&
rm .tmp.xml && rm .hidden_data.xml
else
echo "|--------------------------------------------------------------------|"
echo "| The file that you are trying to select is not .MKV container. |"
echo "| Relaunch the script with .MKV extension. |"
echo "|--------------------------------------------------------------------|"
fi