Since I found the method for JavaScript decryption on the Internet last time, I encountered several times of JavaScript code obfuscation in the middle. Although it is not difficult to manually restore the code, however, it is more convenient to use tools. So I spent some time writing a restoration tool with Delphi.
When using Delphi for web crawler, you may encounter a problem: the key code of a website is in the script, and the Web code captured with wininet cannot obtain enough information. If you use Delphi to analyze the JS script after capturing it, it is too troublesome. It is the best way to obtain the result after the script is executed.
To solve the problem of connecting to the ADO database in the thread, the "coinitialize not called" still exists, or it is changed to manual call: coinitialize is called when the thread is created, and couninitialize is called when the thread is destroyed. After this problem is solved, test again and find that there will still be errors after multiple threads. The error recorded based on the debug log is "missing connection or connectionstring ".