Better display printing

pull/65/head
Mokaddem 2016-08-02 16:21:52 +02:00
parent 3169dc27b0
commit 455911fc26
1 changed files with 2 additions and 2 deletions

View File

@ -71,12 +71,12 @@ def analyse(url, path):
paste = Paste.Paste(path)
if (result_path > 1) or (result_query > 1):
print "Detected SQL in URL: "
print url
print urllib2.unquote(url)
to_print = 'SQLInjection;{};{};{};{}'.format(paste.p_source, paste.p_date, paste.p_name, "Detected SQL in URL")
publisher.warning(to_print)
else:
print "Potential SQL injection:"
print url
print urllib2.unquote(url)
to_print = 'SQLInjection;{};{};{};{}'.format(paste.p_source, paste.p_date, paste.p_name, "Potential SQL injection")
publisher.info(to_print)