Some more drei stuff

This commit is contained in:
Miroslav Stampar
2019-03-28 15:14:16 +01:00
parent 49586ad6dd
commit 4b020c4257
81 changed files with 125 additions and 167 deletions

View File

@@ -5,8 +5,11 @@ Copyright (c) 2006-2019 sqlmap developers (http://sqlmap.org/)
See the file 'LICENSE' for copying permission
"""
import random
from lib.core.enums import PRIORITY
from random import sample
from lib.utils.xrange import xrange
__priority__ = PRIORITY.NORMAL
def dependencies():
@@ -16,7 +19,7 @@ def randomIP():
numbers = []
while not numbers or numbers[0] in (10, 172, 192):
numbers = sample(xrange(1, 255), 4)
numbers = random.sample(xrange(1, 255), 4)
return '.'.join(str(_) for _ in numbers)