Commit bb3fb13c by Marcin Bury

Cleaning exploit output

parent 7f7f5056
......@@ -47,8 +47,15 @@ class Exploit(exploits.Exploit):
return
if response.status_code == 200 and len(response.text):
print_status("Reading file {}".format(self.filename))
print_info(response.text)
pos = response.text.find("//--></SCRIPT>") + 15
res = response.text[pos:]
if len(res):
print_status("Reading file {}".format(self.filename))
print_info(res)
else:
print_error("Could not read file {}".format(self.filename))
else:
print_error("Exploit failed - target seems to be not vulnerable")
......
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