Skip to content

Commit

Permalink
Minor update (switching --invalid-logical to LIKE version)
Browse files Browse the repository at this point in the history
  • Loading branch information
stamparm committed Jun 6, 2018
1 parent 86303bd commit 091c8ab
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/controller/checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ def checkSqlInjection(place, parameter, value):

if conf.invalidLogical:
_ = int(kb.data.randomInt[:2])
origValue = "%s AND %s=%s" % (value, _, _ + 1)
origValue = "%s AND %s LIKE %s" % (value, _, _ + 1)
elif conf.invalidBignum:
origValue = kb.data.randomInt[:6]
elif conf.invalidString:
Expand Down
2 changes: 1 addition & 1 deletion lib/core/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def payload(self, place=None, parameter=None, value=None, newValue=None, where=N
match = re.search(r"\A[^ ]+", newValue)
newValue = newValue[len(match.group() if match else ""):]
_ = randomInt(2)
value = "%s%s AND %s=%s" % (origValue, match.group() if match else "", _, _ + 1)
value = "%s%s AND %s LIKE %s" % (origValue, match.group() if match else "", _, _ + 1)
elif conf.invalidBignum:
value = randomInt(6)
elif conf.invalidString:
Expand Down
2 changes: 1 addition & 1 deletion lib/core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from lib.core.enums import OS

# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.2.6.7"
VERSION = "1.2.6.8"
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
Expand Down
6 changes: 3 additions & 3 deletions txt/checksum.md5
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ c88d66597f4aab719bde4542b0a1a6e0 extra/shutils/regressiontest.py
1e5532ede194ac9c083891c2f02bca93 extra/sqlharvest/__init__.py
b3e60ea4e18a65c48515d04aab28ff68 extra/sqlharvest/sqlharvest.py
0f581182871148b0456a691ae85b04c0 lib/controller/action.py
9682b922fd621d31708d562b15803202 lib/controller/checks.py
2bfb57f063421c3789a81cd4ca89d8dc lib/controller/checks.py
c414cecdb0472c92cf50ed5b01e4438c lib/controller/controller.py
c7443613a0a2505b1faec931cee2a6ef lib/controller/handler.py
1e5532ede194ac9c083891c2f02bca93 lib/controller/__init__.py
b1990c7805943f0c973a853bba981d96 lib/core/agent.py
ee096e173a5caa7724e751c693880925 lib/core/agent.py
fd8f239e259afaf5f24bcf34a0ad187f lib/core/bigarray.py
240cb11db16783c6601b1d7de5eadd8d lib/core/common.py
0d082da16c388b3445e656e0760fb582 lib/core/convert.py
Expand All @@ -47,7 +47,7 @@ c9a56e58984420a5abb7a3f7aadc196d lib/core/optiondict.py
0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
fcb74fcc9577523524659ec49e2e964b lib/core/session.py
83c0f3f92dc98c530494d0bf32617d0e lib/core/settings.py
9cfb2ab4e4be638f47abb7e8b0bb47e9 lib/core/settings.py
0dfc2ed40adf72e302291f6ecd4406f6 lib/core/shell.py
a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py
6306284edcccc185b2df085438572b0d lib/core/target.py
Expand Down

0 comments on commit 091c8ab

Please sign in to comment.