Advertisement
krot

sudo php

Apr 17th, 2017
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.08 KB | None | 0 0
  1. $exec = "echo your_passwd | /usr/bin/sudo -S your command";
  2. exec($exec,$out,$rcode);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement