Challenge name : Boo Goal!
Category : Crypto
Challenge Description :
Now, Lets Download the file decryptME.txt
Opening the file, we can see some co-ordinates
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 :
Now lets visit the website we can see,
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
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,
Boom here you go enjoy the flag :)
Top comments (0)