Sign in to follow this  
Followers 0
Silverkorn

SQLite.dll UDF included w/ AutoIT3

9 posts in this topic

Hi everyone,

First of all, I think it's my first post in this forum, so I wanted to say a big thanks to the developers and everyone helping by creating new wonderful UDF and for their support!

I just had a little request for the next version:

I've had problems for obfuscating scripts using SQLite.dll UDF included with AutoIt3 full package (including SciTE and Extra tools)

Is it possible to include a fixed version of SQLite.dll.au3 in the latest version?

Fix Reference: http://www.autoitscript.com/forum/index.php?showtopic=87903

Thanks again!

Share this post


Link to post
Share on other sites



So Obfuscator still chokes on line length?

Then either split the lines in the .dll.au3 or FileInstall the actual DLL you need (x86 and/or x64). Use sqlite3.dll v3.6.23.1 and stay away of beta 3.7.0 for production (the new WAL feature will probably make no good to your applications).


This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Share this post


Link to post
Share on other sites

So Obfuscator still chokes on line length?

Then either split the lines in the .dll.au3 or FileInstall the actual DLL you need (x86 and/or x64). Use sqlite3.dll v3.6.23.1 and stay away of beta 3.7.0 for production (the new WAL feature will probably make no good to your applications).

Thanks for the reply jchd,

I'm not feeling that challenged to split it all the way by hand... I've tried it but it's a pain in the neck!

Sorry but I actually prefer to make an all in one .exe without, or less as possible, FileInstall stuffs.

I would be ready to remake it with the MemoryDllGen, which now fits every lign to the maximum lenght for working properly with obfuscator, but I cannot find a precompiled x64 version of the SQLite DLL (I actually need both DLLS to remake the SQLite.dll.au3 file).

Do you know where I could find it?

Thanks in advance ;)

Share this post


Link to post
Share on other sites

I'm not feeling that challenged to split it all the way by hand... I've tried it but it's a pain in the neck!

You can run the dll through my inline creator. (http://www.autoitscript.com/forum/index.php?showtopic=120749)

It was patterned after the technique used for SQLite.dll.au3. If the lines it produces are still too long, you can adjust $blocksize to something smaller.

Share this post


Link to post
Share on other sites

SQLite isn't difficult to compile. I recommend the use of the latest (3.7.3) amalgamation package including the configure and makefile. gcc-ing it is very easy with whatever option you may need but keep away of messing up with build options if you don't really know what you're doing.


This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

@Silverkorn: You can extract the x64-dll from SQLitedll.au3, too ;) (just call the function with a custom path as parameter should work)

Edited by ProgAndy

*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

Share this post


Link to post
Share on other sites

Oops, yes that's correct ProgAndy!

I completely forgot that the 64-bit version was included as well. (I'm still halfway to 64-bit and I use the dll file, not the include.)


This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Share this post


Link to post
Share on other sites

@Silverkorn: You can extract the x64-dll from SQLitedll.au3, too :graduated: (just call the function with a custom path as parameter should work)

Thanks ProgAndy for the idea! I haven't thought one second to re-extract the string and then re-insert it!

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

Here's an attachment of a modified SQLite.dll.au3 (SQLite Version 3.6.22.0). This version has both SQLite 3 32bits and SQLite 3 64bits and a limit of 2026 characters per line (the maximum is 2064).

I've tested it and it successly pass through the Obfuscator.

I tried my compiled script and it seemed to be working correctly, althought I haven't test the x64 version yet.

I've recreated it with the same syntax as the one included with the installer.

I wish this could help and thanks again for all your help! :graduated:

(Edit: Tell me if you're having problem to get the file because I'm not enable to download it correctly on my side. I tried to re-compress it and upload it 3 times...).

FixedSQLiteDLL.zip

Edited by Silverkorn

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0