CRYPTO7 – Pretty Good Privacy

This challenge gives us this description:

The Bentlys recently received files in their email from an unknown source. They checked to see if there was anything suspicious, but all they found was encrypted text. Use the following two files to see the message.

Are you able to decrypt their message and retrieve the flag?

Flag format: IGE{XXX_XX_XXXXXX_XXXX}

Credit: Byrch B.

and two files:

—–BEGIN PGP MESSAGE—–

hF4DNopBg0zGbIcSAQdAnjkvbEZaerigtJtM3aGhDEn3ZPZRsjdd3oFrQwEVgFgw
JrHiISz+H/B6nW+eFOT/z0fz9OgpqjFwirRWBjbTc+E+SMfQiWk/K45nb5Hk6It8
1MAYAQkCEBU979A7cAzP/9sqcBFmRst0dxamSyuNalN4N9yCs2EZVnIDiaSbwsG9
rhLM/1b8K8UURoT0yEE0GwvK3J0gv7jH7HwuppVF7XTl0R5Xdf8d/Fp8tMk1FNIw
59ZE+MAP9XKUndDKBc3acao2IpnOk4wNPyHXI3hcIxrxARM3eIrni6OlcslHDsTq
irljdDsN87+huO3urh02c+xOTKvcxJccLX/KZbb7CABNH94+4T913+cR9BjP+Atd
71j32/BaE9Jp/ia2mn5MINLJXyVnxLzfQMMc
=iEzN
—–END PGP MESSAGE—–

data.gpg

—–BEGIN PGP PRIVATE KEY BLOCK—–

lFgEYq5nGxYJKwYBBAHaRw8BAQdAhDk+8LxolBMhpGI3fWuOSoil0bzuZDrsV4o5
A2zQCegAAP9qFd9WpDMIvXrKoyEjBAUui8xxfHDOoF+j2CNVLe3PoA+utApKZWZm
IEJlejB6iJkEExYKAEEWIQQk6vGwgvlvIV0nMDm8ooRRibW6zQUCYq5nGwIbAwUJ
A8NV9QULCQgHAgIiAgYVCgkICwIEFgIDAQIeBwIXgAAKCRC8ooRRibW6zbu7AP45
aDWDeST7VYUQ0lmvysH3cTbXlQnXwdH46M3TxjwG3QD/UiNBIXWUHbLTiQZz85gI
y8zPl811ZUaIxZHwCpql5w6cXQRirmcbEgorBgEEAZdVAQUBAQdAmVvYWhFK/jHB
oF6qLZiq7Rh9zZkaXAyYmgYOhOob+wADAQgHAAD/anlsXnaSXuupnU71EJN+w5V7
LgraN5tP/onU/mFQfzgRboh+BBgWCgAmFiEEJOrxsIL5byFdJzA5vKKEUYm1us0F
AmKuZxsCGwwFCQPDVfUACgkQvKKEUYm1us2ZJwEA31tgoEmO7Dc3qYcFui/5TRqA
bHfXAK4HtZUqbXw1sIsBAKoAw/wZPQXklDCg6vVC+bE2fDAYt/cKH4b0EUY6QYoB
=Od1D
—–END PGP PRIVATE KEY BLOCK—–

private.asc

Looking at the file content we can see that we have a PGP encrypted message and a PGP private key.

# imports private key
cshark@cshark.dev:~$ gpg --import private.asc
# decrypts the message using the privatekey
cshark@cshark.dev:~$ gpg --output ./decrypted_msg.txt --decrypt data.gpg

Decrypting the gives us the flag: IGE{gPg_1s_pR31ty_c0ol}

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.