403Webshell
Server IP : 23.111.136.34  /  Your IP : 216.73.216.136
Web Server : Apache
System : Linux servidor.eurohost.com.br 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : meusitei ( 1072)
PHP Version : 5.6.40
Disable Function : show_source, system, shell_exec, passthru, proc_open
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/meusitei/public_html/central/includes/jscript/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/meusitei/public_html/central/includes/jscript/pwstrength.js
jQuery(document).ready(function() {
    jQuery("#newpw").keyup(function() {
        var pwvalue = jQuery("#newpw").val();
        var pwstrength = getPasswordStrength(pwvalue);
        jQuery("#pwstrength").html("Forte");
        jQuery("#pwstrengthpos").css("background-color", "#33CC00");
        if (pwstrength < 75) {
            jQuery("#pwstrength").html("Moderado");
            jQuery("#pwstrengthpos").css("background-color", "#ff6600");
        }
        if (pwstrength < 30) {
            jQuery("#pwstrength").html("Fraca");
            jQuery("#pwstrengthpos").css("background-color", "#cc0000");
        }
        jQuery("#pwstrengthpos").css("width", pwstrength);
        jQuery("#pwstrengthneg").css("width", 100 - pwstrength);
    });
});

function getPasswordStrength(pw) {
    var pwlength = (pw.length);
    if (pwlength > 5) pwlength = 5;
    var numnumeric = pw.replace(/[0-9]/g, "");
    var numeric = (pw.length - numnumeric.length);
    if (numeric > 3) numeric = 3;
    var symbols = pw.replace(/W/g, "");
    var numsymbols = (pw.length - symbols.length);
    if (numsymbols > 3) numsymbols = 3;
    var numupper = pw.replace(/[A-Z]/g, "");
    var upper = (pw.length - numupper.length);
    if (upper > 3) upper = 3;
    var pwstrength = ((pwlength * 10) - 20) + (numeric * 10) + (numsymbols * 15) + (upper * 10);
    if (pwstrength < 0) {
        pwstrength = 0
    }
    if (pwstrength > 100) {
        pwstrength = 100
    }
    return pwstrength;
}


function showStrengthBar() {
    document.write('<table align="center"><tr><td>Força da Senha:</td><td width="102"><div id="pwstrengthpos" style="position:relative;float:left;width:0px;background-color:#33CC00;border:1px solid #000;border-right:0px;"> </div><div id="pwstrengthneg" style="position:relative;float:right;width:100px;background-color:#efefef;border:1px solid #000;border-left:0px;"> </div></td><td><div id="pwstrength">Fraca</div></td></tr></table>');
}

Youez - 2016 - github.com/yon3zu
LinuXploit