One Hat Cyber Team
Your IP :
172.16.0.254
Server IP :
58.26.163.33
Server :
Windows NT DGPENSV2LPKMN 10.0 build 14393 (Windows Server 2016) AMD64
Server Software :
Apache/2.4.46 (Win64) OpenSSL/1.1.1h PHP/7.3.25
PHP Version :
7.3.25
Buat File
|
Buat Folder
Eksekusi
Dir :
C:
/
xampp7
/
htdocs
/
edgpens_220424
/
kod
/
View File Name :
!test.php
<form id="signupForm" name="signupForm" method="POST" action="http://localhost/tajerlee/user/insertUSerRegistration" autocomplete='off'> <table border="1" bordercolor="#f1f7fc" width="100%"> <tr> <td> Choose a password <span class="mandatoryStar">*</span> <span class="small">8 or more characters</span> </td> <td> <input type="password" onkeyup="passwordStrength(this.value)" class="form-control" maxlength="30" minlength="8" id="password" name="password" placeholder="Enter password"> </td> </tr> <tr> <td> Confirm password <span class="mandatoryStar">*</span> </td> <td> <input type="password" class="form-control" maxlength="30" minlength="8" id="confirm_password" name = 'confirm_password'placeholder="Confirm password" > </td> </tr> <tr> <td> Password strength <span class="mandatoryStar">*</span> <span class="small">We recommend you use a strong, unique password. <a href="#" data-toggle="modal" data-target="#myModal">Find out more.</a> </span> </td> <td> <p> <div id="passwordDescription">Password not entered</div> <div id="passwordStrength" class="strength0"></div> </p></td> </tr> </table> </form> <!-- script for showing the password strenth --> <script> function passwordStrength(password) { var desc = new Array(); desc[0] = "Very Weak"; desc[1] = "Weak"; desc[2] = "Better"; desc[3] = "Medium"; desc[4] = "Strong"; desc[5] = "Strongest"; var score = 0; //if password bigger than 6 give 1 point if (password.length > 6) score++; //if password has both lower and uppercase characters give 1 point if ( ( password.match(/[a-z]/) ) && ( password.match(/[A-Z]/) ) ) score++; //if password has at least one number give 1 point if (password.match(/\d+/)) score++;mob //if password has at least one special caracther give 1 point if ( password.match(/.[!,@,#,$,%,^,&,*,?,_,~,-,(,)]/) ) score++; //if password bigger than 12 give another 1 point if (password.length > 12) score++; document.getElementById("passwordDescription").innerHTML = desc[score]; document.getElementById("passwordStrength").className = "strength" + score; } </script> <!-- script for showing the password strenth -->