I want to fetch the year information from the MBR. Here is my approach for this problem.
For any program, whenever we use 'version' flag we get the year information also. I gues it is the release year of that tool. For example,
ls --version
ls (GNU coreutils) 8.25
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Richard M. Stallman and David MacKenzie.
Q1. Does the MBR contain the year's info? Q2. If yes, How I can fetch it?
I can fetch the version info like this
- read the first 512 bytes, seek the offset(0x3E) and read the next 2 chars.
Can anyone help me with this?