Skip to content

Commit 5704426

Browse files
committed
Minor patch for pivotdump
1 parent 8d19c3b commit 5704426

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.enums import OS
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.1.12.10"
22+
VERSION = "1.1.12.11"
2323
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2424
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2525
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/utils/pivotdumptable.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,9 @@ def pivotDumpTable(table, colList, count=None, blind=True):
121121

122122
def _(column, pivotValue):
123123
if column == colList[0]:
124-
query = dumpNode.query.replace("'%s'", "%s") % (agent.preprocessField(table, column), table, agent.preprocessField(table, column), unescaper.escape(pivotValue, False))
124+
query = dumpNode.query.replace("'%s'" if unescaper.escape(pivotValue, False) != pivotValue else "%s", "%s") % (agent.preprocessField(table, column), table, agent.preprocessField(table, column), unescaper.escape(pivotValue, False))
125125
else:
126-
query = dumpNode.query2.replace("'%s'", "%s") % (agent.preprocessField(table, column), table, agent.preprocessField(table, colList[0]), unescaper.escape(pivotValue, False))
126+
query = dumpNode.query2.replace("'%s'" if unescaper.escape(pivotValue, False) != pivotValue else "%s", "%s") % (agent.preprocessField(table, column), table, agent.preprocessField(table, colList[0]), unescaper.escape(pivotValue, False))
127127

128128
query = agent.whereQuery(query)
129129
return unArrayizeValue(inject.getValue(query, blind=blind, time=blind, union=not blind, error=not blind))

txt/checksum.md5

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ f872699e948d0692ce11b54781da814c lib/core/log.py
4646
760d9df2a27ded29109b390ab202e72d lib/core/replication.py
4747
a2466b62e67f8b31736bac4dac590e51 lib/core/revision.py
4848
02d4762140a72fd44668d3dab5eabda9 lib/core/session.py
49-
801dcf41cef89852f754a6d7ecdc8955 lib/core/settings.py
49+
51d5d97293138acfd70568c9f20eaf8f lib/core/settings.py
5050
35bffbad762eb9e03db9e93b1c991103 lib/core/shell.py
5151
a59ec28371ae067a6fdd8f810edbee3d lib/core/subprocessng.py
5252
d93501771b41315f9fb949305b6ed257 lib/core/target.py
@@ -108,7 +108,7 @@ fe3a38f820ae05a95f92ab53e22b46d0 lib/utils/har.py
108108
193c294d960c310808495a63167eab00 lib/utils/hash.py
109109
f20ae1aa6a8d1d5373ace1f7ed3476a7 lib/utils/htmlentities.py
110110
5fb9aaf874daa47ea2b672a22740e56b lib/utils/__init__.py
111-
06cd61b634ca6142281da699a504cc85 lib/utils/pivotdumptable.py
111+
67dbbf9cc9aa9665c1efcebdba5b1559 lib/utils/pivotdumptable.py
112112
56c922696bd3d05d7be96e73b0650c4e lib/utils/progress.py
113113
77ae65dba6d0fc69dfb96f800537308d lib/utils/purge.py
114114
760290393e35e5f53f15ba46e09d59dd lib/utils/search.py
@@ -204,7 +204,7 @@ f9485d1ea9be87356fd8708c1d1c7455 plugins/dbms/sybase/takeover.py
204204
daab081cdc3a08581f804b498e8ef3a2 plugins/generic/connector.py
205205
c811c9267896033a1d206bdec774782b plugins/generic/custom.py
206206
43f19ede05350b42704b55d237f3d715 plugins/generic/databases.py
207-
d769db0ec3586855a8197229c2a27ffa plugins/generic/entries.py
207+
f0a93ac7c8143b59132ee859a158d113 plugins/generic/entries.py
208208
16882f2840da3161ed4dbf4a7ff8fc8b plugins/generic/enumeration.py
209209
ed82a43b822e265919b6164c628e433c plugins/generic/filesystem.py
210210
c4f4c6754e09a2418a08d1002184f260 plugins/generic/fingerprint.py
@@ -468,4 +468,4 @@ b5b8b0aebce810e6cdda1b7106c96427 xml/payloads/error_based.xml
468468
3194e2688a7576e1f877d5b137f7c260 xml/payloads/stacked_queries.xml
469469
c2d8dd03db5a663e79eabb4495dd0723 xml/payloads/time_blind.xml
470470
ac649aff0e7db413e4937e446e398736 xml/payloads/union_query.xml
471-
8f984712da3f23f105fc0b3391114e4b xml/queries.xml
471+
775ed5c7e1340f76f17f6186abbd8c92 xml/queries.xml

0 commit comments

Comments
 (0)