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

Skip to content

Commit d75578c

Browse files
committed
some update regarding common tables
1 parent 895efd2 commit d75578c

4 files changed

Lines changed: 63 additions & 7 deletions

File tree

doc/THANKS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,9 @@ Enrico Milanese <[email protected]>
232232
Anton Mogilin <[email protected]>
233233
for reporting a few bugs
234234

235+
Anastasios Monachos <[email protected]>
236+
for providing some useful data
237+
235238
Alejo Murillo Moya <[email protected]>
236239
for suggesting a feature
237240

lib/core/common.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1309,15 +1309,16 @@ def initCommonOutputs():
13091309

13101310
cfile.close()
13111311

1312-
def getFileItems(filename):
1312+
def getFileItems(filename, commentPrefix='#'):
13131313
retVal = []
13141314

13151315
checkFile(filename)
13161316
ifile = codecs.open(filename, 'r', conf.dataEncoding)
13171317

13181318
for line in ifile.readlines(): # xreadlines doesn't return unicode strings when codec.open() is used
1319-
if line.find('#') != -1:
1320-
line = line[:line.find('#')]
1319+
if commentPrefix:
1320+
if line.find(commentPrefix) != -1:
1321+
line = line[:line.find(commentPrefix)]
13211322
line = line.strip()
13221323
if line:
13231324
retVal.append(line)

plugins/generic/enumeration.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -702,15 +702,15 @@ def getTables(self):
702702
errMsg = "information_schema not available, "
703703
errMsg += "back-end DBMS is MySQL < 5.0"
704704
logger.error(errMsg)
705-
705+
706706
message = "do you want to use common table existance check? [Y/n/q]"
707707
test = readInput(message, default="Y")
708708

709709
if test[0] in ("n", "N"):
710710
return
711711
elif test[0] in ("q", "Q"):
712712
raise sqlmapUserQuitException
713-
else:
713+
else:
714714
return self.tableExists(paths.COMMON_TABLES)
715715

716716
self.forceDbmsEnum()
@@ -827,7 +827,7 @@ def getTables(self):
827827
return kb.data.cachedTables
828828

829829
def tableExists(self, tableFile):
830-
tables = getFileItems(tableFile)
830+
tables = getFileItems(tableFile, None)
831831
retVal = []
832832
infoMsg = "checking tables existence using items from '%s'" % tableFile
833833
logger.info(infoMsg)

txt/common-tables.txt

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1637,6 +1637,7 @@ SPACE
16371637
geo_Sea
16381638
DATA_ORG
16391639
Contributor
1640+
16401641
jos_vm_product_download
16411642
jos_vm_coupons
16421643
jos_vm_product_reviews
@@ -1721,10 +1722,61 @@ jos_vm_product_relations
17211722
jos_core_acl_aro_sections
17221723
jos_vm_order_history
17231724
jos_banner
1725+
17241726
php_users
17251727
ALL_USERS
17261728
banned_users
17271729
users_tmp
17281730
users_club
17291731
publicusers
1730-
cmsusers
1732+
cmsusers
1733+
1734+
blacklist
1735+
cost
1736+
moves
1737+
pelates
1738+
tamio
1739+
tameio
1740+
xristes
1741+
zones
1742+
tamio_pelates
1743+
kwdikos
1744+
addressbookgrp
1745+
sendmsgs
1746+
publicationauthor
1747+
publicationfile
1748+
topicpublication
1749+
userrights
1750+
comp_group
1751+
computers_ID
1752+
event_log
1753+
networking
1754+
routing
1755+
software_licenses
1756+
ips
1757+
arxeia
1758+
SMS_TABLE
1759+
TABLE_PRIVILEGE_MAP
1760+
AMUSER
1761+
CONTACTTYPE
1762+
CONTENT
1763+
DOWNLOADGROUP
1764+
DOWNLOADS
1765+
DOWNLOADTYPE
1766+
EMAIL
1767+
ENQUIRY
1768+
FACTSHEET
1769+
FUND
1770+
FUNDGROUP
1771+
HISTORY
1772+
MANAGEMENTGROUP
1773+
SUBSCRIBE
1774+
TBLUSERS
1775+
TBLLIST
1776+
TBLLOG
1777+
TBLPROFILES
1778+
TBLREPORTS
1779+
TBLTRANSACTIONS
1780+
TBLRETAILUSERS
1781+
TBLCORPUSERS
1782+
TBLCORPORATEUSERS

0 commit comments

Comments
 (0)