Getting the real HD serial

For general discussion related FlowStone
Post Reply
User avatar
CoreStylerz
Posts: 327
Joined: Sun Jan 22, 2012 2:19 am
Location: italy
Contact:

Getting the real HD serial

Post by CoreStylerz »

Hi all,
is possible to get some data from Hard Disk, the real serial number or something that never changes? (until you change the hardware).

I need that for software licensing because the hd serial privitive collects partition serial and changes when formatting.

Also running this thing with ruby? it's possible or it requires some external .dll calls?

Thanks! ;)
Need my support for app development, website or custom scripts?
PM me if you are interested.
Experienced Java, J2EE, PHP, Javascript, Angular, Cloud Solutions developer.
User avatar
digitalwhitebyte
Posts: 106
Joined: Sat Jul 31, 2010 10:20 am

Re: Getting the real HD serial

Post by digitalwhitebyte »

you could easily via WMI and Win32API
but I do not recommend using this as a unique value, because not all the HD have a serial number.
User avatar
CoreStylerz
Posts: 327
Joined: Sun Jan 22, 2012 2:19 am
Location: italy
Contact:

Re: Getting the real HD serial

Post by CoreStylerz »

digitalwhitebyte wrote:you could easily via WMI and Win32API
but I do not recommend using this as a unique value, because not all the HD have a serial number.


Ciao DWB grz.. ;)

There's no other kind of data that i could collect from the machine, always available, to use that is a serial number?
Need my support for app development, website or custom scripts?
PM me if you are interested.
Experienced Java, J2EE, PHP, Javascript, Angular, Cloud Solutions developer.
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: Getting the real HD serial

Post by tester »

There are prims:

MAC address
Hard disk serial number
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
User avatar
CoreStylerz
Posts: 327
Joined: Sun Jan 22, 2012 2:19 am
Location: italy
Contact:

Re: Getting the real HD serial

Post by CoreStylerz »

tester wrote:There are prims:

MAC address
Hard disk serial number


Thanks but primitives changes. Mac adreess change while reconnecting and hd serial when formatting the os.
Need my support for app development, website or custom scripts?
PM me if you are interested.
Experienced Java, J2EE, PHP, Javascript, Angular, Cloud Solutions developer.
User avatar
chackl
Posts: 233
Joined: Tue Aug 17, 2010 8:46 pm
Location: Austria / Salzburg

Re: Getting the real HD serial

Post by chackl »

CoreStylerz wrote:
tester wrote:There are prims:

MAC address
Hard disk serial number


Thanks but primitives changes. Mac adreess change while reconnecting and hd serial when formatting the os.


The MAC adress of your networc-card (LAN) does not Change in normal case ^^ - but this is too problematic because there are virtual Adapters that emulate a faked adress.

The best way i would do is:
Activation with PHP-Post module - send a Serial number givn by a mail to the user to host and then Count the activations - you may do a PHP script for that. After 1 activation the program can not be activated anymore.

To controll the user you may require everytime Internet on start up. so you vst Posts to a php script the Serial and you get a log of all where the program was started. if a Programm gets started too often on different IPs - guess what :P

Regards
100% accuracy is the guarantee to your success. The value alters if you combine it with musical creativity.
Drnkhobo
Posts: 312
Joined: Sun Aug 19, 2012 7:13 pm
Location: ZA

Re: Getting the real HD serial

Post by Drnkhobo »

Hey Chackl, thanks for your tips! ;)

It would be interesting to see some of the PHP scripts to do this! Would you mind posting a few examples? Im sure there are a lot of users who would benefit from them. Coming from a person who doesnt know PHP, it seems quite a challenge (maybe because of the fact I dont know PHP).

Anyway I hope there is something you can show us or maybe even a little more information.

Thanks :)
User avatar
CoreStylerz
Posts: 327
Joined: Sun Jan 22, 2012 2:19 am
Location: italy
Contact:

Re: Getting the real HD serial

Post by CoreStylerz »

I've already used php script for sending data / receveing data for software activation.
But i not use anymore the mac adress primitive because it change the value each time, try to save it and restart your machine.

This at least happened with SM, so i used Mac adress to make it working. It works cools, but when a person do a system format and reinstall windows it may change.

So it's just on that case that hd serial is not so great to use. ;)
Need my support for app development, website or custom scripts?
PM me if you are interested.
Experienced Java, J2EE, PHP, Javascript, Angular, Cloud Solutions developer.
Post Reply