How to root and unlock bootloader
Some Samsungs have a bug in their "download mode" which will let you flash a custom recovery without even having to root or unlock the bootloader. With custom recovery you can then do whatever you want with the phone.