Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

This tiny project prevents the signtool from verifing cert time validity and let you sign your bin with outdated cert without changing system time manually

License

Notifications You must be signed in to change notification settings

hzqst/FuckCertVerifyTimeValidity

Repository files navigation

FuckCertVerifyTimeValidity

This tiny project prevents the signtool from verifing cert time validity and let you sign your bin with outdated cert without changing system time manually

What it does

it install hook into crypt32!CertVerifyTimeValidity and make it always return 0. and make kernel32!GetLocalTime return what you want as you can add "-fuckyear 2011" to signtool's commandline to sign a cert from year 2011.

Build

Visual Studio 2015 / 2017, you know how to build.

Installation

Use LordPE to add an import entry FuckCertVerifyTimeValidity.dll!test for signtool/DSignTool/CSignTool.

Reference

https://github.com/Microsoft/Detours is used to hook system apis

About

This tiny project prevents the signtool from verifing cert time validity and let you sign your bin with outdated cert without changing system time manually

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages