# 不支持PHP一样UDF提权

**URL:** <https://forum.90sec.com/t/topic/3193>\
**Category:** 技术文章\
**Created:** [2012 年2 月 5 日 11:18 UTC](https://forum.90sec.com/t/topic/3193 "2012-02-05T11:18:27Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

作者： ![M\_Kevin](https://forum.90sec.com/letter_avatar_proxy/v4/letter/m/41988e/32.png) [@M\_Kevin](https://forum.90sec.com/u/M_Kevin)\
发布日期： [2012 年2 月 5 日 11:18 UTC](https://forum.90sec.com/t/topic/3193/1 "2012-02-05T11:18:27Z")

</div>

作者：Miss冰²º¹²  
博客：[http://blog.sina.com.cn/u/2521418305](http://blog.sina.com.cn/u/2521418305)  
今天无聊中日了个站  
[未命名.jpg](https://forum.90sec.com/discuz-migration/attachments/10531c963a4553d5098311cfa3ad35e24a1c6b95302f34351f2d8cede667d777)  
看下了组件不  
有WS但提不了权限  
[1.jpg](https://forum.90sec.com/discuz-migration/attachments/842e686448fc96d78f1e600e22ccfc38732ede05584702e7193d60c31a9ff11b)  
一般我都喜欢MYSQL提权 简单也快  
[2.jpg](https://forum.90sec.com/discuz-migration/attachments/0c2fdb6614890a253fb99883cc59c3feaf4c163e889cc2b6b7343b50b0d4240d)  
下载了三个文件  
拿到帐号密码  
下一步就是UDF提权了  
但是他网站不支持PHP  
[3.jpg](https://forum.90sec.com/discuz-migration/attachments/55d808d44fce1ea6f91da78e840dbd084ec0d8569aad469183388e1771d39045)  
用工具连了一下子是成功的  
[4.jpg](https://forum.90sec.com/discuz-migration/attachments/ed43db6fed678dd55b0fe17552eefb710f3a75da66ac4248adbd971d18e55e23)  
下面开始就是我的思路了

我想是不是能在别的站上支持PHP就成了嘛  
想到做到  
虚理机架设了一个PHPNOW 上传了一个大马  
[5.jpg](https://forum.90sec.com/discuz-migration/attachments/56f6004b259856862cd4682defc62c3215d5c5bfb5e3ca0eb0d2318011fa391f)  
接着MYSQL提权

为了真实  
我先连下我的本机  
[6.jpg](https://forum.90sec.com/discuz-migration/attachments/892dcb6b76eea220516583c1b16508ee34c03442393cc9ccf2a5ce3bfd9e9756)  
现在远程来提那个目标站  
[7.jpg](https://forum.90sec.com/discuz-migration/attachments/e2c5f000d8c7f82f225e9e8278a12fa8fa4b58f1b1f2360e28fbc97adfd9ee09)  
[8.jpg](https://forum.90sec.com/discuz-migration/attachments/b32835808770c925b176abfd910fe4a78ba1978d7ed4ae96c86e81f9f8713a85)  
下面就是想怎么日就怎么日了

HOHO

[01.jpg](https://forum.90sec.com/discuz-migration/attachments/3b85f28b85e27158dc22e69fe7e9b5e6a926e37a4a0e451ea55c9477703c424c)

[02.jpg](https://forum.90sec.com/discuz-migration/attachments/fe57fcd04d2633e01bd8409af0b44648d59f9024421a5e0a1a0cd596712e6bda)

---

<div class="post-metadata">

作者： ![lurenjia](https://forum.90sec.com/letter_avatar_proxy/v4/letter/l/e99b99/32.png) [@lurenjia](https://forum.90sec.com/u/lurenjia)\
发布日期： [2012 年2 月 5 日 11:49 UTC](https://forum.90sec.com/t/topic/3193/2 "2012-02-05T11:49:41Z")

</div>

前提是开启外连{:4\_48:}

---

<div class="post-metadata">

作者： ![cloudqqvip](https://forum.90sec.com/letter_avatar_proxy/v4/letter/c/4491bb/32.png) [@cloudqqvip](https://forum.90sec.com/u/cloudqqvip)\
发布日期： [2012 年2 月 5 日 11:52 UTC](https://forum.90sec.com/t/topic/3193/3 "2012-02-05T11:52:38Z")

</div>

学习了！！！！！

---

<div class="post-metadata">

作者： ![user20](https://forum.90sec.com/user_avatar/forum.90sec.com/user20/32/11357_2.png) [@user20](https://forum.90sec.com/u/user20)\
发布日期： [2012 年2 月 5 日 12:15 UTC](https://forum.90sec.com/t/topic/3193/4 "2012-02-05T12:15:10Z")

</div>

学习学习！！！！！  
总没试过udf

---

<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)\
发布日期： [2012 年2 月 5 日 12:47 UTC](https://forum.90sec.com/t/topic/3193/5 "2012-02-05T12:47:16Z")

</div>

学习学习 总是不知道什么是UDF

---

<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 年2 月 5 日 12:58 UTC](https://forum.90sec.com/t/topic/3193/6 "2012-02-05T12:58:28Z")

</div>

没开外连的话你这个就是浮云了！我碰到的都不给外连！

---

<div class="post-metadata">

作者： ![M\_Kevin](https://forum.90sec.com/letter_avatar_proxy/v4/letter/m/41988e/32.png) [@M\_Kevin](https://forum.90sec.com/u/M_Kevin)\
发布日期： [2012 年2 月 5 日 13:18 UTC](https://forum.90sec.com/t/topic/3193/7 "2012-02-05T13:18:13Z")

</div>

可以去论坛上找那个不开外连的情况嘛  
有的  
我也是上次看到想的

---

<div class="post-metadata">

作者： ![f4get](https://forum.90sec.com/letter_avatar_proxy/v4/letter/f/cab0a1/32.png) [@f4get](https://forum.90sec.com/u/f4get)\
发布日期： [2012 年2 月 5 日 13:30 UTC](https://forum.90sec.com/t/topic/3193/8 "2012-02-05T13:30:23Z")

</div>

mysql手工导出udf提权就是了。

---

<div class="post-metadata">

作者： ![cygmris](https://forum.90sec.com/letter_avatar_proxy/v4/letter/c/9d8465/32.png) [@cygmris](https://forum.90sec.com/u/cygmris)\
发布日期： [2012 年2 月 5 日 17:35 UTC](https://forum.90sec.com/t/topic/3193/9 "2012-02-05T17:35:31Z")

</div>

\*\*回复 [5#](http://www.90sec.org/redirect.php?goto=findpost&pid=14295&ptid=1431) _含泪的微笑_ \*\*

UDF就是安装在MySql的一个组件,把调用代码用txt传上去服务器再用MySql执行里面的函数进行提权操作!

---

<div class="post-metadata">

作者： ![desperado](https://forum.90sec.com/letter_avatar_proxy/v4/letter/d/3ab097/32.png) [@desperado](https://forum.90sec.com/u/desperado)\
发布日期： [2012 年2 月 5 日 18:45 UTC](https://forum.90sec.com/t/topic/3193/10 "2012-02-05T18:45:06Z")

</div>

\*\*回复 [7#](http://www.90sec.org/redirect.php?goto=findpost&pid=14306&ptid=1431) _Miss冰_ \*\*

不支持外连应该不行吧。你都无法调用目标的udf。怎么提？

---

<div class="post-metadata">

作者： ![M\_Kevin](https://forum.90sec.com/letter_avatar_proxy/v4/letter/m/41988e/32.png) [@M\_Kevin](https://forum.90sec.com/u/M_Kevin)\
发布日期： [2012 年2 月 6 日 10:25 UTC](https://forum.90sec.com/t/topic/3193/11 "2012-02-06T10:25:29Z")

</div>

\*\*回复 [10#](http://www.90sec.org/redirect.php?goto=findpost&pid=14352&ptid=1431) _desperado_ \*\*

看下这个贴子你就知道了  
不支持外连的情况下

[http://www.90sec.org/thread-1291-1-2.html](http://www.90sec.org/thread-1291-1-2.html)

---

<div class="post-metadata">

作者： ![user\_deleted](https://forum.90sec.com/letter_avatar_proxy/v4/letter/u/35a633/32.png) [@user\_deleted](https://forum.90sec.com/u/user_deleted)\
发布日期： [2012 年2 月 6 日 12:25 UTC](https://forum.90sec.com/t/topic/3193/12 "2012-02-06T12:25:08Z")

</div>

udf跟php关系不大吧 都是跟mysql有关的吧

---

<div class="post-metadata">

作者： ![q332550936](https://forum.90sec.com/letter_avatar_proxy/v4/letter/q/a587f6/32.png) [@q332550936](https://forum.90sec.com/u/q332550936)\
发布日期： [2012 年2 月 6 日 13:35 UTC](https://forum.90sec.com/t/topic/3193/13 "2012-02-06T13:35:00Z")

</div>

UDF 没怎么试过。学习了。。。。

---

<div class="post-metadata">

作者： ![vfox](https://forum.90sec.com/user_avatar/forum.90sec.com/vfox/32/11387_2.png) [@vfox](https://forum.90sec.com/u/vfox)\
发布日期： [2012 年2 月 6 日 14:46 UTC](https://forum.90sec.com/t/topic/3193/14 "2012-02-06T14:46:49Z")

</div>

思路灵活，导udf能自动就自动。

---

<div class="post-metadata">

作者： ![user4](https://forum.90sec.com/letter_avatar_proxy/v4/letter/u/7cd45c/32.png) [@user4](https://forum.90sec.com/u/user4)\
发布日期： [2012 年2 月 6 日 16:29 UTC](https://forum.90sec.com/t/topic/3193/15 "2012-02-06T16:29:51Z")

</div>

跪求 为嘛我每次下载mysql的数据库文件密码都不是像网上说的那种加密啊

---

<div class="post-metadata">

作者： ![RH00T](https://forum.90sec.com/letter_avatar_proxy/v4/letter/r/c0e974/32.png) [@RH00T](https://forum.90sec.com/u/RH00T)\
发布日期： [2012 年2 月 7 日 14:22 UTC](https://forum.90sec.com/t/topic/3193/16 "2012-02-07T14:22:15Z")

</div>

{:4\_63:} 不管怎么说看看先

---

<div class="post-metadata">

作者： ![hack2012](https://forum.90sec.com/user_avatar/forum.90sec.com/hack2012/32/908_2.png) [@hack2012](https://forum.90sec.com/u/hack2012)\
发布日期： [2012 年2 月 8 日 02:40 UTC](https://forum.90sec.com/t/topic/3193/17 "2012-02-08T02:40:17Z")

</div>

他都有Shell了，又有mysqlroot密码了，开启外连不是很简单吗？

---

<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)\
发布日期： [2012 年2 月 10 日 06:28 UTC](https://forum.90sec.com/t/topic/3193/18 "2012-02-10T06:28:54Z")

</div>

\*\*回复 [17#](http://www.90sec.org/redirect.php?goto=findpost&pid=14732&ptid=1431) _藤真_ \*\*

```
{:4_69:} 没有那么简单呀。有主建的话可以执行语句开启 但是失败几率还是很大的啊

```

---

<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)\
发布日期： [2012 年2 月 10 日 06:31 UTC](https://forum.90sec.com/t/topic/3193/19 "2012-02-10T06:31:33Z")

</div>

\*\*回复 [11#](http://www.90sec.org/redirect.php?goto=findpost&pid=14469&ptid=1431) _Miss冰_ \*\*

```
没有吧 那个帖子我测试过哦 我更建议一句话开启外连

```

---

<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)\
发布日期： [2012 年2 月 10 日 09:37 UTC](https://forum.90sec.com/t/topic/3193/20 "2012-02-10T09:37:41Z")

</div>

思路是亮点，可惜应用环境有限，多谢分享。

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