Commit bb3fb13c by Marcin Bury

Cleaning exploit output

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