Exploit databaseDownload repository ZIP
GH-dab8305bf5bf53c8996070c6ceb2b2bb
yzw641725631-boop/windows-php7-security-backports-for-php2shell
Sources for CVE-2026-109618
412 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files16
yzw641725631-boop/windows-php7-security-backports-for-php2shellRevision 051a7920b7e7
- ↑..Parent directory
- Install-Legacy.cmd
- Install-Php734Legacy.ps1
- Install-Php734Port.ps1
- Install.cmd
- Invoke-Php734Installer.ps1
- LEGACY-INSTALL.zh-en.md
- Legacy-ProcessCapture.cs
- Php734-Deployment.Common.ps1
- Php734-Legacy.Common.ps1
- README.md
- Rollback-Legacy.cmd
- Rollback-Php734Legacy.ps1
- Rollback-Php734Port.ps1
- Rollback.cmd
- legacy-helper.php
- legacy-runtime-files.json
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
php7.3/7.3.4/installer/Legacy-ProcessCapture.cs
C# · 2,965 bytes// Deliberately uses only C# 2 and .NET 2.0 APIs for Windows PowerShell 2.0.
using System;
using System.Diagnostics;
using System.Text;
using System.Threading;
public sealed class Php734LegacyProcessResult
{
public int ExitCode;
public string Output;
public string Error;
}
public static class Php734LegacyProcessCapture
{
public static void ReplaceReceipt(string temporary, string destination)
{
// Pass a real CLR null; old PowerShell otherwise binds $null to an
// empty string for File.Replace's string backupFileName parameter.
System.IO.File.Replace(temporary, destination, null);
}
public static Php734LegacyProcessResult Run(string exe, string arguments, string cwd, int timeout)
{
Process process = new Process();
StringBuilder output = new StringBuilder();
StringBuilder error = new StringBuilder();
ManualResetEvent outputEnd = new ManualResetEvent(false);
ManualResetEvent errorEnd = new ManualResetEvent(false);
process.StartInfo.FileName = exe;
process.StartInfo.Arguments = arguments;
process.StartInfo.WorkingDirectory = cwd;
process.StartInfo.UseShellExecute = false;
process.StartInfo.CreateNoWindow = true;
process.StartInfo.RedirectStandardOutput = true;
process.StartInfo.RedirectStandardError = true;
process.OutputDataReceived += delegate(object sender, DataReceivedEventArgs e) {
if (e.Data == null) { outputEnd.Set(); }
else { lock (output) { output.AppendLine(e.Data); } }
};
process.ErrorDataReceived += delegate(object sender, DataReceivedEventArgs e) {
if (e.Data == null) { errorEnd.Set(); }
else { lock (error) { error.AppendLine(e.Data); } }
};
try
{
if (!process.Start()) { throw new InvalidOperationException("Unable to start PHP"); }
process.BeginOutputReadLine();
process.BeginErrorReadLine();
if (!process.WaitForExit(timeout))
{
process.Kill();
process.WaitForExit();
outputEnd.WaitOne(5000, false);
errorEnd.WaitOne(5000, false);
throw new TimeoutException("PHP startup check exceeded its timeout; only this test process was stopped");
}
if (!outputEnd.WaitOne(5000, false) || !errorEnd.WaitOne(5000, false))
{
throw new TimeoutException("PHP output capture did not finish");
}
Php734LegacyProcessResult result = new Php734LegacyProcessResult();
result.ExitCode = process.ExitCode;
result.Output = output.ToString();
result.Error = error.ToString();
return result;
}
finally
{
process.Dispose();
outputEnd.Close();
errorEnd.Close();
}
}
}