Discussion of article "Securing MQL5 code: Password Protection, Key Generators, Time-limits, Remote Licenses and Advanced EA License Key Encryption Techniques" - page 4

 
mt4 version please
 

Based on what is discussed here, more so by Peter Maxwell and if i understand clearly. Does it mean we should have less confidence in Mql5 Cloud Protector ?

Thought files compiled this way were unbreakable.

Distributed Computing in the MQL5 Cloud Network
Distributed Computing in the MQL5 Cloud Network
  • cloud.mql5.com
Today's computers spend most of their time idle and do not use all the features of their CPU. Now you can benefit from the spare power of your PC. You can sell your computer's CPU time to other members of our network community for a variety of tasks like optimizing Expert Advisors optimization or developing mathematical models. Join the MQL5...
 

When compiling I don't get errors, but they don't work either, or I don't see them working, I'm using the"account licenses" and the "Time Limit".

Does anyone know why they don't run?


Do you have to create it as Script, EA, ...?


I use it in MT5


Best regards

 
Luis Alonso Velasquez Claros:

When compiling I don't get errors, but they don't work either, or I don't see them working, I'm using the"account licenses" and the "Time Limit".

Does anyone know why they don't run


Do you have to create it as Script, EA, ...?


I use it in MT5


Best regards

Hello.


I used the time limit one as an EA.

I had no problems with the code as written. I set the deadline for use as 3/Jan/2020. I tested it in backtesting (visual mode) from 1/Jan/2020 and when the date arrived it immediately threw the messages that my time had expired. If you want the code to terminate or stop working, it requires that, instead of just sending you a message when the condition is met, the program stops working.


The code as it is presented, all it does is warn you when the time has expired.


Regards!!!!

 

Do these code snippets also work for mt4? Do you have a video where you can visually explain how to set up an expert advisor?

Greetings.

 

Hi

I was reading the great article, when I saw the encryption section (section 6), I thought it would be nice if someone provide a php version instead of python, many webhosting services don't support php and python side by side. Please if anyone has the knowledge, would be nice to have the server side as php instead of python (with connection and query to the database)

 
The code has the following problem (see copied error messages) :


2022.11.08 16:45:10.288    RemoteProtectedEABase64 (GER40,D1)    Access violation at 0x00007FFEF4FAEC04 read to 0x0000022400000000 in 'wininet.dll'
2022.11.08 16:45:10.289    RemoteProtectedEABase64 (GER40,D1)       crash -->  00007FFEF4FAEC04 4C3929            cmp        [rcx], r13
2022.11.08 16:45:10.289    RemoteProtectedEABase64 (GER40,D1)                  00007FFEF4FAEC07 0F85C7020000      jnz        dword 0x7ffef4faeed4
2022.11.08 16:45:10.289    RemoteProtectedEABase64 (GER40,D1)    
2022.11.08 16:45:10.289    RemoteProtectedEABase64 (GER40,D1)                  00007FFEF4FAEC0D 488B0DDC983D00    mov        rcx, [rip+0x3d98dc]
2022.11.08 16:45:10.289    RemoteProtectedEABase64 (GER40,D1)                  00007FFEF4FAEC14 8D4301            lea        eax, [rbx+0x1]
2022.11.08 16:45:10.289    RemoteProtectedEABase64 (GER40,D1)                  00007FFEF4FAEC17 440FB7E0          movzx      r12d, ax
2022.11.08 16:45:10.289    RemoteProtectedEABase64 (GER40,D1)                  00007FFEF4FAEC1B 33D2              xor        edx, edx
2022.11.08 16:45:10.289    RemoteProtectedEABase64 (GER40,D1)                  00007FFEF4FAEC1D 458BC4            mov        r8d, r12d
2022.11.08 16:45:10.289    RemoteProtectedEABase64 (GER40,D1)    
2022.11.08 16:45:10.289    RemoteProtectedEABase64 (GER40,D1)    00: 0x00007FFEF4FAEC04
2022.11.08 16:45:10.289    RemoteProtectedEABase64 (GER40,D1)    01: 0x000002248EA72CFC
2022.11.08 16:45:10.289    RemoteProtectedEABase64 (GER40,D1)    02: 0x0000000000CC0030

How can I solve the problem?

Thanks

 

Despite correctly specifying the CXMLRPCServerProxy, no connection to the server can be established.

In addition, I get the message 3 leaked strings left.

The tested example which brings these errors is RemoteProtectedEABase64.mq5


How can I fix these errors?

 
Is there anything in the logs?
Have you ever tried to go through the programme with the debugger to see where there are problems and how the variables are?
 
Carl Schreiber #:
Is there anything in the logs?
Have you ever tried to go through the programme with the debugger to see where there are problems and how the variables are?

The log gives:

2022.12.14 16:36:20.310 RemoteProtectedEABase64 (FRA40,H1) 3 leaked strings left (warning)
2022.12.14 16:36:29.310 RemoteProtectedEABase64 (FRA40,H1) Licence server not connected. (print)

I cannot find any meaningful messages regarding this in the debug.