How to check Windows MBR code from Linux?

For discussions about security.
Message
Author
User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#16 Post by rcrsn51 »

Then you need a hex editor. I'm sure there is one available for Puppy.

[Edit] Or you could just use

Code: Select all

hexdump mbr.bin

Bruce B

#17 Post by Bruce B »

I want to add, if anyone what to have a base MBR file to test against, the base file needs updating every time one repartitions his hard disk.

~

DPUP5520
Posts: 800
Joined: Wed 16 Feb 2011, 05:38

#18 Post by DPUP5520 »

rcrsn51 wrote:Then you need a hex editor. I'm sure there is one available for Puppy.

[Edit] Or you could just use

Code: Select all

hexdump mbr.bin

This is a nice easy/small hex editor
Attachments
shed-1.15.pet
(15.44 KiB) Downloaded 577 times
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=69651][b][i]PupRescue 2.5[/i][/b][/url]
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=72178][b][i]Puppy Crypt 528[/i][/b][/url]

Sylvander
Posts: 4416
Joined: Mon 15 Dec 2008, 11:06
Location: West Lothian, Scotland, UK

#19 Post by Sylvander »

1. "Then you need a hex editor. I'm sure there is one available for Puppy."
(a) Ended up using wishbinvu-2009.pet [wishbinvu was recommended by Bugman], then installing tk-8.5.6.pet & tcl-8.5.6-v1.pet linked HERE.

(b) So now the program runs OK from the installed entry in the "Menu->Utility->General Utilities->Wish Binary Viewer".
Has a rather nice colorful [Orange] GUI! :D
Used it to "Open" the mbr.bin file and was given the kind of display I want [the code content as seen in the screenshots below].
Was then able to save a copy with a name specified by me.
Would it be possible to use a file-content-comparison program to display differences?
Attachments
00.jpg
(52.76 KiB) Downloaded 1003 times
01.jpg
(47.62 KiB) Downloaded 1005 times

User avatar
d4p
Posts: 439
Joined: Tue 13 Mar 2007, 02:30

#20 Post by d4p »

If you get "Trojan:Win32/Popureb.E"

http://blogs.technet.com/b/mmpc/archive ... stead.aspx

fix the MBR first, and then restore/reinstall the system

User avatar
piratesmack
Posts: 100
Joined: Wed 16 Sep 2009, 14:22

#21 Post by piratesmack »

If run without options, ms-sys will inspect your current boot record

e.g.

Code: Select all

# ms-sys mbr.bin 
mbr.bin has an x86 boot sector,
it is a Microsoft 2000/XP/2003 master boot record, like the one this
program creates with the switch -m on a hard disk device.
Note: Last time I checked Puppy came with an old version of ms-sys, so it might not recognize the boot record for newer versions of Windows.

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#22 Post by Flash »

ms-sys --help gives a list of options and arguments.

ms-sys --version gives the version in Puppy.
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=69321][color=blue]Puppy Help 101 - an interactive tutorial for Lupu 5.25[/color][/url]

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#23 Post by Lobster »

thought this might be of interest . . .
http://www.ntfs.com/mbr-damaged.htm
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

Post Reply