The cellphone tower allows anyone to connect to it. If you then dial the emergency number, it will connect you. If you dial any other number, it will check with using your SIM to find out if you’re a valid subscriber.
The way to hack the system is to clone someone’s SIM, though that is very hard to do today with more modern security techniques.
Latest Answers