Redaction gone wrong
Description
Now you DONâT see me.
This report has some critical data in it, some of which have been redacted correctly, while some were not. Can you find an important key that was not redacted properly?
Solving
- Look at the pdf file... some text is redacted
- If it is done right, you cannot extract it, but we are lucky, it's not done correctly.
- We can copy the text from the pdf and extract everything... or use
pdftotext
and so on. - I will use
pdftotext
- just usepdftotext <FILE>
to create a new textfile with the content of the pdf. - And you got the flag đ
This bashscript will do it for you đ
#!/bin/bash
pdf=Financial_Report_for_ABC_Labs
pdftotext ${pdf}.pdf
grep -o "picoCTF{.*}" ${pdf}.txt
rm ${pdf}.txt