// Start is called before the first frame update void Start() { PlayerObj = GameObject.Find("player"); EnemyCountObj = GameObject.Find("Camera/Enemys"); Timer = 0f; EndTimer = 0f; one1 = false; one2 = false; anim1 = Back.GetComponent <Animator>(); anim2 = ClearText.GetComponent <Animator>(); anim3 = FadeOut.GetComponent <Animator>(); anim4 = failedText.GetComponent <Animator>(); }
//检测不到数据 private void clearDataText() { if (label6.InvokeRequired) { ClearText d = new ClearText(clearDataText); this.Invoke(d); } else { label6.Text = ""; label6.Text = "暂无人进入"; label4.Text = ""; label4.Text = "0 v"; } }
public static void RunAction(Runner runner) { var action = new ClearText(); var driver = (WebDriver)runner.GetDriver(); driver.Navigate().GoToUrl("http://executeautomation.com/demosite/Login.html"); driver.FindElementByName("UserName").SendKeys("admin"); driver.FindElementByName("Password").SendKeys("admin"); //Call the ClearText addon - Password control runner.Run(action, By.Name("Password")); Thread.Sleep(3000); }
public void Clear() { ClearText?.Invoke(this, EventArgs.Empty); }
public void Execute(Dictionary <string, string> arguments) { string[] user; string domain = ""; string path = ""; string destination = ""; string[] computernames; var hash = new NTHash(); var password = new ClearText(); string module = ""; string moduleargument = ""; List <string> flags = new List <string>(); if (arguments.ContainsKey("/module")) { module = arguments["/module"]; } if (arguments.ContainsKey("/m")) { module = arguments["/m"]; } if (arguments.ContainsKey("/impersonate") || arguments.ContainsKey("/imprs")) { flags.Add("impersonate"); } // if (arguments.ContainsKey("/domain")) { domain = arguments["/domain"]; } else { domain = "."; } if (arguments.ContainsKey("/user")) { if (File.Exists(arguments["/user"])) { user = File.ReadAllLines(arguments["/user"]); } else { string[] parts = arguments["/user"].Split('\\'); if (parts.Length == 2) { domain = parts[0]; user = parts[1].Split(','); } else { user = arguments["/user"].Split(','); } } } else { Console.WriteLine("[-] /user must be supplied!"); return; } if (arguments.ContainsKey("/computername")) { if (File.Exists(arguments["/computername"])) { computernames = File.ReadAllLines(arguments["/computername"]); } else { computernames = arguments["/computername"].Split(','); } } else { Console.WriteLine("[-] /computername must be supplied!"); return; } if (arguments.ContainsKey("/password")) { if (File.Exists(arguments["/password"])) { password.Cleartext = File.ReadAllLines(arguments["/password"]); } else { password.Cleartext = arguments["/password"].Split(','); } } else if (arguments.ContainsKey("/ntlm")) { if (File.Exists(arguments["/ntlm"])) { hash.Nthash = File.ReadAllLines(arguments["/ntlm"]); } else { hash.Nthash = arguments["/ntlm"].Split(','); } } else { Console.WriteLine("[-] /password or /ntlm must be supplied"); return; } if (module.Contains("exec") && moduleargument.Length == 0) { Console.WriteLine("[-] Missing exec argument"); return; } if (module.Contains("assembly") && !File.Exists(path)) { Console.WriteLine("[-] Missing assembly path"); return; } if (module.Contains("download") && (String.IsNullOrEmpty(path) || String.IsNullOrEmpty(destination))) { Console.WriteLine("[-] Need path and destination"); return; } if (module.Contains("upload") && (String.IsNullOrEmpty(path) || String.IsNullOrEmpty(destination))) { Console.WriteLine("[-] Need path and destination"); return; } if (flags.Contains("impersonate")) { foreach (string computername in computernames) { CimSession cimSession; cimSession = Cim.newSession(computername, "", "", "", true); Scan.CIM(cimSession, module); } } else if (password.Cleartext != null) { Lib.ntlm.Ntlm(user, domain, password, computernames, module, moduleargument, path, destination, flags, "cim"); } else { Console.WriteLine("[-] Need plaintext password or /impersonate for cim"); return; } }
public TextController(ILogger <TextController> logger, IOptions <AppSettings> settings) { _clearText = new ClearText(); _logger = logger; AppSettings = settings.Value; }
public void Execute(Dictionary <string, string> arguments) { string[] user; string domain = ""; string[] computernames; var hash = new NTHash(); var password = new ClearText(); string module = ""; string moduleargument = ""; List <string> flags = new List <string>(); if (arguments.ContainsKey("/m")) { module = arguments["/m"]; } if (arguments.ContainsKey("/module")) { module = arguments["/module"]; } if (arguments.ContainsKey("/a")) { moduleargument = arguments["/a"]; } if (arguments.ContainsKey("/argument")) { moduleargument = arguments["/argument"]; } if (arguments.ContainsKey("/domain")) { domain = arguments["/domain"]; } else { domain = "."; } if (arguments.ContainsKey("/user")) { if (File.Exists(arguments["/user"])) { user = File.ReadAllLines(arguments["/user"]); } else { string[] parts = arguments["/user"].Split('\\'); if (parts.Length == 2) { domain = parts[0]; user = parts[1].Split(','); } else { user = arguments["/user"].Split(','); } } } else { Console.WriteLine("[-] /user must be supplied!"); return; } if (arguments.ContainsKey("/computername")) { if (File.Exists(arguments["/computername"])) { computernames = File.ReadAllLines(arguments["/computername"]); } else { computernames = arguments["/computername"].Split(','); } } else { Console.WriteLine("[-] /computername must be supplied!"); return; } if (arguments.ContainsKey("/password")) { if (File.Exists(arguments["/password"])) { password.Cleartext = File.ReadAllLines(arguments["/password"]); } else { password.Cleartext = arguments["/password"].Split(','); } } else if (arguments.ContainsKey("/ntlm")) { if (File.Exists(arguments["/ntlm"])) { hash.Nthash = File.ReadAllLines(arguments["/ntlm"]); } else { hash.Nthash = arguments["/ntlm"].Split(','); } } else { Console.WriteLine("[-] /password or /ntlm must be supplied"); return; } if (password.Cleartext != null) { NtlmSmb(user, domain, password, computernames, module, moduleargument); } else { NtlmSmb(user, domain, hash, computernames, module, moduleargument); } }
private void Awake() { S = this; this.gameObject.SetActive(false); }