Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4512ef5

Browse files
committed
Minor bug fixes
1 parent 80bd146 commit 4512ef5

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

plugins/generic/enumeration.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -875,12 +875,7 @@ def getColumns(self, onlyColNames=False):
875875
table = {}
876876
columns = {}
877877

878-
# TODO: check on Oracle
879-
if kb.dbms == "Oracle":
880-
plusOne = True
881-
else:
882-
plusOne = False
883-
indexRange = getRange(count, plusOne=plusOne)
878+
indexRange = getRange(count)
884879

885880
for index in indexRange:
886881
if kb.dbms in ( "MySQL", "PostgreSQL" ):
@@ -1032,7 +1027,7 @@ def dumpColumn(self):
10321027

10331028
continue
10341029

1035-
indexRange = getRange(count, plusOne=plusOne)
1030+
indexRange = getRange(count)
10361031

10371032
for index in indexRange:
10381033
query = rootQuery["blind"]["query"]
@@ -1108,7 +1103,7 @@ def dumpColumn(self):
11081103

11091104
continue
11101105

1111-
indexRange = getRange(count, plusOne=plusOne)
1106+
indexRange = getRange(count)
11121107

11131108
for index in indexRange:
11141109
query = rootQuery["blind"]["query2"]
@@ -1343,7 +1338,12 @@ def dumpTable(self):
13431338

13441339
lengths = {}
13451340
entries = {}
1346-
indexRange = getRange(count, True)
1341+
1342+
if kb.dbms == "Oracle":
1343+
plusOne = True
1344+
else:
1345+
plusOne = False
1346+
indexRange = getRange(count, plusOne=plusOne)
13471347

13481348
for index in indexRange:
13491349
for column in colList:

0 commit comments

Comments
 (0)