It is currently Sat Apr 21, 2018 3:56 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: PureVALID library : check an EXE integrity at runtime
PostPosted: Thu Mar 11, 2004 10:44 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4229
Location: Strasbourg / France
PureVALID library

What for ?

PureValid is a library with one function : PureValid_CheckFile(Key.s)

It is intended to check an EXE integrity at runtime, by calculating a fingerprint and comparing it to a validation info located at the end of the EXE.
This validation info is generated by PureValid.exe (included) or PureUPX.

How ?

1. In your application YourApp.pb, only add one line :

  PureValid_CheckFile("YourEncryptionKey")
   or
   Valid = PureValid_CheckFile("YourEncryptionKey")
   ; Valid = 1 if EXE is valid,
   ; 0 if EXE is corrupt (program stops)

2. Compile your application as usual

3. Validate your application with PureValid.exe :

   PureValid YourApp.exe "YourEncryptionKey"

4. It's done. Now if something / someone changes your application, it does not run anymore. Try to change it's name or patch it, and see the result.

Note (1): you can also use PureUPX to validate your application after compressing (+/- scrambling). If the PureValid library is installed, you will see an extra PureValid section when you start PureUPX.

Note (2): it's only an integrity check, without any anti-debugging tricks, so it's a very lame protection against hackers...


Download library:
Only available for Purebasic Windows x86
PB3.94 : http://gnozal.ucoz.com/PureValid.zip
PB4.00-4.10 : http://gnozal.ucoz.com/PureValid_.zip
PB4.20 : http://gnozal.ucoz.com/PureValid___.zip
PB4.3x : http://gnozal.ucoz.com/PureValid_430.zip
PB4.4x : http://gnozal.ucoz.com/PureValid_440.zip
PB4.5x : http://gnozal.ucoz.com/PureValid_450.zip
PB4.6x : http://gnozal.ucoz.com/PureValid_460.zip
PB5.0x : http://gnozal.ucoz.com/PureValid_500.zip

PureUPX :
http://gnozal.ucoz.com/PureUPX.zip
(see http://forums.purebasic.com/english/vie ... php?t=9030)

Other libs and tools at http://gnozal.ucoz.com/


Last edited by gnozal on Tue Aug 18, 2009 11:54 am, edited 11 times in total.

Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Apr 19, 2004 7:43 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4229
Location: Strasbourg / France
Update

What's new : works with PB3.90

(see first post of thread)


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Oct 28, 2004 7:55 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4229
Location: Strasbourg / France
Update

Changed dynamic array to static array to work with PB3.92


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Nov 15, 2004 11:25 pm 
Offline
Addict
Addict
User avatar

Joined: Fri Feb 13, 2004 12:45 am
Posts: 2769
Location: Bergen, Norway
Cool, great addition to my lib arsenal ;)

_________________
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Nov 16, 2004 1:17 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jun 29, 2003 7:32 pm
Posts: 166
Location: Canada
Thanks gnozal!

It would be nice if the help file was a .chm so that Pure Basic would link to it in the IDE... :)


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Nov 27, 2004 11:13 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4229
Location: Strasbourg / France
griz wrote:
It would be nice if the help file was a .chm so that Pure Basic would link to it in the IDE... :)


Well, yes, but the HTML help files work great with jaPBe !


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Oct 23, 2007 8:58 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4229
Location: Strasbourg / France
Update

Changes :
- added threadsafe version [PB4]
- updated help file

_________________
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Oct 23, 2007 1:58 pm 
Offline
Enthusiast
Enthusiast

Joined: Fri May 21, 2004 3:31 pm
Posts: 167
Hi Gnozal,

if I'm use purevalid_check on me program is possible to check the integrity of the file (on the disk) or is possible to create a thread that check all "x second" if the loaded-file in memory integer?

sorry for me english, I hope you understand what I mean.

Thanks
jpd


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Oct 23, 2007 2:14 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4229
Location: Strasbourg / France
jpd wrote:
Hi Gnozal,
if I'm use purevalid_check on me program is possible to check the integrity of the file (on the disk) or is possible to create a thread that check all "x second" if the loaded-file in memory integer?
sorry for me english, I hope you understand what I mean.

PureVALID checks the EXE integrity (on the disk) by calculating a fingerprint and comparing it to a validation info located at the end of the EXE. It does not check the memory.
You can call the function PureValid_CheckFile() whenever you want.

_________________
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Oct 23, 2007 2:19 pm 
Offline
Enthusiast
Enthusiast

Joined: Fri May 21, 2004 3:31 pm
Posts: 167
Ok,

Thanks Gnozal,


and Thanks for all your nice libraries!

Best
jpd


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Oct 23, 2007 3:03 pm 
I appreciate the 3.94 support, as I am still using it for most stuff :wink:


Top
  
Reply with quote  
 Post subject:
PostPosted: Thu May 22, 2008 1:15 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4229
Location: Strasbourg / France
Update

(PB 4.2x version only)

Changes :
- recompiled with PB 4.20 final and latest tailbite

< EDIT JUN 6 2008 >

_________________
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Oct 14, 2008 7:23 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Oct 20, 2004 7:16 pm
Posts: 238
Location: The Village
Hello,

It doesn't work on PB 4.30... missing string-extention. :?

Thank you for this lib.

_________________
Be seeing you! :-)

Gansta93
If you speak french, you can visite Le Monde de Gansta93 (Gansta93's World)


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Oct 15, 2008 7:41 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4229
Location: Strasbourg / France
Gansta93 wrote:
It doesn't work on PB 4.30... missing string-extention. :?
http://www.purebasic.fr/english/viewtopic.php?t=34534

_________________
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).


Top
 Profile  
Reply with quote  
 Post subject: PureValid_500.zip missing...
PostPosted: Thu Nov 08, 2012 2:19 am 
Offline
Enthusiast
Enthusiast

Joined: Wed Aug 18, 2004 9:52 am
Posts: 422
Location: Penang, Malaysia
http://gnozal.ucoz.com/PureValid_500.zip produces error 404... :(


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye