Hacker News new | past | comments | ask | show | jobs | submit login

SELECT * FROM "/etc/passwd"; does not work for me.



select 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


Ok, it is extra beautifull and very very sharp knive...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: