Luigi Auriemma

aluigi.org (ARCHIVE-ONLY FORUM!)
It is currently 19 Jul 2012 13:58

All times are UTC [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 9 posts ] 
Author Message
 Post subject: Is There anyway to read SQLite3 Database?
PostPosted: 12 Jun 2009 12:42 

Joined: 03 May 2009 05:10
Posts: 16
Is There anyway to read SQLite3 Database without the need of SQLite3.dll?
I mean maybe using BlockRead or something similar that doesn't use much size?
I really care about the size.....!!!!!!!


Top
 Profile  
 
 
 Post subject: Re: Is There anyway to read SQLite3 Database?
PostPosted: 12 Jun 2009 14:41 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
difference between shared and static libraries:

- shared: the functions you want to use are located in an external library (like sqlite3.dll) and so such file must be already in the system or must be installed or located in the same folder of your application. so your executable is small but you must consider the size and the availability of the needed dll

- static: the functions you want to use are located directly in your final executable without external dependencies. so your executable is big but works alone


Top
 Profile  
 
 Post subject: Re: Is There anyway to read SQLite3 Database?
PostPosted: 12 Jun 2009 14:56 

Joined: 03 May 2009 05:10
Posts: 16
im looking for a static way then
any ideas?
like a small function, i finally was abel to decrypt google chrome passwords, but the sqlite3.dll is very big, and i saw nirsoft but he's not using it :S


Last edited by Kill3r7 on 12 Jun 2009 14:59, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Is There anyway to read SQLite3 Database?
PostPosted: 12 Jun 2009 14:58 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
eh, implement the library statically if it's possible and it's supported by the compiler/programming language you use.
it's something you must know by yourself (manual of your compiler, knowledge) not something I need to know for you (except if you use C but it's not the case as far as I have seen).


Top
 Profile  
 
 Post subject: Re: Is There anyway to read SQLite3 Database?
PostPosted: 12 Jun 2009 15:00 

Joined: 03 May 2009 05:10
Posts: 16
im using delphi, but u know, i mean something to extract the data, but without using sql libraries, cause if i included the dll it will be the same problem, size


Top
 Profile  
 
 Post subject: Re: Is There anyway to read SQLite3 Database?
PostPosted: 12 Jun 2009 15:10 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
the alternatives are 2:
- you find a work-around to find that specific string you need inside the sqlite3 db, something like I did for steam and Phrase (good luck with sqlite3 ih ih ih)
- you write a minimalistic sqlite3 db client using less instructions as possible

the alternatives don't seem much interesting, no?
anyway there is a third alternative which could be interesting to you although it's probably not so fast and immediate to implement (so if you are not enough advanced with your programming language, give up).
practically you can store sqlite3.dll directly inside your executable using two possible ways: as a resource (most commonly used, personally I have never used it) or as a fixed buffer (I guess this way has been implemented only in C and, since I tested it, works very well).

so when the executable starts it's only needed to manually link the functions of the dll you want to use with the dll inside your exe (I don't know if when it's included as resource it can be linked directly in memory or, more obviously, must be extracted first).

if the size is a problem is enough to compress the dll or directly the whole exe with an open source packer like UPX: http://upx.sourceforge.net/


Top
 Profile  
 
 Post subject: Re: Is There anyway to read SQLite3 Database?
PostPosted: 12 Jun 2009 15:16 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
P.S.: for your information, sqlite3.dll can be also stripped using the strip command (part of the cygwin suite) which decreases its size from 505,920 bytes to 410,112


Top
 Profile  
 
 Post subject: Re: Is There anyway to read SQLite3 Database?
PostPosted: 12 Jun 2009 15:17 

Joined: 03 May 2009 05:10
Posts: 16
ok u still dont get what the size means to me
im coding some sort of PwSteler and size cant be big and i cant include 350KB dll
i need it really tiny, and i tried the first alternative, but there is nothing that separates the data, its like http://www.site.com/loginpasswordfieldencryptedpassword
not http://www.site.com/login passwordfield encryptedpassword or anything to separate them :S


Top
 Profile  
 
 Post subject: Re: Is There anyway to read SQLite3 Database?
PostPosted: 12 Jun 2009 15:18 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
if you want to write such type of thing is better if you leave this forum.
topic closed.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 9 posts ] 

All times are UTC [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for: