[TOOL] Extract CAB/BIN files from EXE v1.10 (Unpacks HTC Roms/Hotfixes, Omnia ROMs) - Windows Mobile

Description
Takes an EXE file and extracts the contained CAB or BIN files (the file is trimmed to match the internal size). It can extract:
1) the CAB that contains the ROMs in the HTC ROM Updaters from which you can get the NBH/NBF ROM file.
2) the CAB contained in the HTC ROM Hotfixes that you can after cook in your ROMs or install on your phone without using activesync
3) the BIN in the Omnia i900/i910 ROM Updaters for XP/Vista (and maybe some other updaters)
How to use
Drag&drop the file you want to scan on the tool executable and if the file is detected it will be extracted in the folder. This is a command line tool so if you want to see the output you will have to open it in a command prompt.
Changelog
(NEW) v1.1: Added support for the Samsung i780 and other updaters that contain the .bin file uncompressed inside
v1.0: Initial Release

thanks
thanks bro will try this......

Great Tools, thanks!

maybe stupid but isn't that the same as renaming the .exe to .rar and then extract ?

So will the new 1.31 Kitchen work with .bin files from Samsung i780? I guess you could use this tool to extract the bin from the .exe updater. And does the kitchen import the .bin file just like a .nbh?
I have a i780 that I use for daily phone use. I don't flash it very often. The current ROM is one I built a long time ago using old building methods. One of the reasons I don't want to cook a ROM for it is it's too much work. Lol

Great tool. Thanks for shared...

ceesheim said:
maybe stupid but isn't that the same as renaming the .exe to .rar and then extract ?
Click to expand...
Click to collapse
When you use winrar or 7-zip to unpack the files they will only extract the content of the CAB archive making hotfixes useless and when you use osnbtool to extract the file from the Samsung updaters it will return you a trimmed NB0 file instead of the original BIN file that you cannot directly flash. My tool scans the files and gives you the intact CAB/BIN files without any further processing.

bobsbbq said:
So will the new 1.31 Kitchen work with .bin files from Samsung i780? I guess you could use this tool to extract the bin from the .exe updater. And does the kitchen import the .bin file just like a .nbh?
I have a i780 that I use for daily phone use. I don't flash it very often. The current ROM is one I built a long time ago using old building methods. One of the reasons I don't want to cook a ROM for it is it's too much work. Lol
Click to expand...
Click to collapse
The i780 has a BIN imagestart different from 0 meaning a bootloader or other stuff could be present so I wouldn't even dare flashing anything that the kitchen produces without a custom batch file. This tool cannot import the i780 files because it looks for the omnia imagestart that is 0.

airxtreme said:
When you use winrar or 7-zip to unpack the files they will only extract the content of the CAB archive making hotfixes useless and when you use osnbtool to extract the file from the Samsung updaters it will return you a trimmed NB0 file instead of the original BIN file that you cannot directly flash. My tool scans the files and gives you the intact CAB/BIN files without any further processing.
Click to expand...
Click to collapse
cool , thanks for explaining .

Thanks airxtreme!!!! This is one more amazing tool to add to the collection.

Thanks Bro Great app

Awesome tool airxtreme....thanks for sharing.

airxtreme said:
Description
Takes an EXE file and extracts the contained CAB or BIN files (the file is trimmed to match the internal size). It can extract:
1) the CAB that contains the ROMs in the HTC ROM Updaters from which you can get the NBH/NBF ROM file.
2) the CAB contained in the HTC ROM Hotfixes that you can after cook in your ROMs or install on your phone without using activesync
3) the BIN in the Omnia i900/i910 ROM Updaters for XP/Vista (and maybe some other updaters)
How to use
Drag&drop the file you want to scan on the tool executable and if the file is detected it will be extracted in the folder. This is a command line tool so if you want to see the output you will have to open it in a command prompt.
Click to expand...
Click to collapse
I've tried to extract files from a HTC Rhodium FaceBook Hotfix but it returned with "no files found". Just to confirm that your tool was not designed to do that?
Hotfix is attached for your reference. Thanks.

zard said:
I've tried to extract files from a HTC Rhodium FaceBook Hotfix but it returned with "no files found". Just to confirm that your tool was not designed to do that?
Hotfix is attached for your reference. Thanks.
Click to expand...
Click to collapse
The archive is truncated indeed it doesn't even have an icon like HTC hotfixes usually have. The tool won't extract it because it the archive integrity is checked before extracting the content.

I uploaded a new version with Samsung i780 (and potentially other older samsung phones) ROMs support if anyone is interested.

airxtreme said:
I uploaded a new version with Samsung i780 (and potentially other older samsung phones) ROMs support if anyone is interested.
Click to expand...
Click to collapse
If posibble please make support for the latest samsung updater *.exe.
Because i think the newest samsung updater .exe like sprint intrepid have diferent structure, not like older updater *.exe that can be extracted the bin file by manualy triming the unused bytes with hex editor or with your great tools..
Thank you..

nice little app, added to my toolbox. thanx

Related

Converting EXE to CAB for Extended ROM Auto-Install?

Hey Guys,
I have been customising my extended rom so when I hard reset I get all the applications I want (Resco file explorer etc). I have been doing this with .cab files fine.
The problem is that I have files which are .exe setup files (e.g Flash player 6). These have to be installed on the PC, and the cab is copied to the XDA and run. I would like to just have e.g a flash CAB file to put on the extended ROM.
is there a way to convert the PC EXE into a XDA cab file, or some way to run the PC exe on the device automatically in extended rom?
I know some .exe setup files can be extracted using winrar which then give you the cab file, flash player isnt one of them though.
Regards,
Jez.
http://forum.xda-developers.com/viewtopic.php?t=10058
Jez said:
is there a way to convert the PC EXE into a XDA cab file, or some way to run the PC exe on the device automatically in extended rom?
Click to expand...
Click to collapse
Use Windows Registry Editor (regedit.exe) to look for the path where your Desktop Exes are extracted to PocketPC Cabs:
Look for this value:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows CE Services]
"InstalledDir"="k:\system\hardware\pda\imate\ASync"
Now, open your Windows Explorer and go to the path. You will find your cabs in corresponding folders (e.g, folder MacromediaFlash shall contain Flash6.arm.cab and etc...)
If you need to do more complex restoration, use Restorator tool. It restores your directory and file structure, registry settings, installs cabs, writes boot screens and does everything nice...
Oh my god, you are both bloody geniouses!!
This is wicked, cheers guys!
Regards,
Jez.
Any other ways to xtracting & repacking to cab?
Renaming the file format (exe to any formats) & exe xtractor software doesn't work.
I can compress any data to .cab, but how to xtract perfectly exe files?
Convert EXE to Cab online without having to download any software
If you have an EXE file that you would normaly run on your PC to install a sofware... it looks like this online converter work to have it converted into a cab file for your cell phone!!!
try it!
1- first you need to compress your EXE file into a ZIP folder... that will create a ZIP file on your desktop.
2- then you go to http://media-convert.com/convert/
3- browse on the first field to determine witch file on your pc you want to convert .. select the ZIP file you just created...
4- on the second part of the page you will be ask what format you want to convert your ZIP file to .. on the scrolldown menu select . CAB... and hit the convert button .. the online service will do the rest ..
Basicaly will upload your file onto their server , process it and render it to you on a file download link ...
There you go you have now a CAB version of your EXE file to upload on your phone with ActiveSync...
My problem
how to say... the site is cool ,and i get my file converted. However, the nature of that file hasn't been changed into a cab. it is still an exe. I dunno if i have done something wrong when converting.

To view & extract .nb0 content, please help......

hi all, i have a .nb0 file which extracted from a wm5 ppc phone ( cant remember the model), and i need some help here to view this nb0 and extract some cab file from there.
This .nb0 consist a lot useful softwares, for example, soundcover (background sound during conversation), answering machine, conversation recorder and it works flawlessly on wm5 ppc phone.
Any expert??? please help.
**ok, I found the phone model, its GIGA, this is the nb0 file, latest update from thier website http://www.higiga.com/HigigaFrontStage/event/download/update/V1.12.80.zip
Hi,
Congratulations on extracting an .nb0 file. There are many methods to do so, depending on the device. Out of curiosity, which method did you use? Assuming that you correctly extracted the .nbo file of the CE image, you can treat it the same as an .nb or .bin file. use "viewimgfs *.nb0". the * of course meaning the name of your nb0 file like MSFLSH50_2.nb0, or what ever. This will give you all the files and what not. You can then use the DSMtool by bepe. This will organize all the files into packages. Then you can use cabwiz or some other program to create a cab installer. Good posts to follow are mamiach, bepe, buzzlightyear, and others, if you didn't already know. The dsmtool is found in bepe's WM5 kitchen. the viewimgfs and other imgfs tools were created by mamiach.
Regards,
Jason
thanks for your reply, i will try to use the tools to see whether i can extract anything out of it...thanks again.
I think i have successfully dump the rom to a dump folder, but i cannot see anything but only some dll files, what else i need to do??? do i need to use some tools to convert all these dll files to view the rom content?? please advise, thanks.

Extract .dll from .cab

Excuse me for beeing a newbie, but can't seem to fin any way to extract the .dll and .gif files from a cab file. For example I downloaded CrossbowPhonepad.zip from http://forum.xda-developers.com/showthread.php?t=292014&highlight=media+player+skin
But I'm not quite happy with the way it looks and I would like to start to play and alter with it. But when I extract the .Cab file all i get is strange .012-fil and so on. And of course the .XML file where you se how the .dll and .gif files shall be installed.
How to I extract them (.dll and . gif) from the .Cab file??
I'v tried Winrar, Winace, Total commander.
Please Help
the simplist way
Have you tried cabdump.pl (it can be found on the XDA-Wiki, main wiki page->complete tool list -> RomTools->cabdump.pl)
But I've found the simplest way is to install the cab on your device, and then copy the files you're interested in to your pc.
There is an excellent, easy to use program called MSCEInf that allows you to work with CAB files, including drag and drop extraction of files - with their original names - from CAB installation files. It's available here:
http://www.freewareppc.com/utilities/msceinf.shtml
It's developed by a Frenchman named BenoƮt Thonnart.
You should also try WinCE Cab Manager.
But generally WinRar works fine. The files in the cab are simply renamed to 8.3 convention with extension showing the file number. Extract the xml and you will see what name belongs to what file. Just extract and rename.
Thanx gues...that really helped

General Process of Rom Development for WM-Phones? TG01 need a new custom Rom!

Hello developers,
maybe some people know, that there is a new TG01 section in this forum.
I personally own this phone and like it very much. Only the Rom that Toshiba provided us isn't very good and stable. It has many problems, that need to be solved
The friendly guys of WMPowseruser told us, that they want to try to cook a Rom for the Toshiba TG01.
But until now nothing happens, because nobody knows 100% sure what is needed to be done, to get a working Rom for the TG01 cooked...
So I decided to gain more information about the Rom Development process for WM-Phones.
I want to ask you what is needed to get a working cooked Rom for our Phone.
Do we need a Hard-SPL? Or do we need to extract the Rom out of our TG01, decrypt it so that we then can cook a new Rom?
You may notice, that I'm not an expert on this topic, so I rely on your help.
There is already a tool made by the member Cotulla to encode/decode TSW-files. http://cotulla.pp.ru/Misc.html
And it is also possible to flash every Rom that Toshiba provided us with this method:
http://forum.xda-developers.com/showpost.php?p=5405267&postcount=325
So it's possible to flash for example a german O2 Rom on an english TG01 that has the Orange UK Rom originally on it.
But I don't know if that helps us for our development.
We already gained 250$ for the development and I think that we're also able to gain even more money if it's needed!
We need serious help
I thank you in advance for your answers to this thread!
Every answer is welcome.
I also wish you a nice remaining Sunday!
Best regards,
Manuel
agree
TG01 have come to market for almost 1 year, hopping the cooked rom can be made early!
TG01
TGO1 MAIN bin file needs decrypted then it's full speed ahead
we need an experienced hacker
TG01
can the mods sticky this post we need it's full attention!!
Ok here is the acutal development status:
Progress of the Project WM6.5.3:
- With SDDL+ made by stepw we can flash any Rom on the TG01
- With Cotullas Tool we can decode/encode .tsw files
(The .tsw file is the file, that Toshiba offers to download from their homepage to update to WM6.5.3...so these .tsw files need to contain the whole OS and all system files that are needed to run the TG01)
Cotullas Tool can make a .bin file out of the .tsw file that we got from Toshiba.
But there are two problems with that:
1. We cannot be sure, that the Decoder works 100% right.
2. The .bin file we get when we use Cotullas tool seems to be not normal. We cannot extract it.
If I open it with Isobuster than I first see only the one track is included in the .bin file.
But then I let Isobuster search for more files after their signatures in the .bin file, Isobuster finds the following files:
00003808 , \Recovered File 01.mov
00112925 , \Recovered File 02.gz
00115498 , \Recovered File 03.png
00115530 , \Recovered File 04.png
00115533 , \Recovered File 05.png
00115563 , \Recovered File 06.png
00115791 , \Recovered File 07.cab
00115962 , \Recovered File 08.gz
00116325 , \Recovered File 09.png
00116351 , \Recovered File 10.cab
00116354 , \Recovered File 11.cab
00116385 , \Recovered File 12.cab
00116391 , \Recovered File 13.cab
00116417 , \Recovered File 14.png
00116420 , \Recovered File 15.png
00116421 , \Recovered File 16.gif
But for example the .cab files can't be extracted...it tells my, that the archive is damaged.
Well and we cannot be sure, that the above written files are the only content of the .bin file. Maybe Isobuster didn't find the others that are included in it...
So what we need:
- A person that understands the format of the .bin file (unencrypted .tsw file) so that we can extract the .bin file properly and get all of the system files and the OS out of it.
After that we can modify the files and create a new .bin file with the modified files included. Than we only need to encode it again, so that we have an flashable .tsw file again.
We could flash the new .tsw file with the SDDL+ made by the user stepw.
It would be very nice if someone would answer me and get in contact with me, that can help us to get a working WM6.5.3 Rom onto the TG01.
Thanks in advance!
I wish all of you a nice remaining Sunday evening!
Best regards,
DunkDream
hello,
to extract the rom, i used the raw-files.
i used "itsutilsbin"-tools. after dumping i get an extractet oem/sys-folder with known (typical) foldercontent and -structure.
here is a list of extractet raw-files
View attachment luste.zip
any lately news?
waiting...h
bird_9527 said:
waiting...h
Click to expand...
Click to collapse
The problem is in the nb0 file generated after using the cotulla tool.There are some extra bytes with checksum..i think only cotulla can make it possible.I tried manually with hexeditor..it fails..in short, we need another tool/program which can remove extea bytes, give us the normal nb0 file, which can be dumed recompiled and repacked with those removed extra bytes with the sme or modified checksum.Then we can have the custom ROM.

HD2 cab install

hello guys, i dont own an hd2 yet but ill buy one this month but i have a question i want to add some cabs file on my device when i get. My question is i have download some cabs BUT when i open the winrar i dont get any cab file, all i get is some files that has bunch of numbers and one of them says "_setup.xml" so what should i do? should i directly put the winrar file on my hd2? since i dont get any cab file inside the winrar?? and if there's a cab file inside the winrar and i press the button "extract here" should i just upload the cab file only to my hd2 right??
Hope you guys can help me.
Thank you.
Hi.
A CAB file is a compressed installer file for mobile phones.
If you open it with winrar, you will see all the files it contains.
Just copy the original .cab file to your phone.
Click on the .cab file, and it will run the installer, and install the program on your phone.
You can choose to install to the main memory or the sd card.
Yeah - as above. What you're calling a "winrar" file is the cab file.
Extract a cab
Ok, I know this isn't the original question but...
is it possible to extract a .cab file - i mean to extract all the different files that make up the program , all the .exe .dll .ico etc etc. Wanting to do this to help me reverse-engineer a couple of omnia 2 cabs that don't work.
kinsago said:
Ok, I know this isn't the original question but...
is it possible to extract a .cab file - i mean to extract all the different files that make up the program , all the .exe .dll .ico etc etc. Wanting to do this to help me reverse-engineer a couple of omnia 2 cabs that don't work.
Click to expand...
Click to collapse
yes extract the files with winrar
ohhh okok i get it now.. so i just donwload thw winrar which is the cab file and i copy it to my hd2. thanks guys
Richy99 said:
yes extract the files with winrar
Click to expand...
Click to collapse
Tried that, all I get are 10 files. One of them is _setup.xml, the others are numbered files.
I've attached a screen capture of the files so you can see what they are.
kinsago said:
Tried that, all I get are 10 files. One of them is _setup.xml, the others are numbered files.
I've attached a screen capture of the files so you can see what they are.
Click to expand...
Click to collapse
Yes that's what you would expect as they are the cab install files.
If they don't mean anything are you sure you know what you're doing?
That's what I'm trying to find out. I assume that the WM program works in a similar way to windows program in that its a collection of files (exe, ico, dll, cfg so on so forth) that get installed in the appropriate places on the device. If so, how do you 'unpack' these files from the setup files
use a cab manager program. I don't so I can't recommend, but wincecab manager sound familiar. u can use them to create cabs of your tweaks, install files and such.
it seems that you have never used windows mobile (just copy the winrar file into the device and run it from the device)
hoss_n2 said:
it seems that you have never used windows mobile (just copy the winrar file into the device and run it from the device)
Click to expand...
Click to collapse
I'm not trying to install a cab file (which the first post was about) I'm trying to decompile the omnia 2 video editor to get it to run on the HD2 but instead of starting a new thread, I asked on this one because it seemed (partially) relevant.
BTW, I've got the cab 'extracted' so thanks - no for the difficult part...

Categories

Resources