Guest User

Untitled

a guest
Oct 20th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. cat neweruser.php
  2. <html>
  3. <head>
  4. <title>New UNIX User @ tacservers.co.cc</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  6. </head>
  7. <center>
  8. <body>
  9. <form name="form1" method="post" action="neweruser.php">
  10. <p>Login:<br />
  11. <input name="login" type="text" id="login"><br />
  12. </p>
  13. <p>Full Name:<br />
  14. <input name="name" type="text" id="name"><br />
  15. </p>
  16. <p>Password:<br />
  17. <input name="pwd" type="password" id="pwd"><br />
  18. </p>
  19. <p>
  20. <input type="submit" name="Submit" value="Create">
  21. </p>
  22. </form>
  23. </body>
  24. </center>
  25. </html>
  26.  
  27. <?php
  28. if (isset($_POST['login'])) {
  29. $login=$_POST['login'];
  30. $name=$_POST['name'];
  31. $passwd_crypt=crypt($_POST['pwd']);
  32.  
  33. $res=`bash neweruser.sh $login "$name" '$passwd_crypt'`;
  34. echo '<pre>';
  35. // Use 'system' to run script.
  36. $scriptOutput = system('neweruser.sh', $retval);
  37. echo '</pre>';
  38. }
  39. ?>
Add Comment
Please, Sign In to add comment