MCPcopy
hub / github.com/ph4ntonn/Stowaway / achieveUUID

Function achieveUUID

agent/initial/method.go:29–44  ·  view source on GitHub ↗
(conn net.Conn, secret string)

Source from the content-addressed store, hash-verified

27var STOP_FORWARDING string
28
29func achieveUUID(conn net.Conn, secret string) (uuid string) {
30 rMessage := protocol.PrepareAndDecideWhichRProtoFromUpper(conn, secret, protocol.TEMP_UUID)
31 fHeader, fMessage, err := protocol.DestructMessage(rMessage)
32
33 if err != nil {
34 conn.Close()
35 log.Fatalf("[*] Fail to achieve UUID, Error: %s", err.Error())
36 }
37
38 if fHeader.MessageType == protocol.UUID {
39 mmess := fMessage.(*protocol.UUIDMess)
40 uuid = mmess.UUID
41 }
42
43 return uuid
44}
45
46func NormalActive(userOptions *Options, proxy share.Proxy) (net.Conn, string) {
47 var sMessage, rMessage protocol.Message

Callers 3

NormalActiveFunction · 0.85
NormalPassiveFunction · 0.85
SoReusePassiveFunction · 0.85

Calls 2

DestructMessageFunction · 0.92

Tested by

no test coverage detected