diff --git a/.gitignore b/.gitignore index 0d20b64..180c82d 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ *.pyc +www +Report diff --git a/export.sh b/export.sh index 07b1b35..5627285 100755 --- a/export.sh +++ b/export.sh @@ -15,4 +15,4 @@ cat Report/exported.txt | grep "URL Redirection" -A4 > Report/URL_Redirection.tx echo "Found :" -ls -ail /Report +ls -ail Report diff --git a/functions.py b/functions.py index 236aa77..2eed545 100644 --- a/functions.py +++ b/functions.py @@ -40,11 +40,15 @@ def display(path,payload,vulnerability,line,declaration_text,declaration_line, c # Declared at line 1 : $dest = $_GET['who']; declared = "" if not "$_" in colored: - if declaration_text != "": - declared = "Line n°\033[0;92m"+declaration_line+"\033[0m : "+ declaration_text - else: - declared = "Undeclared \033[0m"+ declaration_text+" in the file" - print "\033[1mDeclaration \033[0m " + "\t"+declared + + # Check for not $dest="constant"; $dest='cste'; $dest=XX; + if "$" in declaration_text.replace(colored,''): + + if declaration_text != "": + declared = "Line n°\033[0;92m"+declaration_line+"\033[0m : "+ declaration_text + else: + declared = "Undeclared \033[0m"+ declaration_text+" in the file" + print "\033[1mDeclaration \033[0m " + "\t"+declared # Small delimiter print ""