How to get the client sidecomputer bios serial number
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
|
show 2 more comments
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
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
2 days 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
2 days 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
2 days 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
2 days 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
2 days ago
|
show 2 more comments
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
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
php javascript
edited 2 days ago
A. Kiyoshi
asked 2 days ago
A. KiyoshiA. Kiyoshi
417
417
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
2 days 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
2 days 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
2 days 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
2 days 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
2 days ago
|
show 2 more comments
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
2 days 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
2 days 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
2 days 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
2 days 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
2 days 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
2 days 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
2 days 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
2 days 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
2 days 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
2 days 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
2 days 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
2 days 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
2 days 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
2 days 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
2 days ago
|
show 2 more comments
1 Answer
1
active
oldest
votes
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.
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
2 days ago
1
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
2 days ago
Get them to log in, and use that. The simplest solution is often the best.
– Journeyman Geek♦
2 days 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
2 days ago
@JourneymanGeek Thank you for the heads up, really appreciate it. If you have any other way how to ID a computer that is connected to the internet, and the user has logged in to your website, this would be of a great help. In any language whether php or any other ways would be helpful. Thank you
– A. Kiyoshi
yesterday
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
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
2 days ago
1
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
2 days ago
Get them to log in, and use that. The simplest solution is often the best.
– Journeyman Geek♦
2 days 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
2 days ago
@JourneymanGeek Thank you for the heads up, really appreciate it. If you have any other way how to ID a computer that is connected to the internet, and the user has logged in to your website, this would be of a great help. In any language whether php or any other ways would be helpful. Thank you
– A. Kiyoshi
yesterday
add a comment |
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.
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
2 days ago
1
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
2 days ago
Get them to log in, and use that. The simplest solution is often the best.
– Journeyman Geek♦
2 days 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
2 days ago
@JourneymanGeek Thank you for the heads up, really appreciate it. If you have any other way how to ID a computer that is connected to the internet, and the user has logged in to your website, this would be of a great help. In any language whether php or any other ways would be helpful. Thank you
– A. Kiyoshi
yesterday
add a comment |
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.
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.
answered 2 days ago
Journeyman Geek♦Journeyman 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
2 days ago
1
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
2 days ago
Get them to log in, and use that. The simplest solution is often the best.
– Journeyman Geek♦
2 days 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
2 days ago
@JourneymanGeek Thank you for the heads up, really appreciate it. If you have any other way how to ID a computer that is connected to the internet, and the user has logged in to your website, this would be of a great help. In any language whether php or any other ways would be helpful. Thank you
– A. Kiyoshi
yesterday
add a comment |
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
2 days ago
1
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
2 days ago
Get them to log in, and use that. The simplest solution is often the best.
– Journeyman Geek♦
2 days 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
2 days ago
@JourneymanGeek Thank you for the heads up, really appreciate it. If you have any other way how to ID a computer that is connected to the internet, and the user has logged in to your website, this would be of a great help. In any language whether php or any other ways would be helpful. Thank you
– A. Kiyoshi
yesterday
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
2 days 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
2 days ago
1
1
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
2 days 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
2 days ago
Get them to log in, and use that. The simplest solution is often the best.
– Journeyman Geek♦
2 days ago
Get them to log in, and use that. The simplest solution is often the best.
– Journeyman Geek♦
2 days 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
2 days 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
2 days ago
@JourneymanGeek Thank you for the heads up, really appreciate it. If you have any other way how to ID a computer that is connected to the internet, and the user has logged in to your website, this would be of a great help. In any language whether php or any other ways would be helpful. Thank you
– A. Kiyoshi
yesterday
@JourneymanGeek Thank you for the heads up, really appreciate it. If you have any other way how to ID a computer that is connected to the internet, and the user has logged in to your website, this would be of a great help. In any language whether php or any other ways would be helpful. Thank you
– A. Kiyoshi
yesterday
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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
2 days 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
2 days 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
2 days 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
2 days 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
2 days ago