Przeglądaj źródła

Payload Generator updatet

Marcel Juschak 7 lat temu
rodzic
commit
835f90778f
1 zmienionych plików z 4 dodań i 4 usunięć
  1. 4 4
      code/ID2TLib/PayloadGenerator.py

+ 4 - 4
code/ID2TLib/PayloadGenerator.py

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