Skip to content

Commit

Permalink
-Developing 1.8 (ready for release)
Browse files Browse the repository at this point in the history
-Fixed the VAC-ByPass for the latest steam client update
  • Loading branch information
ByMynix committed Jun 24, 2023
1 parent 5e87ae9 commit a720ca4
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 17 deletions.
47 changes: 32 additions & 15 deletions TeaInjector/Form1.cs
Expand Up @@ -36,7 +36,7 @@ private void Form1_Load(object sender, EventArgs e)
}

var client = new WebClient();
if ("No Updates available!" == client.DownloadString("https://bymynix.de/teainjector/Update%20Checker%201.7.txt"))
if ("No Updates available!" == client.DownloadString("https://bymynix.de/teainjector/Update%20Checker%201.8.txt"))
{
poisonLabel4.Text = "No Updates available! You are currently using the latest version of TeaInjector";
}
Expand Down Expand Up @@ -211,22 +211,41 @@ private static string GetPathDLL()
private async void poisonButton1_Click(object sender, EventArgs e)
{
poisonButton1.Enabled = false;
Process procSteamRestart;
string strSteamInstallPath = (string)Registry.GetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Valve\Steam", "InstallPath", null);
string processNameSteam = "Steam";
string[] SteamDependencies = { "hl2", "Steam", "steamwebhelper", "SteamService" };

foreach (var process in Process.GetProcessesByName("hl2"))
{
process.Kill();
}
foreach (var process in Process.GetProcessesByName("Steam"))
Process[] processes = Process.GetProcessesByName(processNameSteam);
if (processes.Length > 0)
{
process.Kill();
}
foreach (var process in Process.GetProcessesByName("steamwebhelper"))
{
process.Kill();
foreach (string processName in SteamDependencies)
{
foreach (var process in Process.GetProcessesByName(processName))
{
process.Kill();
}
}
}
foreach (var process in Process.GetProcessesByName("SteamService"))
else
{
process.Kill();
procSteamRestart = Process.Start(strSteamInstallPath + @"\Steam.exe");
await Task.Run(() =>
{
while (string.IsNullOrEmpty(procSteamRestart.MainWindowTitle))
{
procSteamRestart.Refresh();
}
});

foreach (string processName in SteamDependencies)
{
foreach (var process in Process.GetProcessesByName(processName))
{
process.Kill();
}
}

}

await Task.Run(() => {
Expand All @@ -240,8 +259,6 @@ private async void poisonButton1_Click(object sender, EventArgs e)
});

System.IO.File.WriteAllBytes(AppPath + @"\ServiceHub2.TaskRun.Microsoft.dll", Properties.Resources.VAC_ByPass);

string strSteamInstallPath = (string)Registry.GetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Valve\Steam", "InstallPath", null);
var proc = Process.Start(strSteamInstallPath + @"\Steam.exe");

await Task.Run(() => {
Expand Down
4 changes: 2 additions & 2 deletions TeaInjector/Properties/AssemblyInfo.cs
Expand Up @@ -32,5 +32,5 @@
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
// indem Sie "*" wie unten gezeigt eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.7")]
[assembly: AssemblyFileVersion("1.7")]
[assembly: AssemblyVersion("1.8")]
[assembly: AssemblyFileVersion("1.8")]

0 comments on commit a720ca4

Please sign in to comment.