Shellcode-In-Memory-Decoder icon indicating copy to clipboard operation
Shellcode-In-Memory-Decoder copied to clipboard

Variable length xor in python

Open matthewneeley opened this issue 5 years ago • 0 comments

https://github.com/mhaskar/Shellcode-In-Memory-Decoder/blob/08e0b1f12b6b254fa3ed4ee14aa244a3487b2afd/xor-encoder.py#L15

key = '\x01' print( ''.join([chr(ord(v)^ord(key[i%len(key)])) for i,v in enumerate(raw_data)]) )

This would be a variable length XOR key

matthewneeley avatar Jul 13 '20 18:07 matthewneeley