Retrieving Client System Information from a Rails Application

Can I get the CPUID and MAC address of the client computer from the Ruby on Rails application ?. Are there any plugins available for this?

+3
source share
4 answers

I am sure that it is not possible to process the / proc file system of a client computer through Rails applications (and, thank God).

What you can do is use Javascript. There are quite a few sites on the Internet (mainly privacy scanners) where Javascript contains extensive information about the client system. This may even work for the type of processor used by the client (assuming it means "CPUID").

, Javascript, Rails, MAC- ( , "macid" MAC-). , TCP/IP , , . (, ) MAC- .

- MAC, - Java ActiveX ( ). /, , ​​ MAC-, .

+5

Ruby on Rails -. - MAC- CPUID.

+3

: ( ) , - Linux/Un * x - arp , , Rails, MAC- , :

$ arp 192.168.1.1
Address          HWtype  HWaddress           Flags Mask            Iface
192.168.1.1      ether   1c:c6:3c:48:bc:c0   C                     wlan0

HWaddress - MAC-.

+2

() ruby ​​ . , ip-, . MAC-... , vbscript .

0

Source: https://habr.com/ru/post/1699444/


All Articles