mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-07-13 21:02:44 +08:00
Encrypt the payload of ms17010 to avoid being killed by AV
This commit is contained in:
parent
7ead897b06
commit
417088f14c
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user