mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 01:26:42 +03:00
some update regarding common tables
This commit is contained in:
parent
895efd28a6
commit
d75578c81f
|
@ -232,6 +232,9 @@ Enrico Milanese <enricomilanese@gmail.com>
|
|||
Anton Mogilin <azarmaster81@yahoo.com>
|
||||
for reporting a few bugs
|
||||
|
||||
Anastasios Monachos <anastasiosm@gmail.com>
|
||||
for providing some useful data
|
||||
|
||||
Alejo Murillo Moya <alex@65535.com>
|
||||
for suggesting a feature
|
||||
|
||||
|
|
|
@ -1309,15 +1309,16 @@ def initCommonOutputs():
|
|||
|
||||
cfile.close()
|
||||
|
||||
def getFileItems(filename):
|
||||
def getFileItems(filename, commentPrefix='#'):
|
||||
retVal = []
|
||||
|
||||
checkFile(filename)
|
||||
ifile = codecs.open(filename, 'r', conf.dataEncoding)
|
||||
|
||||
for line in ifile.readlines(): # xreadlines doesn't return unicode strings when codec.open() is used
|
||||
if line.find('#') != -1:
|
||||
line = line[:line.find('#')]
|
||||
if commentPrefix:
|
||||
if line.find(commentPrefix) != -1:
|
||||
line = line[:line.find(commentPrefix)]
|
||||
line = line.strip()
|
||||
if line:
|
||||
retVal.append(line)
|
||||
|
|
|
@ -702,7 +702,7 @@ class Enumeration:
|
|||
errMsg = "information_schema not available, "
|
||||
errMsg += "back-end DBMS is MySQL < 5.0"
|
||||
logger.error(errMsg)
|
||||
|
||||
|
||||
message = "do you want to use common table existance check? [Y/n/q]"
|
||||
test = readInput(message, default="Y")
|
||||
|
||||
|
@ -710,7 +710,7 @@ class Enumeration:
|
|||
return
|
||||
elif test[0] in ("q", "Q"):
|
||||
raise sqlmapUserQuitException
|
||||
else:
|
||||
else:
|
||||
return self.tableExists(paths.COMMON_TABLES)
|
||||
|
||||
self.forceDbmsEnum()
|
||||
|
@ -827,7 +827,7 @@ class Enumeration:
|
|||
return kb.data.cachedTables
|
||||
|
||||
def tableExists(self, tableFile):
|
||||
tables = getFileItems(tableFile)
|
||||
tables = getFileItems(tableFile, None)
|
||||
retVal = []
|
||||
infoMsg = "checking tables existence using items from '%s'" % tableFile
|
||||
logger.info(infoMsg)
|
||||
|
|
|
@ -1637,6 +1637,7 @@ SPACE
|
|||
geo_Sea
|
||||
DATA_ORG
|
||||
Contributor
|
||||
|
||||
jos_vm_product_download
|
||||
jos_vm_coupons
|
||||
jos_vm_product_reviews
|
||||
|
@ -1721,10 +1722,61 @@ jos_vm_product_relations
|
|||
jos_core_acl_aro_sections
|
||||
jos_vm_order_history
|
||||
jos_banner
|
||||
|
||||
php_users
|
||||
ALL_USERS
|
||||
banned_users
|
||||
users_tmp
|
||||
users_club
|
||||
publicusers
|
||||
cmsusers
|
||||
cmsusers
|
||||
|
||||
blacklist
|
||||
cost
|
||||
moves
|
||||
pelates
|
||||
tamio
|
||||
tameio
|
||||
xristes
|
||||
zones
|
||||
tamio_pelates
|
||||
kwdikos
|
||||
addressbookgrp
|
||||
sendmsgs
|
||||
publicationauthor
|
||||
publicationfile
|
||||
topicpublication
|
||||
userrights
|
||||
comp_group
|
||||
computers_ID
|
||||
event_log
|
||||
networking
|
||||
routing
|
||||
software_licenses
|
||||
ips
|
||||
arxeia
|
||||
SMS_TABLE
|
||||
TABLE_PRIVILEGE_MAP
|
||||
AMUSER
|
||||
CONTACTTYPE
|
||||
CONTENT
|
||||
DOWNLOADGROUP
|
||||
DOWNLOADS
|
||||
DOWNLOADTYPE
|
||||
EMAIL
|
||||
ENQUIRY
|
||||
FACTSHEET
|
||||
FUND
|
||||
FUNDGROUP
|
||||
HISTORY
|
||||
MANAGEMENTGROUP
|
||||
SUBSCRIBE
|
||||
TBLUSERS
|
||||
TBLLIST
|
||||
TBLLOG
|
||||
TBLPROFILES
|
||||
TBLREPORTS
|
||||
TBLTRANSACTIONS
|
||||
TBLRETAILUSERS
|
||||
TBLCORPUSERS
|
||||
TBLCORPORATEUSERS
|
||||
|
|
Loading…
Reference in New Issue
Block a user