Home DUCTF 2023 Faraday OSINT
Post
Cancel

DUCTF 2023 Faraday OSINT

Faraday Challenge

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import requests

API_URL = "https://osint-faraday-9e36cbd6acad.2023.ductf.dev/verify" 

def verify_location(phone_number, latitude, longitude, radius):
    # Create the request body JSON
    request_body = {
        "device": {
            "phoneNumber": phone_number
        },
        "area": {
            "areaType": "Circle",
            "center": {
                "latitude": latitude,
                "longitude": longitude
            },
            "radius": radius
        },
        "maxAge": 120
    }

    response = requests.post(API_URL, json=request_body)

    if response.status_code == 200:
        data = response.json()
        verification_result = data.get("verificationResult")
        match_rate = data.get("match_rate")

        print(f"Verification Result: {verification_result}")
        if verification_result == "PARTIAL":
            print(f"Match Rate: {match_rate}%")
    else:
        print(f"Error: {response.status_code} - {response.text}")

phone_number = "+61491578888"
latitude = float(input("Enter latitude: "))
longitude = float(input("Enter longitude: "))
radius = int(input("Enter radius (2000-200000): "))

if 2000 <= radius <= 200000:
    verify_location(phone_number, latitude, longitude, radius)
else:
    print("Error: Radius must be between 2000 and 200000 meters.")

Flag:

This post is licensed under CC BY 4.0 by the author.
Trending Tags

-

-

Trending Tags