Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 05-03-2018, 03:32
Turkuaz Turkuaz is offline
Family
 
Join Date: Sep 2017
Posts: 161
Rept. Given: 3
Rept. Rcvd 7 Times in 4 Posts
Thanks Given: 39
Thanks Rcvd at 136 Times in 49 Posts
Turkuaz Reputation: 7
Question: Using dongle emulator for new version of a programme with cert files

Hi all,
I have a programme (ver 6) and hasp hl emulator for it.
I want to use my emulator for ver 7 too, but it says "No V7 Cert".
There are 2 binary files with pcert and scert extensions inside Certs directory.
User manual says dongle for old version can be used with suitable cert files. When I stop dongle emulator service it gives no dongle error, this means dongle emulator is accepted. But cert files must be updated.


I have some degree of reverse engineering knowledge and experience but very little with programmes which use certificates.

The programme is packed but I unpacked it manually, it runs properly now.

I guess the cert files contain some data encrypted with a private key. And these information is decrypted with a public key and checked by the programme . So I think i must extract these datas and modify accordingly for new version. Then produce my public/private key pairs in order to encrypt modified data, and replace the original public key with mine.

My question is how to find public key and decrypted data? Any advice or hints which can help me?

Thanks in advance
Reply With Quote
  #2  
Old 05-03-2018, 17:06
Syoma Syoma is offline
reverse engineer
 
Join Date: May 2009
Posts: 338
Rept. Given: 35
Rept. Rcvd 77 Times in 50 Posts
Thanks Given: 15
Thanks Rcvd at 78 Times in 51 Posts
Syoma Reputation: 77
If you unpacked the program find the cryptographic subroutines and follow by xrefs to keys initialization.
Reply With Quote
  #3  
Old 05-04-2018, 00:42
Turkuaz Turkuaz is offline
Family
 
Join Date: Sep 2017
Posts: 161
Rept. Given: 3
Rept. Rcvd 7 Times in 4 Posts
Thanks Given: 39
Thanks Rcvd at 136 Times in 49 Posts
Turkuaz Reputation: 7
Quote:
Originally Posted by Syoma View Post
If you unpacked the program find the and follow by xrefs to keys initialization.
Thanks, do you have any hints or advice to find cryptographic subroutines? Sorry for asking but i am novice when it comes to cryptography? But i ll learn certainly.
Reply With Quote
  #4  
Old 05-04-2018, 01:18
TechLord TechLord is offline
Banned User
 
Join Date: Mar 2005
Location: 10 Steps Ahead of You
Posts: 761
Rept. Given: 384
Rept. Rcvd 247 Times in 112 Posts
Thanks Given: 789
Thanks Rcvd at 2,022 Times in 571 Posts
TechLord Reputation: 200-299 TechLord Reputation: 200-299 TechLord Reputation: 200-299
Quote:
Originally Posted by Turkuaz View Post
Thanks, do you have any hints or advice to find cryptographic subroutines? Sorry for asking but i am novice when it comes to cryptography? But i ll learn certainly.
To find cryptographic subroutines per se, the CC tool found in this thread is excellent.

You can find a MEGA download link in the last post there.

The above tool will help if you want to quickly scan for any cryptographic routines in the code.

However if the crypto is a part of the dongle protection code itself, then, while this tool can discover the crypto, it's not that easy to solve it without having a good knowledge of that dongle's protection itself (from the SDK, among other things, for example)
Reply With Quote
The Following 2 Users Say Thank You to TechLord For This Useful Post:
tonyweb (05-04-2018), Turkuaz (05-04-2018)
  #5  
Old 05-04-2018, 02:41
Turkuaz Turkuaz is offline
Family
 
Join Date: Sep 2017
Posts: 161
Rept. Given: 3
Rept. Rcvd 7 Times in 4 Posts
Thanks Given: 39
Thanks Rcvd at 136 Times in 49 Posts
Turkuaz Reputation: 7
Quote:
Originally Posted by TechLord View Post
To find cryptographic subroutines per se, the CC tool found in this thread is excellent.

You can find a MEGA download link in the last post there.

The above tool will help if you want to quickly scan for any cryptographic routines in the code.

However if the crypto is a part of the dongle protection code itself, then, while this tool can discover the crypto, it's not that easy to solve it without having a good knowledge of that dongle's protection itself (from the SDK, among other things, for example)
Thanks for cc. I am using it now.

I analysed the loaded modules. I think these are crypto related ones.
cryptsp.dll, rsaenh.dll, EvCrypt.dll and enhkey.dll

EvCrypt.dll is from www.cryptsoft.com and enhkey.dll is for hasp dongle.
I am trying to understand role of EvCrypt.dll. Any hints?
Reply With Quote
  #6  
Old 05-04-2018, 03:08
TechLord TechLord is offline
Banned User
 
Join Date: Mar 2005
Location: 10 Steps Ahead of You
Posts: 761
Rept. Given: 384
Rept. Rcvd 247 Times in 112 Posts
Thanks Given: 789
Thanks Rcvd at 2,022 Times in 571 Posts
TechLord Reputation: 200-299 TechLord Reputation: 200-299 TechLord Reputation: 200-299
Quote:
Originally Posted by Turkuaz View Post
Thanks for cc. I am using it now.

I analysed the loaded modules. I think these are crypto related ones.
cryptsp.dll, rsaenh.dll, EvCrypt.dll and enhkey.dll

EvCrypt.dll is from www.cryptsoft.com and enhkey.dll is for hasp dongle.
I am trying to understand role of EvCrypt.dll. Any hints?
Cryptosoft ?

Well theres's a wealth of info on their page

You may want to go through the various datasheets to get a preliminary idea as to what features could have been used in your target.

Don't forget the "Additional Resources" section at the end. Contains a lot of useful info reg what's available in their software.

By the way, this sort of a thread should be opened in the "Dongle" sub-section and not in the "General Discussion" section of the forum which is visible to everyone on the internet.

Maybe the mods could move this thread over ?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CX24142 emulator/emulation Question lonewolf55 General Discussion 0 09-17-2006 04:01
Par files question Rhodium General Discussion 2 12-21-2003 04:35


All times are GMT +8. The time now is 07:57.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( 1998 - 2024 )