News:

Registered a URL and setup a forum as the IPCam stuff really needed its own site vs my irregular blog posts about IPCam hacking at http://www.computersolutions.cn/blog

Author Topic: Unpack Tool for the WebUI  (Read 4008 times)

  • No avatar
  • *****
March 15, 2011, 04:52:24 pm
Unpacker for the WebUI

http://www.openipcam.com/files/Reverse%20Engineering/extractwebui.c

This file once compiled, will allow you to split the webui bin file into its actual contents (mostly html, js and an ocx file).



Compile instructions.

gcc -o extractwebui extractwebui.c


Usage instructions

extractwebui   input file     folder to write to
eg

./extractwebui somewebui.bin  .
« Last Edit: March 27, 2011, 01:35:40 pm by admin »

June 16, 2011, 07:13:39 am
and how to put it back after changing??
« Last Edit: June 16, 2011, 07:30:53 am by Borsti92 »

  • No avatar
  • *****
June 16, 2011, 10:37:48 am
this is - to be polite - outdated ...

look for "new fostar" thread

  • No avatar
  • *****
June 16, 2011, 11:53:53 am
Wasn't outdated when I wrote it  >:(


For repacking - need to recreate header, crc and version, then pack in same manner as the original.

4 bytes header =  bd 9a 0c 44
4 bytes CRC32 of entire file except first 12 header bytes
4 bytes size of file
4 bytes version x.x.x.x

then file length 4 bytes
then file
repeat until done.

but yeah, easier to use one of the newer tools.


  • No avatar
  • *****
June 16, 2011, 12:14:45 pm
sorry, didn't want to diminish your work.
But as admin I thought you ought to know ...

schufti