SHARE
TWEET

Untitled

a guest Dec 10th, 2019 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.     $bdd = new PDO('mysql:host=localhost;dbname=users','root','passwd42');
  3.     $req = $bdd->prepare("SELECT user FROM users");
  4.     $req->execute(arra());
  5.     foreach ($req as $row) {
  6.         $username = explode(' ',$row);
  7.         var_dump($username[0];
  8.         $cmd = "sudo useradd -m $row";
  9. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top