S
S
Stanislav Sviridenko2021-05-28 17:04:59
Android
Stanislav Sviridenko, 2021-05-28 17:04:59

How to deceive Android by telling it that there is Internet on a Wi-Fi network without Internet?

I'm trying to trick android and ios devices into a Wi-Fi network without internet. There seems to be information on the Internet about
/generate_204 for Android
/hotspot_detect.html for iOS

in DNS, all requests are sent to my nginx , where two locations are registered

# Android internet hack
    location /generate_204 {
        add_header Content-Type text/html;
        return 204;
    }

 # Apple internet hack
    location ~ hotspot-detect\.html {
        add_header Content-Type text/html;
        return 200 "<HTML><HEAD><TITLE>Success</TITLE></HEAD><BODY>Success</BODY></HTML>";
    }


and in the logs I see requests

192.168.50.247 - - [28/May/2021:13:39:57 +0000] "connectivitycheck.gstatic.com " "GET /generate_204 HTTP/1.1" 204 0 "-" "Dalvik/2.1.0 (Linux; U ; Android 7.0; SM-T710 Build/NRD90M)" "-"


However, the tablet still says that the Wi-Fi network is without Internet access.

What else does he lack?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Leri1, 2021-06-15
@Leri1

But how to deceive the phone about the presence of specified wifi networks around?
I found the app https://www.apkhere.com/app/com.lemonsqueeze.fakew... but it seems to be broken.
Broke my head...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question