2025-07-20 18:46:55 +02:00
|
|
|
package main
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"github.com/DariusKlein/kleinCommand/common"
|
|
|
|
|
"github.com/DariusKlein/kleinCommand/services"
|
|
|
|
|
"log"
|
|
|
|
|
"net"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
var socketPath = common.ParrotServiceSocketPath
|
|
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
|
services.BaseService(socketPath, func(command string, conn net.Conn) {
|
2025-07-20 21:14:17 +02:00
|
|
|
_, err := conn.Write([]byte(command))
|
|
|
|
|
if err != nil {
|
|
|
|
|
log.Println(err.Error())
|
2025-07-20 18:46:55 +02:00
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|