How to get the client sidecomputer bios serial number












1















php code:



$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));


OR



$mac = system('ipconfig/all');


and then grep the mac address somewhere. However, the purpose of this is to log our internet devices use by workers in the factories. Any help of direction in another way or in a different way to identify uniquely identify an internet device would be great. php, javascript, etc. Thank you.










share|improve this question

























  • Are you asking to get the serial of the server running php or the client accessing it? Also what IS? I suspect you cant do what you are trying, but.might misunderstand.

    – davidgo
    3 hours ago













  • @davidgo thank you for the comment. I am actually looking for a way to get an ID of employees computer as log for our record. Sort kind of collecting data log kind of ....if you know what I mean

    – A. Kiyoshi
    3 hours ago











  • No idea what you mean, but php is not the tool for the job - in fact any decent web client (like Mozilla or Firefox will block this behaviour regardless of the app)

    – davidgo
    32 mins ago











  • @davidgo thank you for the reply. I just put that up and an example, but It doesnt have to be php. It could be either a javascript, a php function, etc. any help of direction would help. thank you

    – A. Kiyoshi
    24 mins ago











  • As both I and @Journeymangeek already stated you cant do this in the general case through a web browser without the user running a program (or possibly browser plugin). Think about it - someone who can run arbitrary code on your PC can hijack it - the last thing a browser wants to allow.

    – davidgo
    16 mins ago
















1















php code:



$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));


OR



$mac = system('ipconfig/all');


and then grep the mac address somewhere. However, the purpose of this is to log our internet devices use by workers in the factories. Any help of direction in another way or in a different way to identify uniquely identify an internet device would be great. php, javascript, etc. Thank you.










share|improve this question

























  • Are you asking to get the serial of the server running php or the client accessing it? Also what IS? I suspect you cant do what you are trying, but.might misunderstand.

    – davidgo
    3 hours ago













  • @davidgo thank you for the comment. I am actually looking for a way to get an ID of employees computer as log for our record. Sort kind of collecting data log kind of ....if you know what I mean

    – A. Kiyoshi
    3 hours ago











  • No idea what you mean, but php is not the tool for the job - in fact any decent web client (like Mozilla or Firefox will block this behaviour regardless of the app)

    – davidgo
    32 mins ago











  • @davidgo thank you for the reply. I just put that up and an example, but It doesnt have to be php. It could be either a javascript, a php function, etc. any help of direction would help. thank you

    – A. Kiyoshi
    24 mins ago











  • As both I and @Journeymangeek already stated you cant do this in the general case through a web browser without the user running a program (or possibly browser plugin). Think about it - someone who can run arbitrary code on your PC can hijack it - the last thing a browser wants to allow.

    – davidgo
    16 mins ago














1












1








1


0






php code:



$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));


OR



$mac = system('ipconfig/all');


and then grep the mac address somewhere. However, the purpose of this is to log our internet devices use by workers in the factories. Any help of direction in another way or in a different way to identify uniquely identify an internet device would be great. php, javascript, etc. Thank you.










share|improve this question
















php code:



$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));


OR



$mac = system('ipconfig/all');


and then grep the mac address somewhere. However, the purpose of this is to log our internet devices use by workers in the factories. Any help of direction in another way or in a different way to identify uniquely identify an internet device would be great. php, javascript, etc. Thank you.







php javascript






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 51 secs ago







A. Kiyoshi

















asked 3 hours ago









A. KiyoshiA. Kiyoshi

387




387













  • Are you asking to get the serial of the server running php or the client accessing it? Also what IS? I suspect you cant do what you are trying, but.might misunderstand.

    – davidgo
    3 hours ago













  • @davidgo thank you for the comment. I am actually looking for a way to get an ID of employees computer as log for our record. Sort kind of collecting data log kind of ....if you know what I mean

    – A. Kiyoshi
    3 hours ago











  • No idea what you mean, but php is not the tool for the job - in fact any decent web client (like Mozilla or Firefox will block this behaviour regardless of the app)

    – davidgo
    32 mins ago











  • @davidgo thank you for the reply. I just put that up and an example, but It doesnt have to be php. It could be either a javascript, a php function, etc. any help of direction would help. thank you

    – A. Kiyoshi
    24 mins ago











  • As both I and @Journeymangeek already stated you cant do this in the general case through a web browser without the user running a program (or possibly browser plugin). Think about it - someone who can run arbitrary code on your PC can hijack it - the last thing a browser wants to allow.

    – davidgo
    16 mins ago



















  • Are you asking to get the serial of the server running php or the client accessing it? Also what IS? I suspect you cant do what you are trying, but.might misunderstand.

    – davidgo
    3 hours ago













  • @davidgo thank you for the comment. I am actually looking for a way to get an ID of employees computer as log for our record. Sort kind of collecting data log kind of ....if you know what I mean

    – A. Kiyoshi
    3 hours ago











  • No idea what you mean, but php is not the tool for the job - in fact any decent web client (like Mozilla or Firefox will block this behaviour regardless of the app)

    – davidgo
    32 mins ago











  • @davidgo thank you for the reply. I just put that up and an example, but It doesnt have to be php. It could be either a javascript, a php function, etc. any help of direction would help. thank you

    – A. Kiyoshi
    24 mins ago











  • As both I and @Journeymangeek already stated you cant do this in the general case through a web browser without the user running a program (or possibly browser plugin). Think about it - someone who can run arbitrary code on your PC can hijack it - the last thing a browser wants to allow.

    – davidgo
    16 mins ago

















Are you asking to get the serial of the server running php or the client accessing it? Also what IS? I suspect you cant do what you are trying, but.might misunderstand.

– davidgo
3 hours ago







Are you asking to get the serial of the server running php or the client accessing it? Also what IS? I suspect you cant do what you are trying, but.might misunderstand.

– davidgo
3 hours ago















@davidgo thank you for the comment. I am actually looking for a way to get an ID of employees computer as log for our record. Sort kind of collecting data log kind of ....if you know what I mean

– A. Kiyoshi
3 hours ago





@davidgo thank you for the comment. I am actually looking for a way to get an ID of employees computer as log for our record. Sort kind of collecting data log kind of ....if you know what I mean

– A. Kiyoshi
3 hours ago













No idea what you mean, but php is not the tool for the job - in fact any decent web client (like Mozilla or Firefox will block this behaviour regardless of the app)

– davidgo
32 mins ago





No idea what you mean, but php is not the tool for the job - in fact any decent web client (like Mozilla or Firefox will block this behaviour regardless of the app)

– davidgo
32 mins ago













@davidgo thank you for the reply. I just put that up and an example, but It doesnt have to be php. It could be either a javascript, a php function, etc. any help of direction would help. thank you

– A. Kiyoshi
24 mins ago





@davidgo thank you for the reply. I just put that up and an example, but It doesnt have to be php. It could be either a javascript, a php function, etc. any help of direction would help. thank you

– A. Kiyoshi
24 mins ago













As both I and @Journeymangeek already stated you cant do this in the general case through a web browser without the user running a program (or possibly browser plugin). Think about it - someone who can run arbitrary code on your PC can hijack it - the last thing a browser wants to allow.

– davidgo
16 mins ago





As both I and @Journeymangeek already stated you cant do this in the general case through a web browser without the user running a program (or possibly browser plugin). Think about it - someone who can run arbitrary code on your PC can hijack it - the last thing a browser wants to allow.

– davidgo
16 mins ago










1 Answer
1






active

oldest

votes


















4














There's really good reasons you don't want to run arbitrary code on a client side system - if you can run wmic bios get serialnumber you could also run a virus, ransomware or other nasty stuff. Being able to identify a specific PC is also undesirable for privacy reasons. There's a good reason being able to uniquely identify a PC is a holy grail for companies - ranging from uniquely fingerprinting systems (panopticlick is a great example designed to show what companies do.



In short - its not possible, and it would be horrifying securitywise if it was. There's no reason a web server should/could be allowed to run arbitrary code and get uniquely identifying system on a client.






share|improve this answer
























  • ahh thank you, I really appreciate it. I am looking for a way to get an ID of a certain computer like who is using which, sort kind of information. Can you advice on that please? Its for employees log information required at work...

    – A. Kiyoshi
    3 hours ago













  • If you are looking to ensure the computer is authorised to the server, dont look to PHP. Use the web server and build a CA and issue client side certs which the server can validate.

    – davidgo
    3 hours ago











  • Get them to log in, and use that. The simplest solution is often the best.

    – Journeyman Geek
    3 hours ago













  • @JourneymanGeek thank you, we log the attendance of all employees through log in. We also wish to take more of an inventory or who is using which internet device since we use ipads, pc, etc. Its a factory and everybody using an internet device. Please if you guys have a clue on how to ID the device please advice

    – A. Kiyoshi
    3 hours ago











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1398622%2fhow-to-get-the-client-sidecomputer-bios-serial-number%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









4














There's really good reasons you don't want to run arbitrary code on a client side system - if you can run wmic bios get serialnumber you could also run a virus, ransomware or other nasty stuff. Being able to identify a specific PC is also undesirable for privacy reasons. There's a good reason being able to uniquely identify a PC is a holy grail for companies - ranging from uniquely fingerprinting systems (panopticlick is a great example designed to show what companies do.



In short - its not possible, and it would be horrifying securitywise if it was. There's no reason a web server should/could be allowed to run arbitrary code and get uniquely identifying system on a client.






share|improve this answer
























  • ahh thank you, I really appreciate it. I am looking for a way to get an ID of a certain computer like who is using which, sort kind of information. Can you advice on that please? Its for employees log information required at work...

    – A. Kiyoshi
    3 hours ago













  • If you are looking to ensure the computer is authorised to the server, dont look to PHP. Use the web server and build a CA and issue client side certs which the server can validate.

    – davidgo
    3 hours ago











  • Get them to log in, and use that. The simplest solution is often the best.

    – Journeyman Geek
    3 hours ago













  • @JourneymanGeek thank you, we log the attendance of all employees through log in. We also wish to take more of an inventory or who is using which internet device since we use ipads, pc, etc. Its a factory and everybody using an internet device. Please if you guys have a clue on how to ID the device please advice

    – A. Kiyoshi
    3 hours ago
















4














There's really good reasons you don't want to run arbitrary code on a client side system - if you can run wmic bios get serialnumber you could also run a virus, ransomware or other nasty stuff. Being able to identify a specific PC is also undesirable for privacy reasons. There's a good reason being able to uniquely identify a PC is a holy grail for companies - ranging from uniquely fingerprinting systems (panopticlick is a great example designed to show what companies do.



In short - its not possible, and it would be horrifying securitywise if it was. There's no reason a web server should/could be allowed to run arbitrary code and get uniquely identifying system on a client.






share|improve this answer
























  • ahh thank you, I really appreciate it. I am looking for a way to get an ID of a certain computer like who is using which, sort kind of information. Can you advice on that please? Its for employees log information required at work...

    – A. Kiyoshi
    3 hours ago













  • If you are looking to ensure the computer is authorised to the server, dont look to PHP. Use the web server and build a CA and issue client side certs which the server can validate.

    – davidgo
    3 hours ago











  • Get them to log in, and use that. The simplest solution is often the best.

    – Journeyman Geek
    3 hours ago













  • @JourneymanGeek thank you, we log the attendance of all employees through log in. We also wish to take more of an inventory or who is using which internet device since we use ipads, pc, etc. Its a factory and everybody using an internet device. Please if you guys have a clue on how to ID the device please advice

    – A. Kiyoshi
    3 hours ago














4












4








4







There's really good reasons you don't want to run arbitrary code on a client side system - if you can run wmic bios get serialnumber you could also run a virus, ransomware or other nasty stuff. Being able to identify a specific PC is also undesirable for privacy reasons. There's a good reason being able to uniquely identify a PC is a holy grail for companies - ranging from uniquely fingerprinting systems (panopticlick is a great example designed to show what companies do.



In short - its not possible, and it would be horrifying securitywise if it was. There's no reason a web server should/could be allowed to run arbitrary code and get uniquely identifying system on a client.






share|improve this answer













There's really good reasons you don't want to run arbitrary code on a client side system - if you can run wmic bios get serialnumber you could also run a virus, ransomware or other nasty stuff. Being able to identify a specific PC is also undesirable for privacy reasons. There's a good reason being able to uniquely identify a PC is a holy grail for companies - ranging from uniquely fingerprinting systems (panopticlick is a great example designed to show what companies do.



In short - its not possible, and it would be horrifying securitywise if it was. There's no reason a web server should/could be allowed to run arbitrary code and get uniquely identifying system on a client.







share|improve this answer












share|improve this answer



share|improve this answer










answered 3 hours ago









Journeyman GeekJourneyman Geek

112k43217369




112k43217369













  • ahh thank you, I really appreciate it. I am looking for a way to get an ID of a certain computer like who is using which, sort kind of information. Can you advice on that please? Its for employees log information required at work...

    – A. Kiyoshi
    3 hours ago













  • If you are looking to ensure the computer is authorised to the server, dont look to PHP. Use the web server and build a CA and issue client side certs which the server can validate.

    – davidgo
    3 hours ago











  • Get them to log in, and use that. The simplest solution is often the best.

    – Journeyman Geek
    3 hours ago













  • @JourneymanGeek thank you, we log the attendance of all employees through log in. We also wish to take more of an inventory or who is using which internet device since we use ipads, pc, etc. Its a factory and everybody using an internet device. Please if you guys have a clue on how to ID the device please advice

    – A. Kiyoshi
    3 hours ago



















  • ahh thank you, I really appreciate it. I am looking for a way to get an ID of a certain computer like who is using which, sort kind of information. Can you advice on that please? Its for employees log information required at work...

    – A. Kiyoshi
    3 hours ago













  • If you are looking to ensure the computer is authorised to the server, dont look to PHP. Use the web server and build a CA and issue client side certs which the server can validate.

    – davidgo
    3 hours ago











  • Get them to log in, and use that. The simplest solution is often the best.

    – Journeyman Geek
    3 hours ago













  • @JourneymanGeek thank you, we log the attendance of all employees through log in. We also wish to take more of an inventory or who is using which internet device since we use ipads, pc, etc. Its a factory and everybody using an internet device. Please if you guys have a clue on how to ID the device please advice

    – A. Kiyoshi
    3 hours ago

















ahh thank you, I really appreciate it. I am looking for a way to get an ID of a certain computer like who is using which, sort kind of information. Can you advice on that please? Its for employees log information required at work...

– A. Kiyoshi
3 hours ago







ahh thank you, I really appreciate it. I am looking for a way to get an ID of a certain computer like who is using which, sort kind of information. Can you advice on that please? Its for employees log information required at work...

– A. Kiyoshi
3 hours ago















If you are looking to ensure the computer is authorised to the server, dont look to PHP. Use the web server and build a CA and issue client side certs which the server can validate.

– davidgo
3 hours ago





If you are looking to ensure the computer is authorised to the server, dont look to PHP. Use the web server and build a CA and issue client side certs which the server can validate.

– davidgo
3 hours ago













Get them to log in, and use that. The simplest solution is often the best.

– Journeyman Geek
3 hours ago







Get them to log in, and use that. The simplest solution is often the best.

– Journeyman Geek
3 hours ago















@JourneymanGeek thank you, we log the attendance of all employees through log in. We also wish to take more of an inventory or who is using which internet device since we use ipads, pc, etc. Its a factory and everybody using an internet device. Please if you guys have a clue on how to ID the device please advice

– A. Kiyoshi
3 hours ago





@JourneymanGeek thank you, we log the attendance of all employees through log in. We also wish to take more of an inventory or who is using which internet device since we use ipads, pc, etc. Its a factory and everybody using an internet device. Please if you guys have a clue on how to ID the device please advice

– A. Kiyoshi
3 hours ago


















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1398622%2fhow-to-get-the-client-sidecomputer-bios-serial-number%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

الفوسفات في المغرب

Four equal circles intersect: What is the area of the small shaded portion and its height

جامعة ليفربول