PayloadGenerator.py 250 B

1234567891011121314
  1. from numpy.random import bytes
  2. def generate_payload(size:int=0):
  3. """
  4. Generates a payload of random bytes of the given amount
  5. :param size: number of generated bytes
  6. :return: the generated payload
  7. """
  8. payload = bytes(size)
  9. return payload