Information decryption failure and serious failure between pivots and server(bug)
this part just used in sliver/implant/sliver/transports/pivotclients/pivotclient.go ReadEnvelope function line 379:
- plaintext, err := p.serverCipherCtx.Decrypt(peerEnvelope.Data) So we need to split the function into two parts,called when the ReadEnvelope function is needed, otherwise the signature authentication should be discarded
The reason is that the 246 lines of ciphertext, err := pivotSession.CipherCtx.Encrypt(keyExRespEnvelope) in the ciphertext, err := pivotSession.CipherCtx.Encrypt(keyExRespEnvelope) of the serverKeyExchange function in the server, the function picture is as follows
path: server/cryptography/cryptography.go line 268.
Do you have a stack trace?
Do you have a stack trace?
when serverKeyExchange, there is an error, then return nothing
and then recive EOF
when write data,there is no sig, but read data, there is vertify