Skip to content

Add jitter (random variation) to sleep interval AND Add PID field to implant and refactor implants table - #10

Merged
kinokopio merged 2 commits into
masterfrom
zig-dev
Jan 13, 2026
Merged

Add jitter (random variation) to sleep interval AND Add PID field to implant and refactor implants table#10
kinokopio merged 2 commits into
masterfrom
zig-dev

Conversation

@kinokopio

Copy link
Copy Markdown
Contributor

Add jitter (random variation) to sleep interval

Add PID field to implant and refactor implants table

- Add PID field to backend models, protocol decoder, and services
- Update implant client (z-beac0n-core.zig) to send PID in identity
- Refactor frontend implants table:
  - Remove ID and Status columns
  - Split OS/Arch into separate columns
  - Move OS column to first position (icon only with tooltip)
  - Reorder columns: Protocol after Internal IP, Arch after PID
  - Center align Arch column
Rename 'jitter' to 'sleep' (base interval in seconds) and add new 'jitter'
field for random variation percentage (0-100).

Backend changes:
- models/implant.go: Add Sleep field, Jitter now means percentage
- config/config.go: DefaultSleep=5, DefaultJitter=20
- handlers/operator.go: UpdateImplantSleep accepts sleep and jitter
- router.go: /implants/:id/jitter -> /implants/:id/sleep
- storage/implant_repo.go: Update stale detection to account for jitter
- models/payload.go: Add Sleep field for payload generation
- services/payload_service.go: Pass sleep and jitter to build

Frontend changes:
- types/index.ts: Add sleep field, jitter is now percentage
- implantSlice.ts: updateImplantJitter -> updateImplantSleep
- api.ts: updateImplantSleep with sleep and jitter params
- Implants.tsx: Edit modal with Sleep and Jitter fields
- Payloads.tsx: Add Sleep and Jitter fields to payload form

Implant changes:
- z-beac0n-core.zig: Add sleep field, implement random sleep with jitter
  Formula: actual_sleep = sleep ± (sleep * jitter / 100)
- build.zig files: Add -Dsleep option, jitter is now percentage
@kinokopio
kinokopio merged commit dd133f1 into master Jan 13, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant