diff options
| author | Carver Harrison <[email protected]> | 2016-07-22 20:44:20 -0700 |
|---|---|---|
| committer | Carver Harrison <[email protected]> | 2016-07-22 20:44:20 -0700 |
| commit | a948ceb36cdf3600d810b0c03253d69f448f51eb (patch) | |
| tree | f3a89061b9ff86d9c779cc9152714c4481b13f2c | |
| parent | 0a87d135d62576f1575a66f5f5707e2bbf8e2906 (diff) | |
| download | shiftos-c-_theultimatehacker-master.tar.gz shiftos-c-_theultimatehacker-master.tar.bz2 shiftos-c-_theultimatehacker-master.zip | |
Liek da naem
| -rw-r--r-- | source/WindowsFormsApplication1/Apps/Terminal.cs | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/source/WindowsFormsApplication1/Apps/Terminal.cs b/source/WindowsFormsApplication1/Apps/Terminal.cs index 5681487..4fb6899 100644 --- a/source/WindowsFormsApplication1/Apps/Terminal.cs +++ b/source/WindowsFormsApplication1/Apps/Terminal.cs @@ -1686,15 +1686,9 @@ HIJACKER is a utility that allows you to hijack any system and install ShiftOS o p.StartInfo.ErrorDialog = false; p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; p.StartInfo.WorkingDirectory = current_dir; - this.Invoke(new Action(() => - { - p.Start(); - StreamWriter sw = p.StandardInput; - while (!p.HasExited) - { - txtterm.Text += p.StandardOutput.Read(); - } - })); + p.Start(); + WriteLine(p.StandardOutput.ReadToEnd()); + p.WaitForExit(); } #endregion |
