
Research
/Security News
11 Malicious Go Packages Distribute Obfuscated Remote Payloads
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
This is a Geoguessr API client written in Python. It allows you to interact with the Geoguessr API, such as getting information about users, challenges, maps, and scores.
To install the package, run the following command:
pip install geoguessr-api
Once the package is installed, you can create a client object by passing your NCFA cookie to the constructor:
from geoguessr_async import Geoguessr
client = Geoguessr("your_ncfa_cookie")
To get your NCFA cookie, login to geoguessr, open your dev tools (Ctrl+Shift+I
), go to Storage/Cookies and copy the value of _ncfa
.
You can then use the client object to get information about users, challenges, maps, and scores. For example, to get information about an user with his ID, you can use the following code:
user = client.get_user_infos(userId)
The Profile
object will contain information such as your username, country, and number of games played.
To get information about a challenge, you can use the following code:
challenge = client.get_challenge_infos("https://geoguessr.com/challenge/xxxx")
The Challenge
object will contain information such as the challenge name, description, and time limit.
To get information about a map, you can use the following code:
map = client.get_map_infos("https://geoguessr.com/maps/xxxx")
The Map
object will contain information such as the map name, size, and location.
To get information about a score, you can use the following code:
score = client.get_challenge_score("https://geoguessr.com/challenge/xxxx")
The Score
object will contain information such as the players' name, score, and time.
When getting the score of a challenge, it automatically plays it, pinging (0, 0) each round.
score = client.get_challenge_score("https://geoguessr.com/challenge/xxxx")
scores = []
for s in score:
d_player = {
"userId": s.userId,
"userName":s.playerName,
"total": s.totalScore,
"roundPoints": s.gamePlayerGuessesRoundScoreInPoints,
"roundTimes": s.gamePlayerGuessesTime
}
scores.append(d_player)
print(scores)
I hope you find this package useful! Please let me know if you have any questions or feedback.
FAQs
An asynchronous API integrator for Geoguessr
We found that api-geoguessr demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).