This topic is locked

obtener la MAC AddresS o No. Serie dispositivo Adroid

12/3/2020 5:51:33 PM
PHPRunner General questions
C
cjarerov author

Hola
Alguien sabe como puedo leer la MAC ADDRESS o el numero de serie de un dispositivo Android desde el desarrollo de PHPrunner, la idea es identificar el equipo sonde corre la aplicación para hacer validaciones especiales.
Hi
Does anyone know how I can read the MAC ADDRESS or the serial number of an Android device from the development of PHPrunner, the idea is to identify the equipment where the application runs to make special validations.
thanks

HJB 12/4/2020

https://www.tutorialfor.com/blog-180706.htm
Por inpiración solamente..., cualquier código PHP que funcione para obtener la dirección MAC ADDRESS del cliente y su validación adecuada requeriría, por supuesto, una nueva codificación manual de la página de inicio de sesión.
For inpiration only ..., any working PHP code to get the client's MAC address and its proper validation would of course require some manual re-coding of the login page.

Admin 12/4/2020

No es possible.
Any PHP code will run on the web server and you will be only able to get MAC address of the server itself. Client devices like desktops or mobile devices do not send MAC address info to the server.

C
cjarerov author 12/4/2020



No es possible.
Any PHP code will run on the web server and you will be only able to get MAC address of the server itself. Client devices like desktops or mobile devices do not send MAC address info to the server.


Hola
Tienes alguna idea de como puedo asegurar que la aplicación corre en un equipo determinado y este tenerlo ligado a una maquina. Quiero correr la aplicación de web, pero necesito saber por ejemplo el Numero de serie donde esta corriendo mi web y después con ese numero asignarlo a una maquina (eso lo tendría guardado en una tabla en el servidor y dentro de mi base de datos). Así valido que lo que corran sea de esa máquina. A lo mejor requeriré de hacer un programa en otro lenguaje y grabar un archivo en la tableta con esa asignación y así validarlo, leyendo este archivo al principio de correr mi web. ¿Alguno de ustedes tiene alguna idea que pudiera usar?
Muchísimas gracias por su apoyo
Hi
Do you have any idea how I can ensure that the application runs on a specific tablet and that it is linked to a machine. I want to run the web application, but I need to know for example the Serial Number (is like ID off may tablet) where my web is running and then with that number assign it to a machine (that would have it saved in a table on the server and within my database). So it is valid that what they run is from that machine. Maybe I will need to make a program in another language and save a file on the tablet with that assignment and thus validate it, reading this file at the beginning of running my website. Do any of you have any ideas I could use?
Thank you very much for your support.

HJB 12/5/2020

Totalmente de acuerdo con @ admin que el código PHP que se ejecuta en un servidor no puede funcionar, sin embargo, de varias publicaciones web relevantes, es mi poco entendimiento que los llamados BACKTICKS (que en términos simples es una especie de ventana de sistema operativo como código en lugar de PHP) puede hacer. En otras palabras, Backticks (") es un operador de ejecución. PHP intentará ejecutar el contenido de los backticks como un comando shell; la salida será devuelta (es decir, no será simplemente arrojada a la salida; se puede asignar a una variable). El uso del operador backtick es idéntico a shell_exec (). En "Obtener dirección MAC cliente" código ex URL https://www.tutorialfor.com/blog-180706.htm'>https://www.tutorialfor.com/blog-180706.htm se puede ver que exactamente tal SHELL COMANDO exec se utiliza. Sólo mis pequeños 2 centavos en el tema.
Fully agree with @admin that PHP code running on a server can't work, yet from various relevant web publications, it is my little understanding that so called BACKTICKS (which in simple terms is a kind of operating system window like code rather than PHP) can do. In other words, Backticks (``) is an Execution Operator. PHP will attempt to execute the contents of the backticks as a shell command; the output will be returned (i.e., it won't simply be dumped to output; it can be assigned to a variable). Use of the backtick operator is identical to shell_exec(). Under "Get client MAC address" code ex URL https://www.tutorialfor.com/blog-180706.htm'>https://www.tutorialfor.com/blog-180706.htm you can see that exactly such SHELL COMMAND exec is used. Just my little 2 cents on the issue.

Admin 12/7/2020

If you need to restrict your application to only run on a specific mobile device - you need a native mobile application. Web application runs on the web server and won't help you with this task.

M
MikeT 12/7/2020

I'm not sure because the use case is not specified enough, but I'll drop this anyway: if it's only for a known number of devices you have control over, in the sense that you can lock down the browser configuration, you could modify the user agent string in the devices browser and read this from the request server side. It's not 100% secure, but I once did this in a situation with a few clients that the admin could configure in this way.