Author Topic: SonicWALL SRA 4200. Hardware hacking!  (Read 14689 times)

0 Members and 1 Guest are viewing this topic.

Offline pappkoppTopic starter

  • Contributor
  • Posts: 25
  • Country: no
SonicWALL SRA 4200. Hardware hacking!
« on: December 11, 2013, 07:00:24 am »
Hello!

I picked up an software bricked firewall from SonicWALL.
I opened it up and i saw that it used standard ATx Pc components, so i am wondering if it can be hacked to run custom firmware?


I have the standard hacking tools: Jtag, TTL, Serial etc. Can this be done? I tried to mount the flash card to my workstation but it won't. because it has some kind of bad blocks or something, i think its locked or what?

Ive hocked it up to an videocard, please see the images!
I can provide all the information possible!!

The images are here:
http://imgur.com/a/1He14/embed



Kind Regards.
 

Offline amyk

  • Super Contributor
  • ***
  • Posts: 8385
Re: SonicWALL SRA 4200. Hardware hacking!
« Reply #1 on: December 11, 2013, 11:29:13 am »
Do you have any info on the CPU and other hardware on it?
 

Offline NiHaoMike

  • Super Contributor
  • ***
  • Posts: 9187
  • Country: us
  • "Don't turn it on - Take it apart!"
    • Facebook Page
Re: SonicWALL SRA 4200. Hardware hacking!
« Reply #2 on: December 11, 2013, 02:47:09 pm »
What happens if you swap the CompactFlash card with one that has a LiveUSB distro installed on it?
Cryptocurrency has taught me to love math and at the same time be baffled by it.

Cryptocurrency lesson 0: Altcoins and Bitcoin are not the same thing.
 

Offline pappkoppTopic starter

  • Contributor
  • Posts: 25
  • Country: no
Re: SonicWALL SRA 4200. Hardware hacking!
« Reply #3 on: December 11, 2013, 03:07:46 pm »
I will go to the store as soon as i get the time, regarding the flash card. Pick up a new one if no one got an suggestion for mounting the drive on my WorkStation (Linux or Windows tools will do)

Regarding the CPU i don't know anything. I'm gonna pop off the heat-sink if i can't get the flash card to boot.

Regards
 

Offline Monkeh

  • Super Contributor
  • ***
  • Posts: 8047
  • Country: gb
Re: SonicWALL SRA 4200. Hardware hacking!
« Reply #4 on: December 11, 2013, 04:05:35 pm »
It shouldn't be much trouble to get a Linux distro booting off those.

It's got hardware crypto of some sort, too.
 

Offline pappkoppTopic starter

  • Contributor
  • Posts: 25
  • Country: no
Re: SonicWALL SRA 4200. Hardware hacking!
« Reply #5 on: December 11, 2013, 04:47:48 pm »
If it got some kind of hardware encryption, then tell me how to get past that feature? or even explain it
Personally i only think that the BIOS has like a feature where it verify's the content of the flash card.

 

Offline Monkeh

  • Super Contributor
  • ***
  • Posts: 8047
  • Country: gb
Re: SonicWALL SRA 4200. Hardware hacking!
« Reply #6 on: December 11, 2013, 06:13:58 pm »
If it got some kind of hardware encryption, then tell me how to get past that feature? or even explain it
Personally i only think that the BIOS has like a feature where it verify's the content of the flash card.

Uh, as in a crypto engine..
 

Offline TheBay

  • Supporter
  • ****
  • Posts: 1016
  • Country: wales
Re: SonicWALL SRA 4200. Hardware hacking!
« Reply #7 on: December 12, 2013, 12:23:53 am »
Put a PCI graphics card in there with no bracket, see if you get output or POST - If you can enter the BIOS and see boot options then might be halfway there :)

What flash chip is the PLCC BIOS? Is that a AMI sticker I see on it, looks like a normal x86 686 BIOS sticker.
If the BIOS is locked out or has minimal features I can edit/add functions, if you can get a dump.
« Last Edit: December 12, 2013, 12:28:54 am by TheBay »
 

Offline pappkoppTopic starter

  • Contributor
  • Posts: 25
  • Country: no
Re: SonicWALL SRA 4200. Hardware hacking!
« Reply #8 on: December 12, 2013, 10:38:39 am »
Hmm.. Where do i find a reader with that socket that fits? I've cleared the BIOS via using the on-board header. That did not change how the computer boot.

Regarding the PCI video card:
http://imgur.com/a/1He14/embed#11

The only thing i get on the monitor is some FreeDOS thing.. If i remove the flash card it won't even power up the fans. I am about to buy an compact flash card and install some embedded Linux on it. But i bet there is an checksum or something in that way on the orginal flash card.

Kind Regards
 

Offline nowlan

  • Frequent Contributor
  • **
  • Posts: 649
  • Country: au
Re: SonicWALL SRA 4200. Hardware hacking!
« Reply #9 on: December 12, 2013, 12:00:55 pm »
Looks to be searching for C:\command.com.
Probably why its bricked.

Just get a compact flash card and reader and put linux on it.
I doubt you need to worry about signed images etc.
 

Offline pappkoppTopic starter

  • Contributor
  • Posts: 25
  • Country: no
Re: SonicWALL SRA 4200. Hardware hacking!
« Reply #10 on: December 12, 2013, 12:20:55 pm »
Just get a compact flash card and reader and put linux on it.
I doubt you need to worry about signed images etc.


Yeah, i have an compact disk reader. But when i connect it to my reader it won't mount under any circumstances, when i see the debug message on my Linux system it whines about bad sectors and I/O errors. Therefore no mounting for that card (would be fun to see the contents of it tho)

I will hook up an flash card as soon as possible,. I will keep you guys updated :):)

Kind Regards
 

Offline amyk

  • Super Contributor
  • ***
  • Posts: 8385
Re: SonicWALL SRA 4200. Hardware hacking!
« Reply #11 on: December 12, 2013, 12:25:38 pm »
The good news is that you seem to have a relatively standard x86 PC.

The bad news is that the rubbish after the "Kernel: allocated ..." line suggests the files on the CF are corrupted.

Have you tried accessing the BIOS setup? Or booting from a USB drive?

Note that the CF interface is essentially EIDE, so if you have an adapter you could try hooking up a regular hard drive to it.
 

Offline amyk

  • Super Contributor
  • ***
  • Posts: 8385
Re: SonicWALL SRA 4200. Hardware hacking!
« Reply #12 on: December 12, 2013, 12:28:04 pm »
Just get a compact flash card and reader and put linux on it.
I doubt you need to worry about signed images etc.


Yeah, i have an compact disk reader. But when i connect it to my reader it won't mount under any circumstances, when i see the debug message on my Linux system it whines about bad sectors and I/O errors. Therefore no mounting for that card (would be fun to see the contents of it tho)

I will hook up an flash card as soon as possible,. I will keep you guys updated :):)

Kind Regards
Don't mount it, try ddrescue instead.
 

Offline TheBay

  • Supporter
  • ****
  • Posts: 1016
  • Country: wales
Re: SonicWALL SRA 4200. Hardware hacking!
« Reply #13 on: December 12, 2013, 02:07:33 pm »
Nice to see video output :D

Do you get a post screen? have you tried F1, F2, other F keys and Del when powering on to get in to a setup?

You need a PLCC to DIP adapter for your programmer, if you haven't got a programmer I love the TL866A at the moment. It's become my main programmer.


Hmm.. Where do i find a reader with that socket that fits? I've cleared the BIOS via using the on-board header. That did not change how the computer boot.

Regarding the PCI video card:
http://imgur.com/a/1He14/embed#11

The only thing i get on the monitor is some FreeDOS thing.. If i remove the flash card it won't even power up the fans. I am about to buy an compact flash card and install some embedded Linux on it. But i bet there is an checksum or something in that way on the orginal flash card.

Kind Regards
 

Offline TheBay

  • Supporter
  • ****
  • Posts: 1016
  • Country: wales
Re: SonicWALL SRA 4200. Hardware hacking!
« Reply #14 on: December 12, 2013, 03:17:27 pm »
Remove flash card and see if any POST Video output or try removing the battery and boot with no flash card! It might load to CMOS defaults and allow you in to setup hopefully :D it might need to be left on a while, the OS probably controls fan speed as it boots, though if you do not get POST the bios might not have code to initialise the display adaptor... A few SATA connectors there too, try removing the flash card and making a USB boot disk with Rufus?
« Last Edit: December 12, 2013, 03:18:58 pm by TheBay »
 

Offline pappkoppTopic starter

  • Contributor
  • Posts: 25
  • Country: no
Re: SonicWALL SRA 4200. Hardware hacking!
« Reply #15 on: December 12, 2013, 08:21:36 pm »
I tried with an Flash card, but no boot.

There is an Via Chipset on the board, VIA VT1211
Datasheet: http://www.hardwaresecrets.com/datasheets/vt1211.pdf
Info: http://www.via.com.tw/en/products/peripherals/super-io/
 
Hackable? i think so?

 

Offline TheBay

  • Supporter
  • ****
  • Posts: 1016
  • Country: wales
Re: SonicWALL SRA 4200. Hardware hacking!
« Reply #16 on: December 12, 2013, 08:23:22 pm »
Please try with no flash card and wait for post, or keep hitting keys to get in BIOS.

Via is only Super IO chip? not the main chipset, what do you intend to do with the Via chip?
 

Offline pappkoppTopic starter

  • Contributor
  • Posts: 25
  • Country: no
Re: SonicWALL SRA 4200. Hardware hacking!
« Reply #17 on: December 12, 2013, 10:26:02 pm »
Update:
I have tried to boot from a FreeDOS image, but it don't want to work with me.  |O :--

Also there is no BIOS button i can press ( yes i have tried all the standard ones)

Regarding the VIA chip, isn't that  the Disk Controller?

Kind Regards, and keep up the good work :=)
 

Offline Monkeh

  • Super Contributor
  • ***
  • Posts: 8047
  • Country: gb
Re: SonicWALL SRA 4200. Hardware hacking!
« Reply #18 on: December 12, 2013, 10:26:49 pm »
Regarding the VIA chip, isn't that  the Disk Controller?

No.. did you read the datasheet you posted?
 

Offline pappkoppTopic starter

  • Contributor
  • Posts: 25
  • Country: no
Re: SonicWALL SRA 4200. Hardware hacking!
« Reply #19 on: December 13, 2013, 01:21:53 pm »
Regarding the VIA chip, isn't that  the Disk Controller?

No.. did you read the datasheet you posted?
I guess that the "Floppy disk" is under the genre of Compact flash disk?
 

Offline Monkeh

  • Super Contributor
  • ***
  • Posts: 8047
  • Country: gb
Re: SonicWALL SRA 4200. Hardware hacking!
« Reply #20 on: December 13, 2013, 04:37:03 pm »
Regarding the VIA chip, isn't that  the Disk Controller?

No.. did you read the datasheet you posted?
I guess that the "Floppy disk" is under the genre of Compact flash disk?

Guessing won't get you very far.
 

Offline TheBay

  • Supporter
  • ****
  • Posts: 1016
  • Country: wales
Re: SonicWALL SRA 4200. Hardware hacking!
« Reply #21 on: December 13, 2013, 04:49:52 pm »
Compact flash is IDE not a floppy controller.
 

Offline TheBay

  • Supporter
  • ****
  • Posts: 1016
  • Country: wales
Re: SonicWALL SRA 4200. Hardware hacking!
« Reply #22 on: December 13, 2013, 07:28:24 pm »
Regarding the VIA chip, isn't that  the Disk Controller?

No.. did you read the datasheet you posted?
I guess that the "Floppy disk" is under the genre of Compact flash disk?

Guessing won't get you very far.

This forum needs a like button :)
 

Offline Tinkerer

  • Frequent Contributor
  • **
  • Posts: 346
Re: SonicWALL SRA 4200. Hardware hacking!
« Reply #23 on: December 14, 2013, 03:50:32 am »
Just get a compact flash card and reader and put linux on it.
I doubt you need to worry about signed images etc.


Yeah, i have an compact disk reader. But when i connect it to my reader it won't mount under any circumstances, when i see the debug message on my Linux system it whines about bad sectors and I/O errors. Therefore no mounting for that card (would be fun to see the contents of it tho)

I will hook up an flash card as soon as possible,. I will keep you guys updated :):)

Kind Regards
If that flash card has bad sectors, you very likely have corruption.
 

Offline tja

  • Contributor
  • Posts: 18
Re: SonicWALL SRA 4200. Hardware hacking!
« Reply #24 on: January 19, 2020, 07:32:54 pm »
I've just acquired one of these devices, and have spent a little time trying to reverse engineer it.

I took a slightly different approach to video output to the OP, and just soldered a VGA socket into the unpopulated spot on the MB - works fine.

Major problem is I have not been able to get into the BIOS at all, have rebooted many times and pressed all manner of keys - nada.

This is what it says on boot up:

Validating firmware CRC...
CKIMAGES v2.1
Validating files...
CRC is valid.
Booting into firmware…
LINLD v0.97
Kernel command line:
root=/dev/ram0 rw console=ttyS1,115200 ramdisk_size=163840 ide=nodma
Decompressing Linux... Parsing ELF... done .
Booting the kernel .


It appears to boot into FreeDOS, which then loads Linux. It is possible to interrupt the boot process and explore from a FreeDOS prompt, but I haven't found out much. Very limited range of FreeDOS commands available.

I have extracted the BIOS flash rom (a 39sf040) and dumped it using an Arduino lash-up, but I don’t know what to do next - what format should I save the data as, and what utilities can I use to manipulate the BIOS, if any?

All help gratefully received.

Hi-res photos of the board, BIOS dump and boot photos here:
https://drive.google.com/open?id=1WMaan81lUdivlR2-s8uoYmRYDbtQXcHQ

Cheers

Tim
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf