@@ -40,9 +40,8 @@ def setString():
4040 """
4141
4242 condition = (
43- conf .sessionFile and ( not kb .resumedQueries
44- or ( kb .resumedQueries .has_key (conf .url ) and
45- not kb .resumedQueries [conf .url ].has_key ("String" ) ) )
43+ not kb .resumedQueries or ( kb .resumedQueries .has_key (conf .url ) and
44+ not kb .resumedQueries [conf .url ].has_key ("String" ) )
4645 )
4746
4847 if condition :
@@ -59,8 +58,7 @@ def setInjection():
5958 kb .injParameter = conf .agent
6059
6160 condition = (
62- kb .injPlace and kb .injParameter and
63- conf .sessionFile and ( not kb .resumedQueries
61+ kb .injPlace and kb .injParameter and ( not kb .resumedQueries
6462 or ( kb .resumedQueries .has_key (conf .url ) and
6563 ( not kb .resumedQueries [conf .url ].has_key ("Injection point" )
6664 or not kb .resumedQueries [conf .url ].has_key ("Injection parameter" )
@@ -82,9 +80,8 @@ def setParenthesis(parenthesisCount):
8280 """
8381
8482 condition = (
85- conf .sessionFile and ( not kb .resumedQueries
86- or ( kb .resumedQueries .has_key (conf .url ) and
87- not kb .resumedQueries [conf .url ].has_key ("Parenthesis" ) ) )
83+ not kb .resumedQueries or ( kb .resumedQueries .has_key (conf .url ) and
84+ not kb .resumedQueries [conf .url ].has_key ("Parenthesis" ) )
8885 )
8986
9087 if condition :
@@ -101,9 +98,9 @@ def setDbms(dbms):
10198 """
10299
103100 condition = (
104- conf . sessionFile and ( not kb .resumedQueries
101+ not kb .resumedQueries
105102 or ( kb .resumedQueries .has_key (conf .url ) and
106- not kb .resumedQueries [conf .url ].has_key ("DBMS" ) ) )
103+ not kb .resumedQueries [conf .url ].has_key ("DBMS" ) )
107104 )
108105
109106 if condition :
@@ -133,11 +130,10 @@ def setUnion(comment=None, count=None, position=None):
133130
134131 if comment and count :
135132 condition = (
136- conf .sessionFile and ( not kb .resumedQueries
137- or ( kb .resumedQueries .has_key (conf .url ) and
133+ not kb .resumedQueries or ( kb .resumedQueries .has_key (conf .url ) and
138134 ( not kb .resumedQueries [conf .url ].has_key ("Union comment" )
139135 or not kb .resumedQueries [conf .url ].has_key ("Union count" )
140- ) ) )
136+ ) )
141137 )
142138
143139 if condition :
@@ -149,10 +145,9 @@ def setUnion(comment=None, count=None, position=None):
149145
150146 elif position :
151147 condition = (
152- conf .sessionFile and ( not kb .resumedQueries
153- or ( kb .resumedQueries .has_key (conf .url ) and
148+ not kb .resumedQueries or ( kb .resumedQueries .has_key (conf .url ) and
154149 ( not kb .resumedQueries [conf .url ].has_key ("Union position" )
155- ) ) )
150+ ) )
156151 )
157152
158153 if condition :
0 commit comments