Search string in a BIOS area

Hello,

I need to search for a particular string in BIOS area. I tried Win32_BIOS as well as MSSMBios_RawSMBiosTables tables with no luck as the string is written at some totally different location.

If I use debug command, I am able to search for a string and I get the exact address. How to achieve this? How to simulate debug command in C??
LVL 8
milindsmAsked:
Who is Participating?
 
milindsmConnect With a Mentor Author Commented:
I have found the solution on my own. I used EnumSystemFirmwareTable & GetSystemFirmwareTable APIs to achieve it. Thank you anyway guys.
0
 
gplanaCommented:

When executing a "normal" program (for example, a program writen in C), operating system assigns some pieces of the computer RAM to this program, and doesn't allow to access other areas.

This happens in all modern operating systems. However, if you execute your C program over MSDOS, you should access to first 640KB of your computer memory, and surely you should find the bios area.

Hope it helps.
0
 
milindsmAuthor Commented:
Can you provide some sample snippet?
0
SMB Security Just Got a Layer Stronger

WatchGuard acquires Percipient Networks to extend protection to the DNS layer, further increasing the value of Total Security Suite.  Learn more about what this means for you and how you can improve your security with WatchGuard today!

 
milindsmAuthor Commented:
I am trying to read string data in the BIOS area. I tried using WMI but it gives specific information like version, manufacturer etc. I tried getting raw BIOS data but again it gives SMBIOS info :(

ok, tell me, how can I search whether a particular string present anywhere in the BIOS area???? I am not able to use GetSystemFirmwareTable.
0
 
gplanaCommented:
Using MSDOS Operating System (so, startup with this old operating system), you can use your program to search on every byte of the memory. Jut assign a long number directlyto a pointer variable and look for first character of your string, when you found it, try next byte and see if it has the second character of your string, and so on.
0
 
gplanaCommented:
Great to know you have found the solution.

Regards.
0
All Courses

From novice to tech pro — start learning today.