Можно ли получить доступ к админке?

Discussion in 'Песочница' started by TotalSX, 20 Jun 2015.

  1. TotalSX

    TotalSX New Member

    Joined:
    20 Jun 2015
    Messages:
    14
    Likes Received:
    0
    Reputations:
    0
    есть код (сама админка):

    <div class="form">
    <form action="" id="login_form">
    <div class="row">
    <label for="user">User</label>
    <input id="user" name="user" type="text"/>
    </div>
    <div class="row">
    <label for="pass">Pass</label>
    <input id="pass" name="pass" type="password"/>
    </div>
    <div><button data-rel="send">Login</button></div>
    </form>
    </div>
    <script src="/admin.js" type="text/javascript"></script>




    и admin.js:




    VK.init(function() {
    $(document).ready(function(){
    adminFunc();
    });
    }, function() {
    // API initialization failed
    // Can reload page here
    }, '5.29');


    function adminFunc() {
    $('.mainmenu, .usrow').hide();
    $('#header').hide();
    $('#login_form button[data-rel="send"]').on('click',function(){
    $.ajax({
    method: "POST",
    url: "/check.login.php",
    data: $('#login_form').serialize()
    })
    .done(function( msg ) {
    if(msg!='') {
    $('.form button').after($('<span/>',{class:'error',text:msg}).fadeIn().delay(5000).fadeOut());
    } else {
    $("#admin").load('index.php?page=admin', adminFunc);
    }
    });
    return false;
    });
    $('a#logout').on('click',function(){
    $.ajax({
    method: "POST",
    url: "/logout.php"
    }).done(function(d) {
    $("#admin").load('index.php?page=admin', adminFunc);
    });
    return false;
    });

    ...........................


    вроде иньекций нет. Можно ли получить доступ к админке минуя проверку?
     
    #1 TotalSX, 20 Jun 2015
    Last edited: 21 Jun 2015
  2. yarbabin

    yarbabin HACKIN YO KUT

    Joined:
    21 Nov 2007
    Messages:
    1,662
    Likes Received:
    887
    Reputations:
    363
    что отображается при переходе на index.php?page=admin?
     
    _________________________
  3. kingbeef

    kingbeef Reservists Of Antichat

    Joined:
    8 Apr 2010
    Messages:
    423
    Likes Received:
    165
    Reputations:
    126
    _________________________
  4. yarbabin

    yarbabin HACKIN YO KUT

    Joined:
    21 Nov 2007
    Messages:
    1,662
    Likes Received:
    887
    Reputations:
    363
    _________________________
  5. TotalSX

    TotalSX New Member

    Joined:
    20 Jun 2015
    Messages:
    14
    Likes Received:
    0
    Reputations:
    0
    Отображеться форма с первого поста
     
Loading...