Update encoder.py
parent
45bc89c9c0
commit
1dbc2812b9
|
@ -61,7 +61,10 @@ class Encoder:
|
|||
return self.__rand_int(buffer, "smallint", 1, 2)
|
||||
|
||||
def rand_int(self, buffer):
|
||||
return self.__rand_int(buffer, "int", 2, 5)
|
||||
current = self.__rand_int(buffer, "int", 2, 5)
|
||||
if current < 100:
|
||||
self.rand_int(self, buffer)
|
||||
return current
|
||||
|
||||
def __rand_int(self, buffer, var, min, max):
|
||||
iterator = self.helper.GetConfig("varcount")
|
||||
|
@ -103,4 +106,4 @@ class Encoder:
|
|||
else:
|
||||
args = args[:-3]
|
||||
|
||||
return buffer.replace("[payload]", vars).replace("[payload_args]", args)
|
||||
return buffer.replace("[payload]", vars).replace("[payload_args]", args)
|
||||
|
|
Loading…
Reference in New Issue