internal static string ControlCommandListindex(string p1, string p2, string p3, string CSRF, string password) { string doc = "<a href='exec?ps=$passwd$&CSRF=$CSRFtok$&com=msgbx&mbtitle=hello+It&close=1' >"; doc += "message box </a><hr />"; doc += "<a href='exec?ps=$passwd$&CSRF=$CSRFtok$&com=procstr&procnm=notepad' > "; doc += "launch Process </a>"; doc += "<hr /><a href='exec?ps=$passwd$&CSRF=$CSRFtok$&com=closeprocess&procnm=chrome.exe' >"; doc += "close process </a>"; doc += "<hr /><a href='exec?ps=$passwd$&CSRF=$CSRFtok$&com=procstr&procnm=explorer.exe&procpar=" + WebServer.EncodeUrlChars("@\"c:\"") + "' >"; doc += "start explorer </a>"; doc += "<hr /><a href='exec?ps=$passwd$&CSRF=$CSRFtok$&com=closeprocess&procnm=explorer' >"; doc += "close explorer </a>"; doc += "<hr /><a href='exec?ps=$passwd$&CSRF=$CSRFtok$&com=procstr&procnm=bg.jpg&proctype=pic' >"; doc += "Display Pic </a>"; doc += "<hr /><a href='exec?ps=$passwd$&CSRF=$CSRFtok$&com=closeallprocess&procnm=chrome.exe' >"; doc += "close all Process </a>"; doc += "<hr /><a href='exec?ps=$passwd$&CSRF=$CSRFtok$&com=mutesys&proctype=sound' >"; doc += " mute system sound </a>"; doc += "<hr /><a href='exec?ps=$passwd$&CSRF=$CSRFtok$&com=mvcrs&crsx=35&shftdir=shift' >"; doc += "move cursor right </a>"; doc += "<hr /><a href='exec?ps=$passwd$&CSRF=$CSRFtok$&com=mvcrs&crsx=35&shftdir=shiftback' >"; doc += "move cursor left </a>"; doc += "<hr /><a href='exec?ps=$passwd$&CSRF=$CSRFtok$&com=mvcrs&crsy=35&shftdir=shiftback' >"; doc += "move cursor up </a>"; doc += "<hr /><a href='exec?ps=$passwd$&CSRF=$CSRFtok$&com=ls&drpth=" + WebServer.EncodeUrlChars("/") + "' >"; doc += "list </a>"; doc += "<hr /><a href='exec?ps=$passwd$&CSRF=$CSRFtok$&com=mvcrs&crsy=35&shftdir=shift' >"; doc += "move cursor down </a>"; doc += "<hr /><a href='exec?ps=$passwd$&CSRF=$CSRFtok$&com=msclk' >"; doc += "left mouse click </a>"; doc += "<hr /><a href='exec?ps=$passwd$&CSRF=$CSRFtok$&com=msrclk' >"; doc += "right mouse click </a>"; doc += "<hr /><a href='exec?ps=$passwd$&CSRF=$CSRFtok$&com=prntscr' >"; doc += "Print screen</a>"; doc += "<hr /><a href='exec?ps=$passwd$&CSRF=$CSRFtok$&com=hidecl&frm=0' >"; doc += "Hide Server</a>"; doc += "<hr /><a href='exec?ps=$passwd$&CSRF=$CSRFtok$&com=showcl&frm=0' >"; doc += "show Server</a>"; doc = doc.Replace("$passwd$", password); doc = doc.Replace("$CSRFtok$", CSRF); return(doc); }
private void SetIdAndVal(string id, string val) { string Decoded = WebServer.DecodeUrlChars(val); id = id.ToLower().Trim(); int val_int = 10; val_int = AppHelper.StringToint(val, 10); switch (id) { case "com": { if (val == "msgbx") { this.ComType = RemoteCommandType.MessageBox; } else if (val == "procstr" || val == "proc") { this.ComType = RemoteCommandType.process; } else if (val == "closproc" || val == "closeprocess") { this.ComType = RemoteCommandType.CloseProcess; } else if (val == "closallproc" || val == "closeallprocess") { this.ComType = RemoteCommandType.CloseAllProcess; } else if (val == "mvcrs" || val == "movecursor") { this.ComType = RemoteCommandType.MoveMouse; } else if (val == "msclk" || val == "mouseclick") { this.ComType = RemoteCommandType.MouseClick; } else if (val == "mute" || val == "mutesys") { this.ComType = RemoteCommandType.MuteSystemSound; } else if (val == "msrclk" || val == "mouseright") { this.ComType = RemoteCommandType.MouseRightClick; } else if (val == "prntscr" || val == "printscreen") { this.ComType = RemoteCommandType.PrintScreenShot; } else if (val == "ls" || val == "list") { this.ComType = RemoteCommandType.LS; } else if (val == "hdcl" || val == "hidecl") { this.ComType = RemoteCommandType.HideClient; } else if (val == "shcl" || val == "showcl") { this.ComType = RemoteCommandType.ShowClient; } break; } case "mbtitle": this.MessageBoxCap = Decoded; break; case "frm": this.formvisible = AppHelper.BoolTruefalsefromString(Decoded); break; case "dirpath": case "directorypath": case "drpth": this.DirPath = Decoded; break; case "crsx": { this.X = val_int;; break; } case "close": { this.closeMessage = AppHelper.BoolTruefalsefromString(Decoded); break; } case "crsy": { this.Y = val_int;; break; } case "procnm": this.ProcessName = val; break; case "proctype": this.ViewImageProcess = (val == "pic"); break; case "procpar": this.NoProcessPar = false; this.ProcessPar = Decoded; break; case "shftdir": this.CursorGoingBack = (val.Contains("back")); break; } }
internal static string ControlCommandListindex(string p1, string p2, string p3, string password) { string doc = "<a href='exec?passwd&com=msgbx&mbtitle=hello+It' >"; doc += "message box </a><hr />"; doc += "<a href='exec?passwd&com=procstr&procnm=notepad' > "; doc += "launch Process </a>"; doc += "<hr /><a href='exec?passwd&com=closeprocess&procnm=chrome.exe' >"; doc += "close process </a>"; doc += "<hr /><a href='exec?passwd&com=procstr&procnm=explorer.exe&procpar=" + WebServer.EncodeUrlChars("@\"c:\"") + "' >"; doc += "start explorer </a>"; doc += "<hr /><a href='exec?passwd&com=closeprocess&procnm=explorer' >"; doc += "close explorer </a>"; doc += "<hr /><a href='exec?passwd&com=procstr&procnm=bg.jpg&proctype=pic' >"; doc += "Display Pic </a>"; doc += "<hr /><a href='exec?passwd&com=closeallprocess&procnm=chrome.exe' >"; doc += "close all Process </a>"; doc = doc.Replace("passwd", password); return(doc); }