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