Commit Graph
22 Commits
Author SHA1 Message Date
KingKDot 7a8fcf39ec mess around with a rust agent version with just rev shell. 2026-08-19 09:54:52 -05:00
KingKDot 7800c24c65 Remove WASM plugin support 2026-08-18 21:41:28 -05:00
KingKDot 76e0bc77c0 add a little more plugin options for people who make plugins that need to be auto loaded. 2026-07-31 01:47:07 -05:00
KingKDot 9288824fa6 2 more AI plugins for shits n giggles 2026-07-30 22:31:13 -05:00
KingKDot 6c208da75f small plugin changes + make minesweeper and snake plugin 2026-07-30 21:35:17 -05:00
KingKDot 2c42a989cf dll plugin loading heavily improved 2026-06-28 23:46:56 -05:00
KingKDot 84de7050fb encrypted logs, more customization for admins. 2026-06-27 16:40:54 -05:00
KingKDot 4b3fd52bc5 allow for plugin badges 2026-06-25 11:45:28 -05:00
KingKDot 5f75f5ca6f modularize docs 2026-06-22 13:04:33 -05:00
KingKDot 7aaf115e2f build hook plugins 2026-06-22 12:54:12 -05:00
KingKDot 6180e7f1a2 make example plugin slightly better to show examples 2026-06-22 11:00:41 -05:00
KingKDot 30dfdda3ed plugins 2.0 update 2026-06-22 10:52:27 -05:00
KingKDot da8bd8c961 reg key editor plugin 2026-06-17 16:15:36 -05:00
KingKDot 5933297686 completely move off sharp, use monaco for the editor now and use tabulator for tables (much easier and better performance). 2026-05-30 20:38:32 -05:00
KingKDot bbd61af672 make chats allow file uploading 2026-05-18 23:18:57 -05:00
Michael 4fae9e56cf Shellcode clean (#21)
* feat: shellcode output via Donut (Windows) + memfd stub (Linux)

- Donut (Windows): PE → PIC shellcode (.bin) via donut-manager.ts
  Flags: -f1 -a<arch> -b3 -x1 (continue on AMSI fail, thread exit)
- Linux shellcode: 113-byte x86_64 memfd_create+execveat stub
  (linux-shellcode-manager.ts) wraps ELF for memfd_create+execveat
- Two-pass build for shellcode+persistence: Pass 1 = normal agent with
  persist compiled in; Pass 2 = selfembed agent that drops+registers
  Pass 1 on first run (isRunningInMemory() gates the path)
- Show console option: shellcode_console build tag calls AllocConsole()
  on start for debug builds; AttachConsole fallback included
- isRunningInMemory() Windows: VirtualQuery on .data sentinel
  (MEM_PRIVATE = injected, MEM_IMAGE = normal disk load) replaces
  os.Executable() which returned host process path when injected
- Build UI: Donut mode, Linux shellcode mode, show-console checkboxes;
  settings persisted across sessions via collectFormSettings()
- GODEBUG=netdns=cgo hardcoded in build env (fixes IPv6 DNS on VPN)
- Dockerfile: pre-seed Go module cache; add curl to runtime image
- docker-compose.yml: switch healthcheck to wget (curl absent in slim)

* fix: add missing shellcode UI functions and restore dynamic linking

applyDonutMode, applyLinuxShellcodeMode, and updateShellcodeCheckboxVisibility
were called throughout build.js but never defined, breaking platform selection
and the build button. Add the missing implementations.

Also remove forced -extldflags '-static' on Linux CGO builds; fully static
glibc binaries cannot call dlopen, which broke native plugin loading entirely.

* fix: call updateShellcodeCheckboxVisibility on page load

Shellcode rows were hidden on initial load because the function was only
wired to checkbox change events. Call it at startup and in applyFormSettings
so pre-selected platforms correctly show their shellcode options immediately.

* feat: Linux plugin subprocess shim for static-agent compatibility

Static musl binaries cannot call dlopen. Introduce a small C shim
(plugin_host.c) that is compiled at agent-build time into a
dynamically-linked binary, embedded via go:embed, and fork+exec'd to
load .so plugins on behalf of the static agent over a Unix socketpair.

Empty placeholder files allow go:embed to compile without error; the
real binaries are produced by build-process.ts before go build runs and
are never committed. Documents the IPC protocol and build matrix in
PLUGINS.md Section 12.

* fix: define sp_memfd_create/sp_write_all in subproc CGO preamble

CGO preamble functions are per-file translation units; so_memfd_create
and so_write_all from loader_linux.go are not visible in
loader_linux_subproc.go. Add local equivalents with sp_ prefix.

* fix: use CGO helper for shim memfd_create instead of syscall.SYS_MEMFD_CREATE

syscall.SYS_MEMFD_CREATE is not defined in Go stdlib syscall package.
Replace with sp_memfd_create_nocloe() CGO helper (flags=0, no CLOEXEC).

* fix: compile plugin host shim statically to avoid glibc version mismatch

A dynamically-linked shim compiled on Debian Bookworm (glibc 2.36) fails
on older glibc targets. Compile with -static so the shim is self-contained
and runs on any glibc version. Static glibc can still call dlopen at runtime
via the system ld-linux.so.2.

Also surface subprocess errors instead of silently falling through to dlopen
so failures are visible in the build log.

* Restore docker build cache
2026-05-13 22:55:51 -05:00
KingKDot 30b6c63cfc chat plugin (fully AI I'm not writing ts) 2026-05-13 10:11:22 -05:00
KingKDot 76cb47f8eb more stripping 2026-05-11 00:17:12 -05:00
KingKDot 273b35d326 improved plugin api 2026-05-03 00:29:05 -05:00
KingKDot 506e6c3746 add more plugin options + don't inject in HVNC if DXGI is set to off. 2026-04-20 18:58:27 -05:00
KingKDot 5ae17974d0 update readme 2026-04-15 20:17:39 -05:00
KingKDot 7367923ac5 organize repo 2026-04-15 11:11:53 -05:00