Page 1 of 1

MarkersCheckProtection error on VB example

Posted: Thu Nov 07, 2013 11:13 pm
by Amer
Hi,
while testing enigma protector i have error on log window (Markers error):

Code: Select all

[12:37:08 AM] Loading project settings...
[12:37:08 AM] Loading main information
[12:37:08 AM] Loading Registration Features - Registration Data Storage
[12:37:08 AM] Loading Registration Features - Common
[12:37:08 AM] Loading Registration Features - Registration Dialog
[12:37:08 AM] Loading Registration Features - Key Expiration Reminder
[12:37:08 AM] Loading Checkup
[12:37:08 AM] Loading Checkup - Anti Debugger
[12:37:08 AM] Loading Checkup - Control Sum
[12:37:08 AM] Loading Checkup - Startup Password
[12:37:08 AM] Loading Checkup - File Name
[12:37:08 AM] Loading Checkup - Disk Drive
[12:37:08 AM] Loading Checkup - Executed Copies
[12:37:08 AM] Loading Checkup - User Language
[12:37:08 AM] Loading Checkup - External Files
[12:37:08 AM] Loading Checkup - Executed Processes
[12:37:08 AM] Loading Checkup - Loaded Drivers
[12:37:08 AM] Loading Checkup - Installed Services
[12:37:08 AM] Loading Checkup - Windows Version
[12:37:08 AM] Loading Checkup - Virtualization Tools
[12:37:08 AM] Loading Checkup - Privileges
[12:37:08 AM] Loading Protection
[12:37:08 AM] Loading Protection - Protected Strings
[12:37:08 AM] Loading Protection - Resources Protection
[12:37:08 AM] Loading Miscellaneous
[12:37:08 AM] Loading Miscellaneous - Splash Screen
[12:37:08 AM] Loading Miscellaneous - Watermark
[12:37:08 AM] Loading Miscellaneous - Plugins
[12:37:08 AM] Loading Miscellaneous - Custom VERSION Resource
[12:37:08 AM] Loading Miscellaneous - Custom MANIFEST Resource
[12:37:08 AM] Loading Miscellaneous - Command Line
[12:37:08 AM] Loading Protection - Environment Variables
[12:37:08 AM] Loading Miscellaneous - Other
[12:37:08 AM] Loading Virtual Machine
[12:37:08 AM] Loading Trial Control
[12:37:08 AM] Loading Trial Control - Common
[12:37:08 AM] Loading Trial Control - Lock Trial to User Language
[12:37:08 AM] Loading Trial Control - Limitation by Executions Count
[12:37:08 AM] Loading Trial Control - Limitation by Days Count
[12:37:08 AM] Loading Trial Control - Limitation by Expiration Date
[12:37:08 AM] Loading Trial Control - Limitation from Date till Date
[12:37:08 AM] Loading Trial Control - Limitation of Execution Time
[12:37:08 AM] Loading Trial Control - Reminder
[12:37:08 AM] Loading Trial Control - Time Control
[12:37:08 AM] Loading Protection - Trial Data Storing
[12:37:08 AM] Loading VirtualBox
[12:37:08 AM] Loading VirtualBox - Files
[12:37:08 AM] Loading VirtualBox - Registry
[12:37:08 AM] Loading VirtualBox - Packaging
[12:37:08 AM] Loading VirtualBox - Options
[12:37:08 AM] Protect file: test.exe
[12:37:10 AM] Protection started ...
[12:37:10 AM] Input file size = 20480 bytes
[12:37:10 AM] Detect compiler : Visual Basic
[12:37:10 AM] File entropy : 5.09
[12:37:47 AM] Search markers...
[12:37:47 AM] Marker found: check_protection_begin, virtual address: 0x00401CAA
[12:37:47 AM] WARNING: Marker check_protection_begin contains initialization data, application may crash
[12:37:47 AM] Marker found: check_protection_begin, virtual address: 0x00401CE3
[12:37:47 AM] WARNING: Marker check_protection_begin contains initialization data, application may crash
[12:37:47 AM] Marker found: check_protection_end, virtual address: 0x00401DAE
[12:37:47 AM] Marker found: check_protection_end, virtual address: 0x00401DCB
[12:37:47 AM] WARNING: Marker check_protection_end contains initialization data, application may crash
[12:37:47 AM] Markers error: the marker check_protection_begin can't be placed into check_protection_begin marker! All data will be ignored
[12:37:47 AM] Compress section :
[12:37:47 AM]  - ".text", size 8192 bytes ... 
[12:37:48 AM] done, new size 4096 bytes
[12:37:48 AM]  - ".data", size 4096 bytes ... 
[12:37:48 AM] done, new size 0 bytes
[12:37:48 AM]  - ".rsrc", size 4096 bytes ... 
[12:37:48 AM] done, new size 0 bytes
[12:37:56 AM] All completed, new file size = 1069056 bytes, ratio 5220.00%
[12:37:56 AM] WARNING: You are using registration constants from default project
[12:37:56 AM] WARNING: It is strongly recommended to create new project firstly!
[12:37:56 AM] NOTE: It is recommended to enable the option Checkup - Control Sum - File Integrity Checking to avoid changing of protected file.
[12:37:56 AM] File successfully protected: test_protected.exe
VB 6 Code Here:

Code: Select all

VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   1875
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   6405
   LinkTopic       =   "Form1"
   ScaleHeight     =   1875
   ScaleWidth      =   6405
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton Command1 
      Caption         =   "Execute ""Check Protection"" marker"
      Height          =   375
      Left            =   1440
      TabIndex        =   0
      Top             =   1200
      Width           =   3615
   End
   Begin VB.Label Label1 
      Caption         =   "The example shows how to work Check Protection marker. Click ""Execute marker"" button to executed the code insode the marker"
      Height          =   735
      Left            =   120
      TabIndex        =   1
      Top             =   120
      Width           =   6135
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
  Call VarPtr("CHECK_PROTECTION_BEGIN")
  MsgBox VarPtr("CHECK_PROTECTION_BEGIN")
  MsgBox "This message box is shown inside Check Protection marker! The protection is OK!"
  Call VarPtr("CHECK_PROTECTION_END")
  MsgBox VarPtr("CHECK_PROTECTION_END")
End Sub

Re: MarkersCheckProtection error on VB example

Posted: Fri Nov 08, 2013 5:30 am
by Enigma
Hi Amer,

This is not an error but a warning message. It expects that you should test protected application very carefully, because there had been found some "illegal" data inside the markers. This problem is specific to Visual Basic applications only.

But the bets solution in this case would be replacing CheckProtection markers with VM Markers. Soon we plan to deprecate CheckProtection markers at all.