Advertisement
Guest User

Untitled

a guest
May 2nd, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. $ip = trim(shell_exec("/sbin/ifconfig eth0 | grep -i 'inet Adresse:' | tr ':' ' ' | awk '{ print $3 }'"));
  2.  
  3. www-data ALL = NOPASSWD: /sbin/ifconfig
  4. www-data ALL = NOPASSWD: /bin/grep
  5. www-data ALL = NOPASSWD: /usr/bin/awk
  6. www-data ALL = NOPASSWD: /usr/bin/tr
  7.  
  8. $ip = trim(shell_exec("/sbin/ifconfig eth0 | grep -i 'inet addr:' | tr ':' ' ' | awk '{ print $3 }'"));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement