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

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,663
    Likes Received:
    916
    Reputations:
    363
    что отображается при переходе на index.php?page=admin?
     
    _________________________
  3. kingbeef

    kingbeef Reservists Of Antichat

    Joined:
    8 Apr 2010
    Messages:
    367
    Likes Received:
    164
    Reputations:
    126
    _________________________
  4. yarbabin

    yarbabin HACKIN YO KUT

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

    TotalSX New Member

    Joined:
    20 Jun 2015
    Messages:
    14
    Likes Received:
    0
    Reputations:
    0
    Отображеться форма с первого поста
     
Loading...
Similar Threads - получить доступ админке
  1. Torchin
    Replies:
    4
    Views:
    2,982