<gh_stars>1-10
from fastapi import APIRouter
import requests

router = APIRouter(
    prefix="/scmowns",
    tags=["scmowns"],
)


@router.get("/ip")
async def get_address():
    """
    Premium... What kind of shit is that?
    Everyone connects to the same IP address.
    There's no point in trying to hide the ip with fake prints and obfuscation,
    There's always a way to get it, after all it's still resolved in the end to connect.
    Wireshark, decompilation, brute-force, custom mods, etc.
    """

    url = "https://gy4lj50e70.execute-api.us-west-1.amazonaws.com/SCMownsConn2020"
    json = requests.get(url).json()
    conn = json["raw_text"].split(".")
    return f"{conn[13]}.{conn[29]}.{conn[19]}.{conn[len(conn) - 2]}:{conn[10]}"

from fastapi import APIRouter
import requests

router = APIRouter(
    prefix="/scmowns",
    tags=["scmowns"],
)


@router.get("/ip")
async def get_address():
    """
    Premium... What kind of shit is that?
    Everyone connects to the same IP address.
    There's no point in trying to hide the ip with fake prints and obfuscation,
    There's always a way to get it, after all it's still resolved in the end to connect.
    Wireshark, decompilation, brute-force, custom mods, etc.
    """

    url = "https://gy4lj50e70.execute-api.us-west-1.amazonaws.com/SCMownsConn2020"
    json = requests.get(url).json()
    conn = json["raw_text"].split(".")
    return f"{conn[13]}.{conn[29]}.{conn[19]}.{conn[len(conn) - 2]}:{conn[10]}"
Premium... What kind of shit is that?     Everyone connects to the same IP address.     There's no point in trying to hide the ip with fake prints and obfuscation,     There's always a way to get it, after all it's still resolved in the end to connect.     Wireshark, decompilation, brute-force, custom mods, etc.