minor update regarding --live-test

This commit is contained in:
Miroslav Stampar 2011-03-25 09:03:08 +00:00
parent ea52d7acad
commit e80c9e08d8
2 changed files with 8 additions and 10 deletions

View File

@ -218,8 +218,6 @@ def runCase(switches=None, log=None, session=None):
for item in log: for item in log:
if item.startswith("r'") and item.endswith("'"): if item.startswith("r'") and item.endswith("'"):
if not re.search(item[2:-1], content, re.DOTALL): if not re.search(item[2:-1], content, re.DOTALL):
import pdb
pdb.set_trace()
retVal = False retVal = False
break break
elif content.find(item) < 0: elif content.find(item) < 0:

View File

@ -6,7 +6,7 @@
<batch value="True"/> <batch value="True"/>
<verbose value="0"/> <verbose value="0"/>
</global> </global>
<case name="MySQL (--technique=1 --is-dba --banner --current-user --current-db --dbs --tables -D testdb -o)"> <case name="MySQL (--technique=1 --is-dba --banner --current-user --current-db --dbs --tables -D testdb --threads=4)">
<switches> <switches>
<url value="http://debianenv/sqlmap/mysql/get_int.php?id=1"/> <url value="http://debianenv/sqlmap/mysql/get_int.php?id=1"/>
<isDba value="True"/> <isDba value="True"/>
@ -17,7 +17,7 @@
<getDbs value="True"/> <getDbs value="True"/>
<getTables value="True"/> <getTables value="True"/>
<db value="testdb"/> <db value="testdb"/>
<optimize value="True"/> <threads value="4"/>
</switches> </switches>
<log> <log>
<item value="current user is DBA: 'True'"/> <item value="current user is DBA: 'True'"/>
@ -70,7 +70,7 @@
<item value="r'1 table.+users'"/> <item value="r'1 table.+users'"/>
</log> </log>
</case> </case>
<case name="Postgres (--technique=1 --is-dba --banner --current-user --current-db --dbs --tables -D testdb -o)"> <case name="Postgres (--technique=1 --is-dba --banner --current-user --current-db --dbs --tables -D testdb --threads=4)">
<switches> <switches>
<url value="http://debianenv/sqlmap/pgsql/get_int.php?id=1"/> <url value="http://debianenv/sqlmap/pgsql/get_int.php?id=1"/>
<isDba value="True"/> <isDba value="True"/>
@ -81,7 +81,7 @@
<getDbs value="True"/> <getDbs value="True"/>
<getTables value="True"/> <getTables value="True"/>
<db value="testdb"/> <db value="testdb"/>
<optimize value="True"/> <threads value="4"/>
</switches> </switches>
<log> <log>
<item value="current user is DBA: 'True'"/> <item value="current user is DBA: 'True'"/>
@ -134,7 +134,7 @@
<item value="r'1 table.+users'"/> <item value="r'1 table.+users'"/>
</log> </log>
</case> </case>
<case name="Oracle (--technique=1 --is-dba --banner --current-user --current-db --dbs --tables -D SCOTT -o)"> <case name="Oracle (--technique=1 --is-dba --banner --current-user --current-db --dbs --tables -D SCOTT --threads=4)">
<switches> <switches>
<url value="http://debianenv/sqlmap/oracle/get_int.php?id=1"/> <url value="http://debianenv/sqlmap/oracle/get_int.php?id=1"/>
<isDba value="True"/> <isDba value="True"/>
@ -145,7 +145,7 @@
<getDbs value="True"/> <getDbs value="True"/>
<getTables value="True"/> <getTables value="True"/>
<db value="SCOTT"/> <db value="SCOTT"/>
<optimize value="True"/> <threads value="4"/>
</switches> </switches>
<log> <log>
<item value="current user is DBA: 'True'"/> <item value="current user is DBA: 'True'"/>
@ -198,7 +198,7 @@
<item value="r'5 tables.+BONUS.+DEPT.+EMP.+SALGRADE.+USERS'"/> <item value="r'5 tables.+BONUS.+DEPT.+EMP.+SALGRADE.+USERS'"/>
</log> </log>
</case> </case>
<case name="MSSQL (--technique=1 --is-dba --banner --current-user --current-db --dbs --tables -D testdb -o)"> <case name="MSSQL (--technique=1 --is-dba --banner --current-user --current-db --dbs --tables -D testdb --threads=4)">
<switches> <switches>
<url value="http://windowsenv/sqlmap/mssql/iis/get_int.asp?id=1"/> <url value="http://windowsenv/sqlmap/mssql/iis/get_int.asp?id=1"/>
<isDba value="True"/> <isDba value="True"/>
@ -209,7 +209,7 @@
<getDbs value="True"/> <getDbs value="True"/>
<getTables value="True"/> <getTables value="True"/>
<db value="testdb"/> <db value="testdb"/>
<optimize value="True"/> <threads value="4"/>
</switches> </switches>
<log> <log>
<item value="current user is DBA: 'True'"/> <item value="current user is DBA: 'True'"/>