git clone https://github.com/dfd-tud/deda
python 3 required for easier installation.
come python 2 to 3 by source_pyenv3 (cryptocat done this by setting up alias may be)
If you have already python3 installed (python -V) then follow below steps:
pip install deda
pdftoppm scan.pdf wtf -png
Here wtf is the image name. for example: wtf-01.png wtf-02.png etc.
deda_parse_print wtf-01.png
It will then parse the dots and give you a serial number. i.e. 102 which is a decimal value. convert the decimal value to ascii to get flag.You can also run a bash script like run a for loop to make your task easier.
$ for x in {01..34}; do echo -n $(python3 -c "print(chr($(deda_parse_print pj-$x.png | grep serial | cut -d '-' -f2 | sed 's/^0*//')))"); done
also
$ ls |while read line ; do deda_parse_print $line|grep "serial"|cut -d ":" -f2|cut -d "-" -f2|sed 's/000//g';done
Avi
Comments
Post a Comment