Giter Club home page Giter Club logo

Comments (9)

Yepoleb avatar Yepoleb commented on July 20, 2024

That's not encryption, that's base64 encoding from the look of it. Whatever game is using this is returning a game specific encoded binary response. Without knowing the name and finding some documentation this is very hard to decode. But on the part of this library everything is working correctly. I might still be able to help you if you provide me with more information about the application.

from python-a2s.

InfamyStudio avatar InfamyStudio commented on July 20, 2024

My API, https://rapidapi.com/InfamyStudio/api/vrising-server-scanner - currently I am using Node JS but it is the same query response that your system has. I am experienced with flask so I would rather incorporate your system and not make API calls. So as you can see if you type in my host field: 176.57.173.3 and port: 28615. You can see the response for game settings is what I posted above. If base64 is encoded how do we decode this? Is the hash a key to deciphering that information or not?

from python-a2s.

InfamyStudio avatar InfamyStudio commented on July 20, 2024

"Returns the server rules, or configuration variables in name/value pairs. This query requires an initial challenge step.

The Console variables included are the ones marked with FCVAR_NOTIFY as well as any additional ones listed in the server configuration."

This is what the documentation states. How do we solve this?

from python-a2s.

InfamyStudio avatar InfamyStudio commented on July 20, 2024

https://developer.valvesoftware.com/wiki/Server_queries#A2S_RULES - this is the documentation I assume here.

from python-a2s.

Yepoleb avatar Yepoleb commented on July 20, 2024

The encoding is specific to V Rising, you will not find any information in the Valve wiki. It does not seem like they have put out any information on the format. To decode the base64 string you can use the module of the same name:

import base64
base64.b64decode("AgAAAAAAAAAAAAAAAAAAAAAAAACgQAEMBAUAAAAAAAAAAAIAAAAAAwMAAAAABAQAAAAABQUAAAAABv4FAAAAAAAAAAAUAAAAABUyAAAAADNQAAAAAFGgAAAAAKH+")

The hash means something else, it is not needed for decoding.

from python-a2s.

InfamyStudio avatar InfamyStudio commented on July 20, 2024

This is what I did, And it does not have any legible response. This is based on the handshake most definitely, how can we fix this or how can we work out a way to decode the message? Battlemetrics have done this so surely there is an obvious way.

from python-a2s.

Yepoleb avatar Yepoleb commented on July 20, 2024

Where do you see this information decoded on Battlemetrics?

from python-a2s.

InfamyStudio avatar InfamyStudio commented on July 20, 2024

https://www.battlemetrics.com/servers/vrising/15360174

This is my server, if you click server settings you can see all the information decoded. I do not understand how they are pulling this from every server if the rules are encoded.

from python-a2s.

Yepoleb avatar Yepoleb commented on July 20, 2024

They probably put in the effort to decode it. The game is made with Unity so decompiling works quite well. But I do not own the game and honestly I'm not willing to spend money and time to reverse engineer this for you.

from python-a2s.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.