-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreset_complete.php
42 lines (42 loc) · 1.8 KB
/
reset_complete.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<html>
<head>
<title>Reset</title>
<link rel="stylesheet" href="style.css">
<meta charset="UTF-8">
</head>
<body class="body-style-9">
<h1>Reset your password</h1>
<h2>You Reset was processed:</h2>
<form class="form-style-9">
<ul>
<li>
<div class="field-style field-full align-none">
<?php
if (isset($_POST['DBANS'])) {
//check Query Sting for Value
if ($_POST['DBANS']==""){
//no value exit
$MSG = "User Name Not Found";
}else{
if ($_POST['DBANS'] == (md5($_POST['ANS']))){
$adname = substr($_POST['User'],11);
//echo $adname;
$op = shell_exec('net user /DOMAIN /active:YES '.$adname.' Petr@di@monds 2>&1');
$MSG= ($_POST['User'])."'s Account password was reset to: <b>Petr@di@monds<b>";
}else{
//echo ($_POST['DBANS']." ". (md5($_POST['ANS'])));
$MSG= "Your answer did not match the anser on the server";
}
}
}
echo $MSG;
?>
</div>
</li>
<li>
<input type="button" value="HOME" class="field-style field-full align-none" onclick="location.href = 'index.php';" />
</li>
</ul>
</form>
</body>
</html>