These files MIGHT help hackers - Windows Phone 7 Development and Hacking

I've extracted some files from an HTC rom that might help in hacking. Almost all of these files can be found in the Windows directory of an HTC WP7 phone. For some reason, the program extracted the dll files as folders?, so they may not be as useful as I hope they are. I've attached them in a 7z.
Code:
7z password:
exilevilify
If you think you want more files from the rom, let me know.
EDIT: Some of these files appear to be encrypted, so I'm sorry if this is completely useless.

They are folders because they are modules. You need a tool called Recmod.exe that will create the DLL out of them. I noticed it isn't compatible with all WP7 DLL's though.

It might be because they are encrypted. I'll try extracting the files from other roms at some point and see if they are encrypted as well.

Makes sense, I've managed to convert a few & Restorator give an error trying to open them.

Related

Windows setup files to PPC cab install files?

Is it possible to convert a Windows setup file to a PPC CAB file so you can place it in your extended rom?
If so, how do you do it?
Thanks
rokujou
I don't think it's possible.
BUT.. after you installed a certain software on your device, go to the installation directory on your desktop computer. you can find there the relevant cabs in 99% of the installations.
choose any cab file, which contain the letters "ARM" assuming you are using one of the phone enabled devices.
thanks I didn't think of that.
Well that more or less answers my question anyway
rokujou
sure it's possible rename the exe file to zip and copy out the arm cab file

Changing Files in Windows Dir

Hi,
I flashed a new ROM and now I want to change sym.txt in \windows dir, but it's read-only and I can't change that.
How can I write in this directory?
Thanks!
use Total Commander
nope - totalcommander cannot access the ROM, as i am informed. So some files will stay. I don't know yet how to break into on HTC 4350 (Herald)...
If this file is part of ROM you can not change it without cooking a new ROM.
What you can do it overwrite it. The new file will actually be stored on the storage memory but because it has the same name and path as the ROM file the system will go to it instead of the original. At least until you hard reset your device.
levenum said:
If this file is part of ROM you can not change it without cooking a new ROM.
What you can do it overwrite it. The new file will actually be stored on the storage memory but because it has the same name and path as the ROM file the system will go to it instead of the original. At least until you hard reset your device.
Click to expand...
Click to collapse
I tried that, it works. Although now the function of this file doesn't work anymore (translation of certain characters by pressing "dot" and "space" on the hardware keyboard of the HTC TyTn).
After editing the file and overwriting the original, nothing happens when I press dot+space...
That is because you ruined the signature (by editing an original file) or used an unsigned file.
All system files in WM 5 and up must be signed.
levenum said:
That is because you ruined the signature (by editing an original file) or used an unsigned file.
All system files in WM 5 and up must be signed.
Click to expand...
Click to collapse
Oh I see. Thanks for the information. Can I somehow sign it myself?
Yes, the WM 5 / 6 SDKs contain the tools and sample signatures, but you need to "provision" your device (put the signature in so it will be recognized).
If you do a search on this forum you will find all the info you need.

Can't Copy cmhome.dll and other dll files!!

I am having trouble copying the dll files from my Windows directory on my Dash. I have used Total Commander and Windows Explorer. It says access denied. I can copy some dll files such as the bronzeres.dll. But I cannot seem to get the others. I have tried to make them unhidden (Visible). I have rebooted my phone and pc, just in case there was something weird going on with either. I am stuck. The whole reason I am wanting these is to see how they operate. I have been able to alter my homescreen xml code to insert Fizz Weather into the iconbar, but would like to attempt at adding plugins such as Fizz Weather to the actual panels instead of just a panel with a link to start Fizz Weather. I would really appreciate any help with this. I am really at a stand still at this point.
Those files are XIP (execute in place) they arent real files, they are in a weird format optimised for running fast, although they display in explorer you cant copy them. However you can overwrite them with replacements and the original XIP versions are hidden from applications.
To retrieve these XIP dlls to your PC you need to dump the ROM and reconstruct the files. Its pretty easy there are loads of guides on the Wiki.
Follow this first:
http://wiki.xda-developers.com/index.php?pagename=Hermes_HowtoDumpRom
Then second to extract the files:
http://wiki.xda-developers.com/index.php?pagename=Hermes_HowtoExtractImgfs
here you go heres cmhome.dll
indiekiduk said:
Those files are XIP (execute in place) they arent real files, they are in a weird format optimised for running fast, although they display in explorer you cant copy them. However you can overwrite them with replacements and the original XIP versions are hidden from applications.
To retrieve these XIP dlls to your PC you need to dump the ROM and reconstruct the files. Its pretty easy there are loads of guides on the Wiki.
Follow this first:
http://wiki.xda-developers.com/index.php?pagename=Hermes_HowtoDumpRom
Then second to extract the files:
http://wiki.xda-developers.com/index.php?pagename=Hermes_HowtoExtractImgfs
Click to expand...
Click to collapse
I tried to dump this ROM but I'm not getting very far. The 1st link you gave is for the Hermes and does not appear to be the same as the excalibur. I cannot seem to dump the raw files needed to dump the rom. Any help??

Delete File in Windows Mobile 6

Hi, how can I delete a file in \Windows folder? it seems complaining that the file is in ROM, I had tried many way even using other File Explorer or via ActiveSync. None of them work.
How can I delete a file in \Windows folder in my Microsoft Windows Mobile 6?
Maybe Resco Explorer or Total Commander CE will help.
if it's built in the rom, you might be unable to delete that file.
Please be more specific: which file do you wish to delete?
Maybe you'd have to recook the ROM without that file.
Regards,
EquinoXe
Things built into the rom are "READ ONLY MEMORY" therefore cannot be deleted. if the file is only marked as system and readonly though you can change its atributes using total commander. just long click on item to bring up menu and go to properties. there you need to uncheck everything and delete
I had downloaded Total Commander and installed it, the checked file attributes are 'read only' and 'in rom'; so I guess the file shall be consider undeleteable.
Now I had to learn how to recook, any good guide how can I recook the ROM that I have?
similar problem
I downloaded some software and it came up as being faulty software. The file was a zip folder titled : res_ppc-custom.icons
I tried through my windows mobile device center to uninstall it, but it was never actually installed completely in the first place.
I then tried to delete the file a few times. Once directly from my pda, once through the device center and again through my pc windows explorer. All three attempts were unsuccessful.
How can I get rid of this thing?
Thanks in advance
perhaps you may want to check if the file being accessed by other software, easiest way is to soft reset and try to delete it.
That did the trick! Thanks so much
Move files to storage card
OK I want to move some files (not ROM) in Windows and keep getting error. For example Opera.exe is not marked as anything in properties yet I can't seem to delete the file. I did copy it to my storage card without any issue but can't delete the original from Windows directory. Any suggestions since Total Commander won't delete it. Will edit registry to find it on the Storage Card.
Deleting files in Windows folder
mynullvoid said:
Hi, how can I delete a file in \Windows folder? it seems complaining that the file is in ROM, I had tried many way even using other File Explorer or via ActiveSync. None of them work.
How can I delete a file in \Windows folder in my Microsoft Windows Mobile 6?
Click to expand...
Click to collapse
I have the same problem - I have colpilot.wm6ppc.cab in my Windows directory. It's 12.6mb, I don't want it, and it's taking up a lot of storage space. My phone is a T-Mobile MDA and it obviously came with CoPilot as an option, but I think it's really unfair that the cab is right there in the Windows dir and I can't get rid of it....
Any help gratefully received....
Cheers,
Ed.
The cab is cooked in as part of the rom; there's nothing you can do about it, except flash a custom rom (this is one of the main reasons people flash custom roms). Be glad it was installed as a cab and not as a full package-at least cabs are compressed are a single file.
Farmer Ted said:
The cab is cooked in as part of the rom; there's nothing you can do about it, except flash a custom rom (this is one of the main reasons people flash custom roms). Be glad it was installed as a cab and not as a full package-at least cabs are compressed are a single file.
Click to expand...
Click to collapse
I think the issue is not on the files in ROM.
I have the same problem. I've copied a file under Windows folder and after that I'm unable to delete it.
Strangely I'm able to rename it, which should mean that file is not in use, however deletion is not possible.
I've used TotalCommander, the built-in Explorer and also connected the phone via ActiveSync, but still nothing happens and access seems to be denied.
The exact message is "deletion error".
Any idea?
Thanks.
Cheers...
-nOra-
A very common problem with Windows explorer is reported on all Windows help forums. I've seen people complaining about problem with long path files deletion.
Some common problems with Windows Explorer people talk about:
- Doesn't allow to delete files with long path names
- Pops up error while deleting unwanted files or unnecessary files
- Errors like: Access denied, sharing violation, source in use etc.
I've found a very simple but smart solution for all these above mentioned common problems. A very simple but powerful tool to overcome these problems. Everyone who plays with the files must have this tool. Its compatible with all versions of Microsoft Windows.
johnylog.software said:
A very common problem with Windows explorer is reported on all Windows help forums. I've seen people complaining about problem with long path files deletion.
Some common problems with Windows Explorer people talk about:
- Doesn't allow to delete files with long path names
- Pops up error while deleting unwanted files or unnecessary files
- Errors like: Access denied, sharing violation, source in use etc.
I've found a very simple but smart solution for all these above mentioned common problems. A very simple but powerful tool to overcome these problems. Everyone who plays with the files must have this tool. Its compatible with all versions of Microsoft Windows.
Click to expand...
Click to collapse
Could you please tell us the name of this wonderfull tool, and how to have?
djulen said:
Could you please tell us the name of this wonderfull tool, and how to have?
Click to expand...
Click to collapse
Based on how he said it, I have to really wonder if he really does have such a tool...
badbwoydes said:
Based on how he said it, I have to really wonder if he really does have such a tool...
Click to expand...
Click to collapse
Use Total Commander to modify the contents of the \Windows directory.
Yes, but you won't be able to delete a ROM file anyway.
In the \Windows folder, you commonly encounter three kinds of files :
- Pure ROM files (can't be deleted nor renamed nor moved, nor even copied, but can be overwritten, consuming internal storage memory space in the process to store the new copy, that will become used instead) ;
- Files put there by installation CABs or else (can be freely deleted, renamed or moved, provided they're not currently used by a running process) ;
- Files put on top of previously existing ROM files, wearing the same name (deleting, renaming or moving them will thus make the original ROM file undertneath to reappear with its original contents and attributes).
Once you've understood that, you'll be more aware of what's cooking there.
ROM files can't even be copied, but you can use ROMExtractor to copy them elsewhere, in case you want to study them, or use them in your own ROM (useful to get up-to date versions from another HTC device to cook your own ROM).
Since ROMExtractor is a very minimalistic tool (you have to type in all the files names with their path, same for the target copy, all one by one !) manually extracting hundreds (even thousands) of files is a very tedious taks, I made a MortScript to automate the process in order to extract all those DLLs, EXEs, MUIs, etc. files that can't be directly copied from a phone's ROM.
On the other hand, you absolutely can't delete a ROM file to make room. Overwriting it with a file wearing the same name will jut result in actually adding the new file, thus consuming even more room. The new file will just be used instead of the original one (so you can still update or personalize the ROM).
As a direct consequence, the only way to get rid of unwanted ROM files or permanently replacing them with up-to-date ones is to cook a ROM and flash it to the device to replace the old one.
That's way how operating systems can become better and better, and save space at the same time.
And no, Windows Mobile isn't dead : I'm not quite finished with fixing it until it's perfect, so it's not over yet. LOL

Compress files

Hello,
I have an idea to make an App, and I have one problem, I have to upload one folder that its content have a lot of files and folders in order to upload to skydrive. I think that it is more easy if I compress the main folder and then upload this compressed file. How Can I compress this folder?
Thanks you
cansado2930 said:
Hello,
I have an idea to make an App, and I have one problem, I have to upload one folder that its content have a lot of files and folders in order to upload to skydrive. I think that it is more easy if I compress the main folder and then upload this compressed file. How Can I compress this folder?
Thanks you
Click to expand...
Click to collapse
have you tried zip...
dazza9075 said:
have you tried zip...
Click to expand...
Click to collapse
Hi dazza9075,
Thanks by your answer, but I thought the same, but I don't know how to use this, Can you explain about use of zip? Or, Where can I find information about this?
Thank you again
cansado2930 said:
Hi dazza9075,
Thanks by your answer, but I thought the same, but I don't know how to use this, Can you explain about use of zip? Or, Where can I find information about this?
Thank you again
Click to expand...
Click to collapse
+1 for the idea... I also want a program like winrar which also available in symbian phones.plz any dev note this and develop an app for compressing and decompressing files...
WP will unzip zip files, make the sip, copy to sky drive, open via IE, it will then give you the contents of the zip,, it can't compress files to zip though. Technically there would be little point since docs auto sync to sky drive, and WP doesnt support anything else or file system access, but its doable for unlocked devices I suppose
Sent from my SGH-i937 using XDA Windows Phone 7 App
dazza9075 said:
WP will unzip zip files, make the sip, copy to sky drive, open via IE, it will then give you the contents of the zip,, it can't compress files to zip though. Technically there would be little point since docs auto sync to sky drive, and WP doesnt support anything else or file system access, but its doable for unlocked devices I suppose
Sent from my SGH-i937 using XDA Windows Phone 7 App
Click to expand...
Click to collapse
Hi dazza9075,
Thank you by answer, I had thought that it isn't possible, because I want to compress a folder of other app that her content are a lot of files and folders. So, Do some api exist in order to compress this? Or, Have I upload files and folders one by one?
Thank you again
I think it's completely possible
sombody names Ego zheng,wrote an application. It is program manager.
u can repack your apps,and save apps data in a single .zip file.
i think he can do this
contact him for this idea.
Leo_zodiac said:
I think it's completely possible
sombody names Ego zheng,wrote an application. It is program manager.
u can repack your apps,and save apps data in a single .zip file.
i think he can do this
contact him for this idea.
Click to expand...
Click to collapse
its doable so long as you have interop unlock and WP tools installed and setup
if the Windows Phone SDK is missing Zip functionality (it may be called "DEFLATE" which is the name of the compression algorithm; ZIP is the file format) then there are surely libraries for various compression methods which you could download. Alternatively, if you don't mind using native code homebrew, there are compression libraries (zlib, etc.) that can be compiled to a native DLL, and you could then access them via COM.
i add this to new version of my file manager and now you can compress and decompress file and folders
Hi!
Thanks you by your answer, they have been very useful.
Thanks you
Hi again,
I'm using the lib "SharpZipLib" and I have problems with it. Can you explain how use it? or what is the problema? I probe in a program of pc and it working correctly but in app for my mobile say it crashed when it go to create the file, this is code:
FileStream fsOut = File.Create("Copia.zip"); //here is the problema at this moment
ZipOutputStream zipStream = new ZipOutputStream(fsOut);
zipStream.SetLevel(3);
zipStream.Password = null;
........
It can't create the file.
Thank you again
Generally speaking, Silverlight (which WP7 uses for apps) doesn't even allow normal file access, so you might just be getting a MethodAccessException on File.Create. If not, that still won't work without elevated privileges. The default working directory for a program is it's install directory. For a WP7 app, that's going to be either its install location (\Applications\Install\<GUID>\Install) or the Windows directory where the taskhost.exe file lives (\Windows\). Trying to create a file without specifying full path will crete it relative to the working directory, which in this case means creating it in the working directory directly (no path specified). Since the app can't write to the working directory, you'll get an error from that too.
To get around the permissions error, use the IsolatedStore folder (\Applications\Data\<GUID>\Data\IsolatedStore\) or run the app with full permissions ("Trusted" or root unlocked).

Categories

Resources