From: acevest Date: Mon, 1 Aug 2016 04:54:50 +0000 (+0800) Subject: ... X-Git-Url: http://zhaoyanbai.com/repos/%22http:/static/doc/zpipe.c?a=commitdiff_plain;h=3770cc2dd5a47cdd524f2a634db6eb0f783d5ede;p=acecode.git ... --- diff --git a/tools/hack/sqlinject.py b/tools/hack/sqlinject.py index af4f272..d252417 100755 --- a/tools/hack/sqlinject.py +++ b/tools/hack/sqlinject.py @@ -12,6 +12,7 @@ import random import urllib import urllib2 import argparse +import string gArgs = None @@ -35,7 +36,7 @@ def IsErrPage(html) : def getRandStr(length) : rs = '' - cs = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' + cs = string.ascii_letters for i in range(0, length) : inx = random.randint(0, len(cs)-1) rs += cs[inx]