🧠What I Practiced/Learned/Discovered
- Discovered tesseract which is a tool that helps extracting text on an image.
- How to easily decode encoded strings and identify encoding algorithm applied to a text.
🔧 Tools used
Websites
- dcode : https://www.dcode.fr
Linux shell
base64(decoding)cattesseract(OCR)
Steps
-
The file looked like a base64 code so I tried
cat logs.txt | base64 -dbut it returned me weird characters
-
Those characters reminded me of when I open images as text, so I tried to give the output to an image file instead
cat logs.txt | base64 -d > output.jpgand it gave me a picture -
Opened the picture and saw a text in the middle of the picture. The text was so long I couldn’t retype it and I couldn’t also directly copy the text using my mouse.
-
Searched for a text-on-image extractor and found a tool called
tesseract -
Installed the tool :
sudo apt install tesseract-ocr -
Run the command :
tesseract output.jpg result -
Got the text and copied it
-
Went on dcode to try to find the encoding algorithm : https://www.dcode.fr/identification-chiffrement
-
It gave a really positive result on ASCII

-
So I tried to decode it in ASCII and got the flag : https://www.dcode.fr/code-ascii