Q
Q
Quolib2018-01-06 13:35:00
Android
Quolib, 2018-01-06 13:35:00

How to find which server a mobile game connects to?

I need to find out which specific server a mobile game connects to in order to connect to its database DBMS, how can I do this. I looked at the apk as a text file, suddenly the link to the database was not encrypted, but there was no such link, I have a partially decompiled apk, can the information I need be in the java files there? If something is incorrectly said above, please correct it and explain how best to do it. Ps This is possible, since there are such "applications" for connecting to its DBMS.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alex Marken, 2018-01-06
@Quolib

First, in order to view the contents (not pictures, but code) of the APK file, you need to decompile the application. But, perhaps, the application code is obfuscated (it is not readable for a person), then there is no point in viewing the code.
Secondly, information about connecting to the database (host, login, password, database name) is located on the server itself. No one will place this data inside the application. The application receives information from the database through the server using the API:
1. The application sends an HTTP(S) request to the server. For example, check Email - localhost/api?action=email.check&[email protected]
2. The server processes the request, checking it for SQL injection (ideally), and only then, if necessary, the database is accessed .
3. Let's assume that the server has connected to the database. Took some information and sent the answer back - to the application.
Thirdly, if you really need to find out where and what requests are sent, install the Wireshark application or any other traffic analyzer on the device.
I advise you to read about client-server applications and SQL injection :) Yes, and not everything is so simple. You cannot connect directly to the database. As a rule, the backend is protected from such "hacks".

C
cmohammedmedkeveo, 2018-01-07
@cmohammedmedkeveo

Install Wireshark and see where the application sends what data. If it's simple, then maybe you'll find something tasty. If they did at least mediocre ones, then it’s already more difficult.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question