New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
deepred
Old
#1  
Junior Member - OP
Thanks Meter 2
Posts: 7
Join Date: Jan 2006
Talking delcert - Sign strip tool

Hi,

here is a small tool that strips (removes) digital sign (Authenticode) from PE executable files like *.exe, *.dll, *.mui, etc. On error HRESULT is returned, i.e. 0x00000005 means that file is readonly.
Code:
C:\[snip]>delcert.exe OEM\OEMOpera\OperaWM.exe

Target file(s): OEM\OEMOpera\OperaWM.exe

Stripping file: C:\[snip]\OEM\OEMOpera\OperaWM.exe.
Succeeded.

C:\[snip]>delcert.exe OEM\OEM_Lang_0409\*.mui

Target file(s): OEM_Lang_0409\*.mui

Stripping file: C:\[snip]\OEM\OEM_Lang_0409\aboutprop.dll.0409.mui.
Succeeded.

Stripping file: C:\[snip]\OEM\OEM_Lang_0409\BKLBrightness.dll.0409.mui.
Succeeded.
Source is included. You may need to install Visual Studio 2008 C++ Runtime before running.
Attached Files
File Type: zip delcert.zip - [Click for QR Code] (10.2 KB, 1402 views)
The Following 2 Users Say Thank You to deepred For This Useful Post: [ Click to Expand ]
 
Da_G
Old
#2  
Da_G's Avatar
Senior Mod/ Elite Recognized Developer
Thanks Meter 1293
Posts: 3,234
Join Date: Aug 2007
Location: Riverside, CA

 
DONATE TO ME
I can't believe no one posted thanks for this :P I just used it recently and it worked a charm! So, thanks! Appreciate your work.
Support my work! The more phones I can get my hands on the more ROM goodness I can churn out. Like BUTTAH

 
cmylxgo
Old
#3  
cmylxgo's Avatar
Senior Member
Thanks Meter 1533
Posts: 1,444
Join Date: Feb 2007
Quote:
Originally Posted by deepred View Post
Hi,

here is a small tool that strips (removes) digital sign (Authenticode) from PE executable files like *.exe, *.dll, *.mui, etc. On error HRESULT is returned, i.e. 0x00000005 means that file is readonly.
Code:
C:\[snip]>delcert.exe OEM\OEMOpera\OperaWM.exe

Target file(s): OEM\OEMOpera\OperaWM.exe

Stripping file: C:\[snip]\OEM\OEMOpera\OperaWM.exe.
Succeeded.

C:\[snip]>delcert.exe OEM\OEM_Lang_0409\*.mui

Target file(s): OEM_Lang_0409\*.mui

Stripping file: C:\[snip]\OEM\OEM_Lang_0409\aboutprop.dll.0409.mui.
Succeeded.

Stripping file: C:\[snip]\OEM\OEM_Lang_0409\BKLBrightness.dll.0409.mui.
Succeeded.
Source is included. You may need to install Visual Studio 2008 C++ Runtime before running.
Thanks for this...it fixed and issue I had when trying to remove a cert with another tool.
 
chetstriker
Old
#4  
Senior Member
Thanks Meter 76
Posts: 558
Join Date: Mar 2008
Location: Brattleboro, VT

 
DONATE TO ME
This sounds really interesting, however I was wondering what it can be used for? the certificates usully just provide authentication. Can this be used to bypass protection methods, or what are some real world examples of usage?
 
deepred
Old
#5  
Junior Member - OP
Thanks Meter 2
Posts: 7
Join Date: Jan 2006
You're right, authenticode provides input data for Windows Mobile (originally Windows CE) policy mechanism which decides then if it is allowed to run the file or not. I used it to strip authenticode from OEM files taken from HTC devices before signing them with my own certificate (I usually sign files in my cooked ROMs). I.e. if file is already signed you can't sign it with another certificate until old one is removed.
Due to the fact that certificates are asymmetric you can sign files only with private certificates. That's why I use my own certificates.
To bypass the protection you need to get some how the private part and sign you file with it. Or you can just disable the security policy that enforces file origin check.
 
ute_arbeit
Old
#6  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Oct 2010
Thanks a lot for your work! Your neat little tool is just what I was looking for to be able to sign a Flash projector with my own certificate.
 
researchermd
Old
#7  
Member
Thanks Meter 0
Posts: 34
Join Date: Aug 2006
Default Thanks

Works beautifully when other tools didn't.
 
WarlockW
Old
#8  
WarlockW's Avatar
Recognized Contributor
Thanks Meter 514
Posts: 1,153
Join Date: Dec 2007
Location: Minnesota
Red face Works beautifully when other tools didn't ! Is Right !

Works beautifully when other tools didn't ! Is Right !

Worked Great Thanks - Just What I was Looking For !!!!!



XDA PORTAL POSTS

Avoid Framework Bootloops on Xperias Running Jelly Bean

If you’re a Sony device owner running a stock Android Jelly Bean firmware and … more

Forum Added for the Samsung Galaxy Mega

What do you do when the Galaxy Note line is simply not big enough? You get theSamsung Galaxy Mega. … more

Voice Control Your Phone with Tasker and AutoVoice – XDA Developer TV

XDA Developer TV Producer Kevin set up his phone to respond to … more

Guide to Take Better Control of Your Volume Levels

Would you like to know one of the things that really annoys me on a daily basis? Tough, … more