2929from lib .controller .checks import checkDynParam
3030from lib .controller .checks import checkStability
3131from lib .controller .checks import checkString
32+ from lib .controller .checks import checkRegexp
3233from lib .controller .checks import checkConnection
3334from lib .core .common import paramToDict
3435from lib .core .common import readInput
@@ -117,7 +118,7 @@ def start():
117118
118119 if conf .multipleTargets :
119120 hostCount += 1
120- message = "url %d:\n %s %s" % (hostCount , conf .method , targetUrl )
121+ message = "url %d:\n %s %s" % (hostCount , conf .method or "GET" , targetUrl )
121122
122123 if conf .cookie :
123124 message += "\n Cookie: %s" % conf .cookie
@@ -140,7 +141,7 @@ def start():
140141
141142 initTargetEnv ()
142143
143- if not checkConnection () or not checkString ():
144+ if not checkConnection () or not checkString () or not checkRegexp () :
144145 continue
145146
146147 for _ , cookie in enumerate (conf .cj ):
@@ -173,14 +174,14 @@ def start():
173174 __testableParameters = True
174175
175176 if not kb .injPlace or not kb .injParameter or not kb .injType :
176- if not conf .string :
177+ if not conf .string and not conf . regexp and not conf . eRegexp :
177178 if checkStability ():
178179 logMsg = "url is stable"
179180 logger .info (logMsg )
180181 else :
181- errMsg = "url is not stable, try with --string option, refer "
182- errMsg += "to the user's manual paragraph 'String match' "
183- errMsg += "for details"
182+ errMsg = "url is not stable, try with --string or "
183+ errMsg += "--regexp options, refer to the user's manual "
184+ errMsg += "paragraph 'Page comparison' for details"
184185
185186 if conf .multipleTargets :
186187 errMsg += ", skipping to next url"
@@ -214,7 +215,6 @@ def start():
214215
215216 if injType :
216217 injData .append ((place , parameter , injType ))
217- kb .parenthesis = parenthesis
218218
219219 break
220220 else :
0 commit comments