Чаты На меня в чате повесили бан вот его исходный код

Discussion in 'Веб-уязвимости' started by Pauk, 30 Mar 2006.

  1. Pauk

    Pauk New Member

    Joined:
    1 Dec 2005
    Messages:
    1
    Likes Received:
    0
    Reputations:
    0
    НА меня в чате повесили бан вот его исходный код как мне его обойти

    // SECURITY KEY GENERATOR
    // Copyright (c) 2004 by Andrew S. Apanasenko (ЧЕРТЁНОК)

    var bg = navigator.appVersion;
    var sf = bg.split(' ');
    var bv = sf[0]+";"+sf[2]+";"+sf[3];
    if (navigator.javaEnabled())
    var JavaStatus=1;
    else
    var JavaStatus=0;
    var msc = window.screen.width+"X"+window.screen.height+";"+window.screen.colorDepth;
    if(navigator.userAgent.indexOf('Linux') != -1){
    var OpSys = 1;
    }
    else if((navigator.userAgent.indexOf('Win') != -1) && (navigator.userAgent.indexOf('95') != -1)){
    var OpSys = 2;
    }
    else if(navigator.userAgent.indexOf('Win') != -1){
    var OpSys = 3;
    }
    else if(navigator.userAgent.indexOf('Mac') != -1){
    var OpSys = 4;
    }
    else if(navigator.userAgent.indexOf('Unix') != -1){
    var OpSys = 5;
    }
    else if(navigator.userAgent.indexOf('IRIX') != -1){
    var OpSys = 6;
    }
    else if(navigator.userAgent.indexOf('Lindows') != -1){
    var OpSys = 7;
    }
    else {
    var OpSys = 8;
    }
    var slang = navigator.systemLanguage;
    var blang = navigator.browserLanguage;
    var ulang = navigator.userLanguage;
    date = new Date();
    zone = date.getTimezoneOffset();

    var clsarr=[
    "{08B0E5C0-4FCB-11CF-AAA5-00401C608500}",
    "{08B0E5C0-4FCB-11CF-AAA5-00401C608555}",
    "{0fde1f56-0d59-4fd7-9624-e3df6b419d0e}",
    "{10072CEC-8CC1-11D1-986E-00A0C955B42F}",
    "{2179C5D3-EBFF-11CF-B6FD-00AA00B4E220}",
    "{22D6F312-B0F6-11D0-94AB-0080C74C7E95}",
    "{283807B5-2C60-11D0-A31D-00AA00B92C03}",
    "{2A202491-F00D-11CF-87CC-0020AFEECF20}",
    "{3AF36230-A269-11D1-B5BF-0000F8051515}",
    "{3bf42070-b3b1-11d1-b5c5-0000f8051515}",
    "{44BBA840-CC51-11CF-AAFA-00AA00B6015C}",
    "{44BBA842-CC51-11CF-AAFA-00AA00B6015B}",
    "{44BBA848-CC51-11CF-AAFA-00AA00B6015C}",
    "{45EA75A0-A269-11D1-B5BF-0000F8051515}",
    "{4F216970-C90C-11D1-B5C7-0000F8051515}",
    "{4F645220-306D-11D2-995D-00C04F98BBC9}",
    "{5A8D6EE0-3E18-11D0-821E-444553540000}",
    "{630B1DA0-B465-11D1-9948-00C04F98BBC9}",
    "{6BF52A52-394A-11d3-B153-00C04F79FAA6}",
    "{73FA19D0-2D75-11D2-995D-00C04F98BBC9}",
    "{76C19B50-F0C8-11CF-87CC-0020AFEECF20}",
    "{7790769C-0471-11D2-AF11-00C04FA35D02}",
    "{89820200-ECBD-11cf-8B85-00AA005B4340}",
    "{89820200-ECBD-11cf-8B85-00AA005B4383}",
    "{9381D8F2-0288-11D0-9501-00AA00B911A5}",
    "{9EF0045A-CDD9-438e-95E6-02B9AFEC8E11}",
    "{CC2A9BA0-3BDD-11D0-821E-444553540000}",
    "{E92B03AB-B707-11d2-9CBD-0000F87A369E}"],brplugin='',clsver;

    if(typeof(mscaps)!="undefined" && typeof(mscaps.getComponentVersion)!="undefined")
    {
    for(var i=0;i<clsarr.length;i++)
    {
    clsver=mscaps.getComponentVersion(clsarr,"ComponentID");
    if(clsver)
    brplugin+=""+i+""+clsver.replace(/,/g,'')+"";// else brplugin+="{}";
    }
    }
    var key = brplugin.replace(/"/g,"").replace(/'/g,"");

    var wndChatPopup = null;
    function debugObject(oObj) {
    var sRes = '';
    for(var prop in oObj)
    sRes += ""+prop+": "+ oObj[prop]+"\n";
    var wnd = window.open("","debugWnd","resizable=1,scrollbars=1,width=400,height=400");
    wnd.document.writeln("<xmp>"+sRes+"\n\n</xmp>");
    return sRes;
    }

    function validateForm()
    {
    if (!validateNick(loginForm.username.value))
    {
    alert("Некорректный логин");
    return false;
    }
    else {
    // if (wndChatPopup && !wndChatPopup.closed) {
    // wndChatPopup.focus();
    // }
    // debugObject(window);
    // wndChatPopup = window.open("", "ChatPopup", "menubar=0,scrollbars=1,resizable=1");
    // wndChatPopup.focus();

    loginForm.submit();
    // window.location='index.php';
    return true;
    }
    }
    function validateForm2()
    {
    if (!validateNick(loginForm.login.value))
    {
    alert("Некорректный логин");
    return false;
    }
    else {
    if (wndChatPopup && !wndChatPopup.closed) {
    wndChatPopup.focus();
    }
    // alert(window.name);
    wndChatPopup = window.open("", "ChatPopup", "menubar=0,scrollbars=1,resizable=1");
    wndChatPopup.focus();

    loginForm.submit();
    if (window.name!='ChatPopup'){
    window.location='../index.php';
    }
    return true;
    }
    }

    function validateNick(strValue) {
    var len=strValue.length;
    for (i=0; i<len; i++){
    var objRegExp = /[a-zA-Zа-яА-ЯёЁ0-9_ ]/i;
    // var objRegExp = /^[a-z0-9*-п]([a-z*-п0-9_\-\.]*)/i; //@([a-z0-9_\-\.]*)(\.[a-z]{2,3}(\.[a-z]{2}){0,2})$
    // return objRegExp.test(strValue);
    // alert(objRegExp.test(strValue.charAt(i))+" - "+strValue.charAt(i));
    if (!objRegExp.test(strValue.charAt(i))) return false;
    }
    return true;
    }
     
  2. DRON-ANARCHY

    DRON-ANARCHY Отец порядка

    Joined:
    4 Mar 2005
    Messages:
    713
    Likes Received:
    142
    Reputations:
    50
    Что-то вы, товарищ, загнули.....
     
  3. tclover

    tclover nobody

    Joined:
    13 Dec 2005
    Messages:
    741
    Likes Received:
    682
    Reputations:
    287
    Автор жжот.