mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
making a "--exact" switch on demand (choosing exact identifier names by default instead of LIKE)
This commit is contained in:
parent
76a4aa19ac
commit
10b0639a96
4 changed files with 13 additions and 4 deletions
|
|
@ -171,12 +171,12 @@ class Miscellaneous:
|
|||
message += "[1] as LIKE %s names (default)\n" % what
|
||||
message += "[2] as exact %s names" % what
|
||||
|
||||
choice = readInput(message, default="1")
|
||||
choice = readInput(message, default='1') if not conf.exact else '2'
|
||||
|
||||
if not choice or choice == "1":
|
||||
choice = "1"
|
||||
if not choice or choice == '1':
|
||||
choice = '1'
|
||||
condParam = " LIKE '%%%s%%'"
|
||||
elif choice == "2":
|
||||
elif choice == '2':
|
||||
condParam = "='%s'"
|
||||
else:
|
||||
errMsg = "invalid value"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue