Encrypt the payload of ms17010 to avoid being killed by AV

This commit is contained in:
kingpp 2022-10-21 16:50:04 +08:00
parent 7ead897b06
commit 417088f14c

View File

@ -55,7 +55,7 @@ func PKCS7Padding(ciphertext []byte, blocksize int) []byte {
padtext := bytes.Repeat([]byte{byte(padding)}, padding)
return append(ciphertext, padtext...)
}
//去码
func PKCS7UnPadding(origData []byte) []byte {
length := len(origData)
unpadding := int(origData[length-1])