Merge pull request #107 from mokaddem/fix-linkPaste-debug

Fixed Link to download a paste is undefined when in DEBUG
This commit is contained in:
Alexandre Dulaunoy 2017-02-15 12:15:00 +01:00 committed by GitHub
commit f87c4393c6
3 changed files with 4 additions and 4 deletions

View file

@ -96,6 +96,6 @@ if __name__ == "__main__":
p.populate_set_out(msg, categ)
publisher.info(
'Categ;{};{};{};Detected {} as {}'.format(
'Categ;{};{};{};Detected {} as {};{}'.format(
paste.p_source, paste.p_date, paste.p_name,
len(found), categ))
len(found), categ), paste.p_path)

View file

@ -78,7 +78,7 @@ def analyse(url, path):
else:
print "Potential SQL injection:"
print urllib2.unquote(url)
to_print = 'SQLInjection;{};{};{};{}'.format(paste.p_source, paste.p_date, paste.p_name, "Potential SQL injection")
to_print = 'SQLInjection;{};{};{};{};{}'.format(paste.p_source, paste.p_date, paste.p_name, "Potential SQL injection", paste.p_path)
publisher.info(to_print)

View file

@ -213,7 +213,7 @@ function create_log_table(obj_json) {
source_link = document.createElement("A");
if (parsedmess[1] == "slexy.org"){
soruce_url = "http://"+parsedmess[1]+"/view/"+parsedmess[3].split(".")[0];
source_url = "http://"+parsedmess[1]+"/view/"+parsedmess[3].split(".")[0];
}
else{
source_url = "http://"+parsedmess[1]+"/"+parsedmess[3].split(".")[0];