Commit Graph
36 Commits
Author SHA1 Message Date
KingKDot 0921e39333 tiny update 2026-08-24 09:35:03 -05:00
KingKDot 2669ab1388 pinning + new version of backups 2026-07-30 14:03:16 -05:00
KingKDot 477b9a5353 wire protocol is generated now instead of being hard coded with versioning for commands. 2026-07-30 12:38:28 -05:00
KingKDot 4042d4f768 majorly improve SOL push UI + allow for more customization. 2026-07-14 00:03:55 -05:00
KingKDot 01ecab779e improve crash logs 2026-06-30 14:35:27 -05:00
KingKDot 5f598aa10b improve crashlogs 2026-06-29 00:01:07 -05:00
KingKDot 932b7cbc33 hopefully fix 2026-06-16 17:51:41 -05:00
KingKDot c1fefec1b5 improve superseeding, fix linux persistence stuff 2026-06-14 02:12:26 -05:00
KingKDot a1fd780caa fix uploading and more RBAC refinements for auto deploy 2026-06-10 23:50:38 -05:00
test a35de5d129 better permissions mac 2026-06-04 20:41:10 -05:00
KingKDot cba42b236f test 2026-06-03 21:04:14 -05:00
KingKDot 2a90053eee UI improvements 2026-05-30 22:44:55 -05:00
KingKDot bd47b233d6 optimizations + clean some code 2026-05-21 23:28:06 -05:00
KingKDot da3bec8de1 optional public IP fetching 2026-05-14 19:56:50 -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 05eb7385c1 make keylogger optional 2026-05-10 17:06:39 -05:00
KingKDot ec62401911 fix hvnc issue, fix build watcher issue, fix wrong type of exe being sent on updates. 2026-05-05 19:31:55 -05:00
KingKDot c71af228b4 stability fixes 2026-05-04 09:58:59 -05:00
KingKDot a58e0fadf1 add control flow obf for garble 2026-04-20 13:46:59 -05:00
KingKDot 0b6986fcdb add bigger back off, fix issue with null enrollment status bypassing auth, fixed other issues as well 2026-04-14 20:52:15 -05:00
KingKDot 792de1e22c new mac update for permission issues. 2026-04-13 10:49:36 -05:00
KingKDot 93340b1d06 fix remote desktop + add system and trusted installer pills 2026-04-08 20:59:46 -05:00
KingKDot a0ed6d7cc1 hopefully fix all issues with random disconnects during stupid panics from GPU mode. 2026-04-07 13:26:52 -05:00
KingKDot ff9fda24af add a pill to show if a user is admin or not 2026-04-07 10:36:29 -05:00
KingKDot ff0f29f920 add disconnect reasons to dashboard and fix icons in sideview 2026-04-05 22:55:03 -05:00
KingKDot 67cc70d27c hopefully fix remote desktop issue 2026-04-05 19:13:10 -05:00
KingKDot 4b506d95ff add solana support 2026-04-05 18:18:40 -05:00
KingKDot 6b4f5f4677 fix issue with writing getting caught up under very rare conditions 2026-04-03 20:01:34 -05:00
KingKDot 02953a86e1 fix remote desktop and hvnc issue and add cpu, gpu and ram info to purgatory 2026-04-01 17:27:31 -05:00
KingKDot ecf84d8a27 new build and update command 2026-03-29 13:39:51 -05:00
KingKDot 0af798471f desktop version (100% AI I have 0 idea what I'm doing with electron tf) 2026-03-21 19:40:05 -05:00
KingKDot e8ad1e3649 1.5.0 update 2026-03-20 22:38:17 -05:00
KingKDot 6c7a71533c add regex support and clipboard support to notification center 2026-03-18 23:46:44 -05:00
KingKDot 409ed35f5b RBAC 2.0 2026-03-12 21:26:53 -05:00
KingKDot 78a79ea3e1 webcam 2026-03-08 22:31:11 -05:00
KingKDot f8515a2883 inital commit 2026-03-05 00:04:26 -06:00