jeudi 12 mars 2015

Whitelisting With a Hostname?


I am currently wondering how I would make a whitelist based off of a computer name.


For example: if my hostname (computer name) was equal to BOBCOMPUTER then I would like it to run a certain code, and if not then an exit code.


Should like something like this:



if(computerName == "BOBCOMPUTER"){
cout << "Welcome Bob!\n";
}else{
return 0;
}


Thanks if you can help!


-Buzzed451




Aucun commentaire:

Enregistrer un commentaire