mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
update regarding Feature #61
This commit is contained in:
parent
b6ff03690f
commit
327bfcbe97
|
@ -263,7 +263,7 @@ class Dump:
|
||||||
table = tableValues["__infos__"]["table"]
|
table = tableValues["__infos__"]["table"]
|
||||||
|
|
||||||
if conf.replicate:
|
if conf.replicate:
|
||||||
replication = Replication("%s%s%s.sqlite" % (conf.dumpPath, os.sep, db))
|
replication = Replication("%s%s%s.sqlite3" % (conf.dumpPath, os.sep, db))
|
||||||
elif not conf.multipleTargets:
|
elif not conf.multipleTargets:
|
||||||
dumpDbPath = "%s%s%s" % (conf.dumpPath, os.sep, db)
|
dumpDbPath = "%s%s%s" % (conf.dumpPath, os.sep, db)
|
||||||
|
|
||||||
|
@ -292,10 +292,30 @@ class Dump:
|
||||||
|
|
||||||
|
|
||||||
if conf.replicate:
|
if conf.replicate:
|
||||||
cols = list(columns)
|
cols = []
|
||||||
if "__infos__" in cols:
|
for column in columns:
|
||||||
cols.remove("__infos__")
|
if column != "__infos__":
|
||||||
rtable = replication.createTable(table, cols, True)
|
colType = Replication.INTEGER
|
||||||
|
for value in tableValues[column]['values']:
|
||||||
|
try:
|
||||||
|
if re.search("^[\ *]*$", value): #NULL
|
||||||
|
continue
|
||||||
|
temp = int(value)
|
||||||
|
except ValueError:
|
||||||
|
colType = None
|
||||||
|
break
|
||||||
|
if colType is None:
|
||||||
|
colType = Replication.REAL
|
||||||
|
for value in tableValues[column]['values']:
|
||||||
|
try:
|
||||||
|
if re.search("^[\ *]*$", value): #NULL
|
||||||
|
continue
|
||||||
|
temp = float(value)
|
||||||
|
except ValueError:
|
||||||
|
colType = None
|
||||||
|
break
|
||||||
|
cols.append((column, colType if colType else Replication.TEXT))
|
||||||
|
rtable = replication.createTable(table, cols)
|
||||||
|
|
||||||
if count == 1:
|
if count == 1:
|
||||||
self.__write("[1 entry]")
|
self.__write("[1 entry]")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user