$sys = system('dir');
I have searched for days now, cannot come to a satisfying conclusion. All over the internet, the php code above is common or the other one here
shell_exec('dir');. These two php codes gets the server directory files.
first step: In command prompt (cmd) on windows computers, if you input
wmic bios get serialnumber you will get the serial number of your computer bios serial number.
Now, if an employee access through the company website at work for work purposes, How do we get the bios serial number by executing the cmd and get the
wmic bios get serialnumber output for log purposes for employees. Or any other method to ID the internet devices that each employee uses for daily inventory and log purposes for a company.
Direction: If we can execute the cmd on client side and execute this command like this (only for logged in users):
$ip = $_SERVER['REMOTE_ADDR']; $mac = shell_exec('arp -a ' . escapeshellarg($ip));
$mac = system('ipconfig/all');