Goglides Dev 🌱

Rahul Gautam
Rahul Gautam

Posted on • Originally published at goglides.com on

Boo Goal!

Boo Goal!

Challenge name : Boo Goal!

Category : Crypto

Challenge Description :

Boo Goal!

Now, Lets Download the file decryptME.txt

Opening the file, we can see some co-ordinates

Boo Goal!

Since, we got co-ordinates lets search for the Geo-location of the co-ordinates

the website I used for finding the Geo location was :

https://geocode.xyz/

Now lets visit the website we can see,

Boo Goal!

We got like 10 co-ordinates so looking for them manually might be a hard stuff it is possible but waste of time so lets create a python program that finds all the stuffs

The source for the code which i got was a similar ctf from pico CTF also known as (Mr.World wide)

so the python script looks like

Boo Goal!

DO NOT FORGET TO PUT A SPACE AFTER COMMA TO SEPERATE THE LATTITUDE AND LONGITUDE OF THE GEOLOCATION

import requests, re

flag = "cynical_flag{(50.77397, 6.09932)(41.02908, 28.98293)(34.82244, 126.08999)(41.02908, 28.98293)(39.47690, -0.37475)_(26.60404, 127.98389)(48.62902, 2.44153)(-33.72609, 18.98492)(9.005401, 38.763611)(51.51768, -0.11362)}"

def get_letter_from_coordinate(match):

lat = match.group(1)

long = match.group(2)

r = requests.get("https://geocode.xyz/{},{}?json=1".format(lat, long))

j = r.json()

return j["geocode"][0]

print re.sub(r'(([\d.-]+), ([\d.-]+))', get_letter_from_coordinate, flag)

lets save and run the code,

Boo Goal!

Boom here you go enjoy the flag :)

Top comments (0)