3 ms·
wait, Sqlite3 can access files this way?
by martinbaun 3y ago
wait, Sqlite3 can access files this way?
- leosanchez 3y agoSELECT * FROM "/etc/passwd"; does not work for me.
- formerly_proven 3y agoselect readfile('/etc/passwd'); Only works in the CLI. Which also has .import sqlite> create table pwd(name, pass, uid, gid, gecos, home, shell); sqlite> .sep : sqlite> .import /etc/passwd pwd sqlite> .mode column sqlite> select * from pwd where uid = '0'; name pass uid gid gecos home shell ---- ---- --- --- ----- ----- --------- root x 0 0 root /root /bin/bash
- Woodi 3y agoOk, it is extra beautifull and very very sharp knive...