SQLite

SQLite is a relational database management system contained in a C library. In contrast to many other database management systems

SQLite is not a client–server database engine. Rather, it is embedded into the end program.

open sqlite database using sqlite3:

student@attackdefense:~$ sqlite3 data.db

display tables:

sqlite> .tables 
FLAG  app

Select from table:

sqlite> SELECT * FROM FLAG; 
44dd29a07a0086948ad19ad6376db7d6 

display table columns names:

sqlite> PRAGMA table_info(FLAG); 
0|ID|INT|1||1 
1|NAME|TEXT|1||0 
2|AGE|INT|1||0 
3|ADDRESS|CHAR(50)|0||0 

exit sqlite3:

sqlite> .quit 

Count columns:

sqlite> SELECT count(*) FROM employees; 
8 

Filter columns:

Resource:

Can practice in AttackDencesLabs

Last updated

Was this helpful?