I just use the scripts for my project but wanted to be complete. Simply run the backup or restore scripts, it'll make a dump of it, and mangle the firmware to your heart's content.

A project I'm working on requires pushing all the stock firmware out of the way, so I needed this and wanted to share.