question: load_file('proc/self/environ') - possible?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shosman
    New Member
    • Apr 2012
    • 1

    question: load_file('proc/self/environ') - possible?

    hello.
    i tried to load_file('proc/self/environ'),but its returns NULL.
    /etc/passwd is loaded,and currect_user have file_priv Y.
    it is possible?
  • Luuk
    Recognized Expert Top Contributor
    • Mar 2012
    • 1043

    #2
    Why do you want to load that?
    I think the output of 'env' is the same?

    Code:
    mysql -e "INSERT INTO env(t) values ('`env`');
    or

    Code:
    env >/tmp/env.txt
    load data infile '/tmp/env.txt' into table env;

    Comment

    Working...