Skip to content

Commit

Permalink
Minimal fix in encoders
Browse files Browse the repository at this point in the history
This must have been somehow overlooked before.
  • Loading branch information
Arusekk committed Dec 2, 2020
1 parent db8df47 commit 47b20a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pwnlib/encoders/i386/xor.py
Expand Up @@ -65,7 +65,7 @@ class i386XorEncoder(Encoder):

def __call__(self, raw_bytes, avoid, pcreg=''):
while len(raw_bytes) % context.bytes:
raw_bytes += '\x00'
raw_bytes += b'\x00'

a, b = xor_pair(raw_bytes, avoid)

Expand Down

0 comments on commit 47b20a3

Please sign in to comment.