killchain-compendium/exploit/binaries/buffer_overflow/bad_chars.py

9 lines
217 B
Python
Raw Normal View History

2021-08-23 01:13:54 +02:00
#!/usr/bin/env python3
from __future__ import print_function
listRem = "\\x0a".split("\\x")
for x in range(1, 256):
if "{:02x}".format(x) not in listRem:
print("\\x" + "{:02x}".format(x), end='')
print()