How to unsign code? - Windows Mobile Development and Hacking General

Does anybody have a tool to strip out certificates from exe or dll?
As I can understand this: http://drewthesecuritygeek.blogspot.com/2006/09/fixing-problem-that-devdiv-has-with.html - it is not so easy.
Can anybody help?

Related

D9 - error in program ?

Hi
I have just downloaded the 3.17 modified rom from Jeff's kitchen and using the installer file had it successfully installed into my xda. Firstly- thanks to all xda developers and Jeff for an excellent piece of work.
Only one question though- the D9 (single handed dialer program) don't seem to work- when I tap on it at the launcher, phone folder and even the entry in the windows folder, it showed a message:
"Application error- Cannot find extension file pvbDecl.dll Please run setup to restore the file ".
I tried cold booting a few times and the same thing happens.
Is there something I should do to get it running or do I need to redownload the exe file from Jeff's kitchen?
Hope someone could kindly help.
Thanks
Vic
Looks like a problem with that installation, no point in redownloading. Probably if you create a ROM that has PocketCHAT also, all will be well.
Hi XDA Developer,
Thanks for quick reply. Interestingly, I have included the Pocket Chat software in the rom and now that you mentioned it, I tried clicking on it and the same message comes out; asking for the same file pvbDecl.dll and suggesting to run setup again.
Any clues how to work this out?
Cheers
Vic
its a VB app so it needs that dll file. xda-developers just add the file to the package
alex
Hi Alex,
Could you please elaborate a little bit more on what you described?
Where do I get the dll file?
Cheers
Vic
pvbDecl.dll is a part of VB runtime libraries. here is more info and fix http://www.creativelogichome.com/gen_faq.htm
alex
pvbDecl.dll is a part of VB runtime libraries. here is more info and fix http://www.creativelogichome.com/gen_faq.htm
Click to expand...
Click to collapse
But that page just tells you 're-install' the software causing the problem. It looks like the vb dll wasn't included in the ROM build. I've just used Jeff's ROM kitchen and am getting the same error.
Anyone actually found a copy of the dll and knows 'where to stick it' ??
Fuzzy

Instruction on how to generate working .reg files on WM5 ?

Hello,
can anyone tell me if there a good instruction somewhere about producing an executable .reg file for the WM5 platform (Qtek 9000 PPC as well as Qtek 8300 Smartphone) ?
It should contain modifications to the registry which should be applied upon exectuting this file.
(With thge help of a second such file I'd like to reset the initial reg values back.)
Thanks in advance.
well
just look inside a .reg file with notepad.
example:
[HKEY_CLASSES_ROOT]
[HKEY_CLASSES_ROOT\.2bp]
"Content Type"="image/bmp"
"Default"="bmpimage"
"PerceivedType"="image"
[HKEY_CLASSES_ROOT\.3gp]
"Default"="3gpfile"
that's it...
im sure u understood what should be done...
To make it executable you need to write a custom app or import the reg settings into a cab and load the cab.
V
How do i make a .reg file delete a value in the registry ??
I think you insert a - before the key
I'll have to google to confirm, but I'm cooking right now
V
vijay555 said:
To make it executable you need to write a custom app or import the reg settings into a cab and load the cab.
V
Click to expand...
Click to collapse
Thanks to all !
Yes, just this would be my prime question:
Is there any documentation on how to make it executable by "transforming it into a cab file" ?

Sign Dll digitally with certificate.

Hello I have a problem, I have tried to modify a dll file located in the window folder wich is controlling part of the phone skin on a Artemis. (phcanOverbmp.dll)
The problem is that the phone dosen't recognize the altered Dll file becuase the certificate changes when you alter the file.
How do I solve this?? I have tried to create my own certificate, but Aretemis dosen't except it. and I haven't been able to sign the Dll with anyone of the existing Root certificate already installed in the Artemis. How do you work around this problem??
Both create/install a certificate, and how to sign the Dll
I really need help, Thank you
i have the same problem
if anyone have some advice, just tell for us
You can not edit or change a signed DLL in any way. Once you do the signature is broken and the file becomes unusable, you can not resign it.
You have to remove the certificate first, then make your changes.
I saw a code for this somewhere but I don't remember the link.
Look around, there may be a utility to do this.
In your case resigning may not even be necessary.
levenum said:
You can not edit or change a signed DLL in any way. Once you do the signature is broken and the file becomes unusable, you can not resign it.
You have to remove the certificate first, then make your changes.
I saw a code for this somewhere but I don't remember the link.
Look around, there may be a utility to do this.
In your case resigning may not even be necessary.
Click to expand...
Click to collapse
in my case it is necessary, otherwise the phone will not recognize the dll and display the WM5 original skin. I know you can't resign the DLL with their certificate, but i know that you can add your own root certificat in the phone. And then you must sign the DLL with that certificate, (wich is our own certificate) so the phone recignizes it. Then it shall work. I just don't know how to do it.
Thats relatively easy. All you have to do is create a provisioning XML and put it in a CAB. The WM 5 SDK has a sample.
Here is a link to a sample as well.
By the way if this is considered a system file (I am not sure about that) it needs a trusted, not root certificate.

setup.dll in cab file for soft reset after install

I made a cab file with all my reg tweaks, and after installing I need to soft reset manually for applying the changes.
I want that immediately after installing this cab, I will be prompt to preform a soft reset.
so I probably need to add a setup.dll, but I have no idea how to make one
can you guys help me?
Hi! I made a setup.dll of my existing softreset code. Enjoy...
http://www.shubaroo.com/index.php?module=setupdll
Ø
t0flus said:
Hi! I made a setup.dll of my existing softreset code. Enjoy...
http://www.shubaroo.com/index.php?module=setupdll
Ø
Click to expand...
Click to collapse
Dude you rock! thank you! work like a charm, I own you one
Can someone tell me if there is a tool for making/editing setup.dll ?
Yes, there are such tools:
Creating: embedded visual C++ / Visual Studio 2005
Editing: IDA
Please note that unless you can program in C++ or read assembler those tools are useless to you.
debuging/tracing
I am sorry to bring back this old thread..
I wonder if there is a way to debug setup.dll with IDA since its inside the cab file..
I need this because I want to patch the setup.dll to not to check for OS version befor allowing to install.. so I need to know the code resposible for that.
any help would be appreciated
Are you sure that the OS checking is included in the Setup.dll? There is a built in feature for this in the cab file....

Dependency walker for WM6

Hello experts
Does anybody know of any dependencywalker kinda tool whcih can be executed in WM6 to find the missing dependency dlls of an exe. I am getting a missing dependency file error while loading my application.
thanks in advance
mil1o

Categories

Resources