PayloadGenerator.py 354 B

1234567891011121314
  1. import string
  2. import random
  3. def generate_Payload(size:int=0):
  4. """
  5. Generates a payload of random digits and letters of the given size
  6. :param size: number of generated characters, that make up the payload
  7. """
  8. payload = "".join(random.choice(string.ascii_uppercase + string.ascii_lowercase + string.digits) for i in range (0,size))
  9. return payload