mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-10 00:28:22 +00:00
Better display printing
This commit is contained in:
parent
3169dc27b0
commit
455911fc26
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue