bulk of fixes

This commit is contained in:
Miroslav Stampar
2011-07-02 22:48:56 +00:00
parent 861cdb1b14
commit 34d9a91af1
8 changed files with 145 additions and 151 deletions

View File

@@ -156,14 +156,14 @@ class Miscellaneous:
def likeOrExact(self, what):
message = "do you want sqlmap to consider provided %s(s):\n" % what
message += "[1] as LIKE %s names (default)\n" % what
message += "[2] as exact %s names" % what
message += "[1] as LIKE %s names\n" % what
message += "[2] as exact %s names (default)" % what
choice = readInput(message, default="1")
choice = readInput(message, default="2")
if not choice or choice == "1":
choice = "1"
condParam = " LIKE '%%%s%%'"
condParam = " LIKE '%%%s%%'" # this doesn't work, neither not sure it ever did
elif choice.isdigit() and choice == "2":
condParam = "='%s'"
else: