31 lines
638 B
Markdown
31 lines
638 B
Markdown
## build the dll
|
|
|
|
requires zig 0.16.x
|
|
|
|
```bash
|
|
cd evasion
|
|
zig build -Dtarget=x86_64-windows-gnu -Doptimize=ReleaseFast
|
|
# → zig-out/bin/valak.dll
|
|
```
|
|
|
|
cross-compiles from any OS. output is a PE32+ DLL for x64 Windows, about 100KB.
|
|
|
|
## build the loader (optional)
|
|
|
|
if you need a minimal shellcode loader to get your implant running:
|
|
|
|
```bash
|
|
# drop your Sliver .bin as kage/src/payload.bin
|
|
cd ../kage
|
|
zig build -Dtarget=x86_64-windows-gnu -Doptimize=ReleaseFast
|
|
# → zig-out/bin/kage.exe
|
|
```
|
|
|
|
## integrate with sliver
|
|
|
|
```bash
|
|
./scripts/integrate.sh ~/projects/sliver
|
|
```
|
|
|
|
see [sliver-integration.md](sliver-integration.md) for details.
|