Visualizzazione dei risultati da 1 a 3 su 3
  1. #1
    Utente di HTML.it L'avatar di Mychy
    Registrato dal
    Oct 2000
    Messaggi
    794

    Javascrip sconosciuto su pagine web

    Controllando una pagina web (fatta da me) tramite la consol javascript di crome mi sono accorto di uno script che non avevo incluso e che a a che fare con i numeri delle carte di credito.
    Controllando altre pagine mi sono accorto che lo script appare in tutte (html.it compreso)

    Qualcuno mi sa dire di cosa si tratta?
    di seguito lo script
    [CODE]
    var g_inputsCnt = 0;
    var g_InputThis = new Array(null, null, null, null);
    var g_alerted = false; /* we test the input if it includes 4 digits (input is a part of 4 inputs for filling the credit-card number)*/
    function is4DigitsCardNumber(val) {
    var regExp = new RegExp('[0-9]{4}');
    return (val.length == 4 && val.search(regExp) == 0);
    } /* testing the whole credit-card number 19 digits devided by three '-' symbols or exactly 16 digits without any dividers*/
    function isCreditCardNumber(val) {
    if (val.length == 19) {
    var regExp = new RegExp('[0-9]{4}-[0-9]{4}-[0-9]{4}-[0-9]{4}');
    return (val.search(regExp) == 0);
    } else if (val.length == 16) {
    var regExp = new RegExp('[0-9]{4}[0-9]{4}[0-9]{4}[0-9]{4}');
    return (val.search(regExp) == 0);
    }
    return false;
    }
    function CheckInputOnCreditNumber(self) {
    if (g_alerted)
    return false;
    var value = self.value;
    if (self.type == 'text') {
    if (is4DigitsCardNumber(value)) {
    var cont = true;
    for (i = 0; i < g_inputsCnt; i++)
    if (g_InputThis[i] == self)
    cont = false;
    if (cont && g_inputsCnt < 4) {
    g_InputThis[g_inputsCnt] = self;
    g_inputsCnt++;
    }
    }
    g_alerted = (g_inputsCnt == 4);
    if (g_alerted)
    g_inputsCnt = 0;
    else
    g_alerted = isCreditCardNumber(value);
    }
    return g_alerted;
    }
    function CheckInputOnPassword(self) {
    if (g_alerted)
    return false;
    var value = self.value;
    if (self.type == 'password') {
    g_alerted = (value.length > 0);
    }
    return g_alerted;
    }
    function onInputBlur(self, bRatingOk, bFishingSite) {
    var bCreditNumber = CheckInputOnCreditNumber(self);
    var bPassword = CheckInputOnPassword(self);
    if ((!bRatingOk || bFishingSite == 1) && (bCreditNumber || bPassword)) {
    var warnDiv = document.getElementById("wrcinputdiv");
    if (warnDiv) { /* show the warning div in the middle of the screen */
    warnDiv.style.left = "0px";
    warnDiv.style.top = "0px";
    warnDiv.style.width = "100%";
    warnDiv.style.height = "100%";
    document.getElementById("wrc_warn_fs").style.displ ay = 'none';
    document.getElementById("wrc_warn_cn").style.displ ay = 'none';
    if (bFishingSite)
    document.getElementById("wrc_warn_fs").style.displ ay = 'block';
    else
    document.getElementById("wrc_warn_cn").style.displ ay = 'block';
    warnDiv.style.display = 'block';
    }
    }
    }
    [CODE]

  2. #2
    Qui si parla,
    http ://forum.avast.com/index.php?topic=94415.0
    pc win7 e avast free, mi ritrovo anch'io questo script solo sulle pagine che caricano script.

  3. #3
    Utente di HTML.it L'avatar di Mychy
    Registrato dal
    Oct 2000
    Messaggi
    794
    Ok quindi posso stare tranquillo

    Grazie

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.