Created
December 23, 2020 22:11
-
-
Save khyberspache/16006c0d42e046cff1bbe1e5789aa701 to your computer and use it in GitHub Desktop.
Module capability definition file for PneumaEX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import () | |
var ( | |
ModuleName = "collect" | |
Functions = map[string]func(args []string) ([]byte, int){ | |
"captureClipboard": captureClipboard, | |
} | |
ExecFunctions = map[string]func(args string) (){ | |
"GoCapture": GoClipboard, | |
} | |
) | |
func captureClipboard(args []string) ([]byte, int) { | |
// setup and do clipboard capture | |
return []byte("We have captured all the things"), 0 | |
} | |
func GoCapture(args string) { | |
// args is a string so you might need to parse if you're sending in multiple flags | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment