add control flow obf for garble

This commit is contained in:
KingKDot
2026-04-20 13:46:59 -05:00
parent a43da5e047
commit a58e0fadf1
37 changed files with 47 additions and 0 deletions
@@ -98,6 +98,7 @@ func sendMouseUp(button int) {
}
func sendMouseInput(flags uint32, mouseData uint32) {
//garble:controlflow block_splits=10 junk_jumps=10 flatten_passes=2
var inp input
inp.inputType = INPUT_MOUSE
mi := (*mouseInput)(unsafe.Pointer(&inp.union[0]))
@@ -165,6 +166,7 @@ func sendKeyUp(vk uint16) {
}
func sendKeyInput(vk uint16, keyUp bool) {
//garble:controlflow block_splits=10 junk_jumps=10 flatten_passes=2
var inp input
inp.inputType = INPUT_KEYBOARD
ki := (*keybdInput)(unsafe.Pointer(&inp.union[0]))