XR3X

Jump to content


Photo

Any small sqlite3 library?


  • You cannot start a new topic
  • Please log in to reply
5 replies to this topic

#1 poison2012

poison2012

    Member

  • Verified Seller
  • 81 posts

Posted 18 May 2015 - 01:22 PM

I downloaded the official sqlite C source (4Mb) and compiled it, but the code is still quite large (300kb or so).

 

I know Pony uses sqlite (since it grabs Firefox passwords and those are stored in an sqlite3 database) and yet pony is like a small 50kb trojan. So I have checked the source and it seems pony uses an sqlite version written in assembler.

 

I was wondering if anybody knows a minimalist sqlite library but for C/C++? Only for doing selects (),  does not need to be a full-fledged library. Thanks.



#2 Pongi

Pongi

    Member

  • Members ++
  • 241 posts

Posted 18 May 2015 - 01:29 PM

poison2012, on 18 May 2015 - 12:22 PM, said:

I downloaded the official sqlite C source (4Mb) and compiled it, but the code is still quite large (300kb or so).

 

I know Pony uses sqlite (since it grabs Firefox passwords and those are stored in an sqlite3 database) and yet pony is like a small 50kb trojan. So I have checked the source and it seems pony uses an sqlite version written in assembler.

 

I was wondering if anybody knows a minimalist sqlite library but for C/C++? Only for doing selects (),  does not need to be a full-fledged library. Thanks.

 

afaik firefox passes are stored in a .json file since FF38, and not in sqlite anymore

Please Login or Register to see this Hidden Content


Edited by Pongi, 18 May 2015 - 01:37 PM.

  • Becks likes this

#3 poison2012

poison2012

    Member

  • Verified Seller
  • 81 posts

Posted 18 May 2015 - 01:54 PM

Pongi, I did not know this! :)

 

But chrome also uses sqlite, so I will need it either way (yes I want to code my own pass dumper :D) .

 

In the old Firefox you could have used sqlite3.dll deployed in Mozilla folder, but in chrome's cases...



#4 Pongi

Pongi

    Member

  • Members ++
  • 241 posts

Posted 18 May 2015 - 02:07 PM

Then maybe have a look @ becks' snippets..

 

Firefox:

Spoiler

Edited by Pongi, 18 May 2015 - 02:08 PM.

  • Becks likes this

#5 poison2012

poison2012

    Member

  • Verified Seller
  • 81 posts

Posted 18 May 2015 - 02:54 PM

Thanks, however:
 

Please Login or Register to see this Hidden Content

 
 
this uses sqlite3.dll. I am not really interested in how to actually decrypt the passwords, I am more interested in linking sqlite3 statically into my program without resulting an exe of 300kb size. From Pony source:
 

Please Login or Register to see this Hidden Content

I need just one like this one, a tiny sqlite client in C/C++.


#6 Becks

Becks

    Intermediate Member

  • Loyalist
  • 198 posts

Posted 18 May 2015 - 05:21 PM

They're a lot of classes around the Internet from the sqlite guys, it's completely opensource (in C afaik), so just grab their class and only concentrate on the functions you need bro!


Edited by Becks, 18 May 2015 - 05:22 PM.

  • x58 likes this