Commit ac81f232 authored by fimap.dev@gmail.com's avatar fimap.dev@gmail.com

Added additional regex.

parent 5e28296d
......@@ -64,6 +64,7 @@
<pattern regex="in file &lt;b&gt;(?P&lt;script&gt;.*?)&lt;/b&gt;" />
<pattern regex="failed to open stream: No such file or directory in (?P&lt;script&gt;.*?) on line" />
<pattern regex="failed to open stream: No such file or directory in &lt;b&gt;(?P&lt;script&gt;.*?)&lt;/b&gt; on line" />
<pattern regex="Failed opening .*? for inclusion .*?on (?P&lt;script&gt;.*?) " />
</include_patterns>
<readfile_patterns>
......
......@@ -78,3 +78,5 @@ Deep Freeze <deep_freeze [ATOM] mail.ru>
timeisflowing <http://code.google.com/u/timeisflowing>
For reporting a bug and solving it himself :)
John Blez <johnblez [ATOM] gmail.com>
For reporting a missing regex.
......@@ -162,8 +162,8 @@ def show_greetings():
print " - Invisible"
print " - Ruun"
print " - Yasmin"
print " - Whole Netherlands"
print "## You guys and lads are epic and unreplacable."
print " Special Greetings to the whole Netherlands"
print "## You guys and lads are epic."
sys.exit(0)
def show_ip():
......@@ -351,6 +351,11 @@ if __name__ == "__main__":
# Get generic.xml from SVN repository and parse out its version.
generic_xml_online = tester.doGetRequest(defupdateurl + "generic.xml")
if generic_xml_online == None:
print "Failed to check generic_xml. Are you online?"
sys.exit(1)
tmpFile = tempfile.mkstemp()[1] + ".xml"
f = open(tmpFile, "w")
f.write(generic_xml_online)
......@@ -396,6 +401,10 @@ if __name__ == "__main__":
print "Requesting list of plugins..."
tester = codeinjector(config)
result = tester.doGetRequest(pluginlist)
if result == None:
print "Failed to request plugins! Are you online?"
sys.exit(1)
choice = {}
idx = 1
......
......@@ -272,7 +272,7 @@ class targetScanner (baseClass.baseClass):
r.setPostData(PostData)
for sp_err_msg in langClass.getIncludeDetectors():
RE_SCRIPT_PATH = re.compile(sp_err_msg)
RE_SCRIPT_PATH = re.compile(sp_err_msg, re.S)
s = RE_SCRIPT_PATH.search(code)
if (s != None): break
if (s == None):
......@@ -756,4 +756,4 @@ class targetScanner (baseClass.baseClass):
k = token.split("=")[0]
v = token.split("=")[1]
arr[k] = v
self._log("Token found: [%s] = [%s]" %(k,v), self.LOG_DEBUG)
\ No newline at end of file
self._log("Token found: [%s] = [%s]" %(k,v), self.LOG_DEBUG)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment