-
Notifications
You must be signed in to change notification settings - Fork 339
Replace outgoing and inbound traffic #505
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Please explain the use case |
Okay. I'm trying to change some aspects of a game I play on android, it uses attestation token checking which blocks game files from being changed, since if the files are tampered with then the auth won't succeed and the game will crash. In this case I could change aspects of the game by changing the assets that are being sent to the server. There is one API that gets a list of all servers, in there is a config with images, I could redirect this to my own server which could replace the images. This is my reason for needing it but I'm sure there are more important reasons on why this should be added. But please consider it!!! (Love the app btw) |
Why not modifying the url returned by the api, to point it to your server, e.g. via Frida? Because if the redirection would be implemented at a network level, you would get a certificated trust error. E.g. if you redirect request from somedomain.com to your server, you have to create a self signed certificate on your server, but Android won't trust it unless you install it as a system certificate (requires root) |
How could I implement that correctly? I've looked but not found much that could help me. |
I don't have much experience with Frida. For now let's say that you want to go with your first proposed approach, of modifying a network response and you make the app trust your own mitm certificate. In this case, you can create a mitmproxy script to change the URLs of the HTTPS replies, to make them point to your own assets. I suggest you to do the following steps:
|
What do I do if I don't have a device that can be rooted? |
Without root you can't do much, Android won't trust the mitm certificate, leading to tls certificate errors. The only option without root is apk modding |
Well I guess there are no options then because the app uses the meta sdk (Since its running on a virtual reality) which uses integrity checks to validate the apk hasn't been tampered with. Could I maybe do something with my router to route the traffic through somewhere else? Like particular urls get redirected? |
Redirecting traffic is not an issue, either via a router or PCAPdroid. The issue is making the app trust your tls certificate. Anyway, you can use a rooted Android emulator even if you don't have a rooted device |
I can't do an emulator since it has integrity checks. |
It would be awesome if we could have a feature added to the app that you could set rules for certain urls that could redirect to an IP or a different URL. Please consider this as I'm sure many other people would like it!
The text was updated successfully, but these errors were encountered: