|
-
Feb 21st, 2004, 10:00 AM
#1
Thread Starter
Lively Member
Changing Hdd Serial Number
How Could I do this
Changing Hdd Serial Number
-
Feb 21st, 2004, 10:45 AM
#2
Frenzied Member
You mean the Volume Serial Number?
I use a program called VolumeID, you can find it here
http://www.sysinternals.com/ntw2k/so...shtml#volumeid
-
Feb 21st, 2004, 12:05 PM
#3
Re: Changing Hdd Serial Number
Originally posted by cgi
How Could I do this
Changing Hdd Serial Number
Why would you want to do that?
-
Feb 23rd, 2004, 12:43 AM
#4
New Member
By the way could anybody tell me how to read volume id of a harddisk
Be a part of OpenSourceDevelopment
-
Feb 23rd, 2004, 10:35 AM
#5
Frenzied Member
VB Code:
Private Declare Function GetVolumeInformation Lib "Kernel32" Alias "GetVolumeInformationA" (ByVal lpRootPathName As String, ByVal lpVolumeNameBuffer As String, ByVal nVolumeNameSize As Long, lpVolumeSerialNumber As Long, lpMaximumComponentLength As Long, lpFileSystemFlags As Long, ByVal lpFileSystemNameBuffer As String, ByVal nFileSystemNameSize As Long) As Long
Private Const MAX_FILENAME_LEN = 256
Public Function DriveSerial(ByVal sDrv As String) As Long
Dim RetVal As Long
Dim str As String * MAX_FILENAME_LEN
Dim str2 As String * MAX_FILENAME_LEN
Dim a As Long
Dim b As Long
Call GetVolumeInformation(sDrv & ":\", str, MAX_FILENAME_LEN, RetVal, a, b, str2, MAX_FILENAME_LEN)
DriveSerial = RetVal
End Function
Private Sub Form_Load()
MsgBox "Serial of drive C is " & DriveSerial("C")
End Sub
-
Feb 23rd, 2004, 04:25 PM
#6
Fanatic Member
Damn! I have just created a program that uses the filesystem object to read the drive serial (??volume id??) to authenticate the program.
Does this mean that you cannot authenticate a program to run on a single machine using the volume ID and another secret key??
-
Feb 23rd, 2004, 04:37 PM
#7
Originally posted by MikkyThomeon
Damn! I have just created a program that uses the filesystem object to read the drive serial (??volume id??) to authenticate the program.
Does this mean that you cannot authenticate a program to run on a single machine using the volume ID and another secret key??
Doesn't BrianS' code work?
-
Feb 23rd, 2004, 04:50 PM
#8
Fanatic Member
How is the Volume Serial Number stored on the drive? - is it stored in some form of a EPROM on the hard drive or is it stored on the drive itself?
If it were stored on the drive itself then I would assume there could be a possibility of being able to change it. A guy I know used to program in assembler and could actually finetune the old systems to run faster by modifying the actual locations on disk where the data would usually be stored!!!
-
Feb 23rd, 2004, 05:03 PM
#9
Hyperactive Member
The FileSyste Object only reads the Format Serial number ...(the one that changes each time you format your HD or FD)
the other serial number a HD has ...is the Factory Serial Number ...(that is stored in the BIOS of the HD) and it is not possible to alter in any way ...not easy to aquire aswell using Visual Basic ...you need a DLL that is made in C++ with the instructions to access the hardware information (MS has also somethign to do that ...but it´s a lot of work...and couldn't find the way to make it work )
"Who Dares Wins" - "Quien se Arriesga Gana"
Mail me at: 
-
Feb 23rd, 2004, 05:07 PM
#10
Frenzied Member
You can change it (Volume S/N), with the program I posted earlier, unless you mean change it via VB code directly.
And I'm sure it's stored on the HD disk itself, like the Label.
Last edited by BrianS; Feb 23rd, 2004 at 05:10 PM.
-
Feb 23rd, 2004, 05:14 PM
#11
Fanatic Member
D12Bit opened the can of worms - BrianS, I am assuming you can change the Volume Serial Number, but in order for me to create really locked down apps I would need to get the factory serial...would be really nice if this could be done, but I can imagine that since this number is not on the HD, it must be accessed in a totally different way. Like 'how would I even be able to access that section of memory!!!'
-
Feb 23rd, 2004, 05:24 PM
#12
Hyperactive Member
you can get the Factory HDD serial Number with a DLL that is available in the internet ...
as a matter of fact, this has been discussed here several times before ...do a serach for hdd serial number or factory serial number ... and you'll find the name of the dll and where to get it ...
Good luck!
"Who Dares Wins" - "Quien se Arriesga Gana"
Mail me at: 
-
Feb 23rd, 2004, 06:01 PM
#13
Frenzied Member
Use a Keygen method instead.
You will never get anything 100% secure, all you can do is try.
Originally posted by MikkyThomeon
D12Bit opened the can of worms - BrianS, I am assuming you can change the Volume Serial Number, but in order for me to create really locked down apps I would need to get the factory serial...would be really nice if this could be done, but I can imagine that since this number is not on the HD, it must be accessed in a totally different way. Like 'how would I even be able to access that section of memory!!!'
-
Feb 23rd, 2004, 06:10 PM
#14
Fanatic Member
Cool man!!!
!!!
-|-
/ \
` `
(The Big Yellow Man is a registered trademark of the MikkyThomeon corporation!!!)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|