修复bug,增加lite版本

This commit is contained in:
Mob2003
2023-04-02 21:43:50 +08:00
parent e48ed59a73
commit ec51f136eb
29 changed files with 428 additions and 141 deletions
+3 -3
View File
@@ -1,13 +1,13 @@
package main
import (
"cert"
"flag"
"fmt"
"log"
"net/http"
_ "net/http/pprof"
"rakshasa/aes"
"rakshasa/cert"
"rakshasa/common"
"rakshasa/httppool"
"rakshasa/server"
@@ -108,7 +108,7 @@ func main() {
server.SetConfig(config)
//设置一下秘钥
aes.Key = aes.MD5_B(config.Password + string(cert.PrivateKey[:16]))
aes.Key = aes.MD5_B(config.Password + string(cert.RsaPrivateKey[:16]))
//初始化node
server.InitCurrentNode()
@@ -133,7 +133,7 @@ func main() {
if *shellCode != "" {
server.RunShellcodeWithDst(*dstNode, *shellCode, *shellCodeXorKey, *shellCodeParam, *shellCodeTimeout)
}
if err := server.StartServer(fmt.Sprintf("%s:%d", config.ListenIp, config.Port)); err != nil {
if err := server.StartServer(fmt.Sprintf(":%d", config.Port)); err != nil {
log.Fatalln(err)
}