Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cat neweruser.php
- <html>
- <head>
- <title>New UNIX User @ tacservers.co.cc</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- </head>
- <center>
- <body>
- <form name="form1" method="post" action="neweruser.php">
- <p>Login:<br />
- <input name="login" type="text" id="login"><br />
- </p>
- <p>Full Name:<br />
- <input name="name" type="text" id="name"><br />
- </p>
- <p>Password:<br />
- <input name="pwd" type="password" id="pwd"><br />
- </p>
- <p>
- <input type="submit" name="Submit" value="Create">
- </p>
- </form>
- </body>
- </center>
- </html>
- <?php
- if (isset($_POST['login'])) {
- $login=$_POST['login'];
- $name=$_POST['name'];
- $passwd_crypt=crypt($_POST['pwd']);
- $res=`bash neweruser.sh $login "$name" '$passwd_crypt'`;
- echo '<pre>';
- // Use 'system' to run script.
- $scriptOutput = system('neweruser.sh', $retval);
- echo '</pre>';
- }
- ?>
Add Comment
Please, Sign In to add comment