# 拿到一个学校网站，提权受阻

**URL:** <https://forum.90sec.com/t/topic/3499>\
**Category:** 交流讨论\
**Created:** [2012 年4 月 28 日 03:11 UTC](https://forum.90sec.com/t/topic/3499 "2012-04-28T03:11:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

作者： ![iamtang3](https://forum.90sec.com/letter_avatar_proxy/v4/letter/i/bcef8e/32.png) [@iamtang3](https://forum.90sec.com/u/iamtang3)\
发布日期： [2012 年4 月 28 日 03:11 UTC](https://forum.90sec.com/t/topic/3499/1 "2012-04-28T03:11:28Z")

</div>

_本帖最后由 TPCS 于 2012-4-28 12:48 编辑_

这两天闲着难受，就顺手搜了个学校的网站监测，搜到了一个sql注入点，mssql数据库直接进后台，简单的asp;.doc绕过上传，拿到webshell。  
进去后权限还是可以的，所有目录都可以浏览，但是除了当前目录，其他目录都没有写权限。找到sa密码，但是提示“当前不是安全的上下文”，执行不了命令。aspx，php不支持，vbs执行被拒绝。现在卡在这里了，大家有什么思路吗？  
图片是用sa执行net user时返回的错误信息  
[未命名.jpg](https://forum.90sec.com/discuz-migration/attachments/289806d0c075a4d8af15475403f58852e8547468390635a0d11a2283f58541a9)

---

<div class="post-metadata">

作者： ![jhvxer](https://forum.90sec.com/letter_avatar_proxy/v4/letter/j/82dd89/32.png) [@jhvxer](https://forum.90sec.com/u/jhvxer)\
发布日期： [2012 年4 月 28 日 04:33 UTC](https://forum.90sec.com/t/topic/3499/2 "2012-04-28T04:33:24Z")

</div>

有SA，而且是SYSTEM.但是执行不了命令什么的，网上很多恢复的方法，看错误来修复，你还可以上些杀器执行看下什么情况！可以PM看看！

---

<div class="post-metadata">

作者： ![iamtang3](https://forum.90sec.com/letter_avatar_proxy/v4/letter/i/bcef8e/32.png) [@iamtang3](https://forum.90sec.com/u/iamtang3)\
发布日期： [2012 年4 月 28 日 04:47 UTC](https://forum.90sec.com/t/topic/3499/3 "2012-04-28T04:47:10Z")

</div>

\*\*回复 [2#](http://www.90sec.org/redirect.php?goto=findpost&pid=24343&ptid=2200) _0xcodede_ \*\*

```
已经PM你了，找不到可执行目录，pr执行无回显，帖子内容我又补充了下，谢谢

```

---

<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 月 28 日 06:32 UTC](https://forum.90sec.com/t/topic/3499/4 "2012-04-28T06:32:03Z")

</div>

降权了 {:4\_57:}

---

<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 年4 月 28 日 06:34 UTC](https://forum.90sec.com/t/topic/3499/5 "2012-04-28T06:34:30Z")

</div>

sA 提权网上好多文章的

---

<div class="post-metadata">

作者： ![Green\_leaves](https://forum.90sec.com/user_avatar/forum.90sec.com/green_leaves/32/11332_2.png) [@Green\_leaves](https://forum.90sec.com/u/Green_leaves)\
发布日期： [2012 年4 月 28 日 09:55 UTC](https://forum.90sec.com/t/topic/3499/6 "2012-04-28T09:55:40Z")

</div>

sa被降权的文章有很多吧，你google一下。

---

<div class="post-metadata">

作者： ![iamtang3](https://forum.90sec.com/letter_avatar_proxy/v4/letter/i/bcef8e/32.png) [@iamtang3](https://forum.90sec.com/u/iamtang3)\
发布日期： [2012 年5 月 2 日 08:31 UTC](https://forum.90sec.com/t/topic/3499/7 "2012-05-02T08:31:12Z")

</div>

\*\*回复 [6#](http://www.90sec.org/redirect.php?goto=findpost&pid=24420&ptid=2200) _Green\_leaves_ \*\*

```
这个站点应该不是sa降权的问题，sa的权限应该还在，不过webshell账户不是指定的sa用户，即使有正确的sa密码也不能登入

```
