Update encoder.py

patch-1
Mr.Un1k0d3r 2017-10-18 17:44:04 -04:00 committed by GitHub
parent 45bc89c9c0
commit 1dbc2812b9
1 changed files with 5 additions and 2 deletions

View File

@ -61,7 +61,10 @@ class Encoder:
return self.__rand_int(buffer, "smallint", 1, 2) return self.__rand_int(buffer, "smallint", 1, 2)
def rand_int(self, buffer): 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): def __rand_int(self, buffer, var, min, max):
iterator = self.helper.GetConfig("varcount") iterator = self.helper.GetConfig("varcount")