Check for constant var

pull/3/head
Swissky 2017-11-14 11:10:21 +01:00
parent 02afeab9cd
commit 3e5e9ca74e
3 changed files with 12 additions and 6 deletions

2
.gitignore vendored
View File

@ -1 +1,3 @@
*.pyc
www
Report

View File

@ -15,4 +15,4 @@ cat Report/exported.txt | grep "URL Redirection" -A4 > Report/URL_Redirection.tx
echo "Found :"
ls -ail /Report
ls -ail Report

View File

@ -40,6 +40,10 @@ def display(path,payload,vulnerability,line,declaration_text,declaration_line, c
# Declared at line 1 : $dest = $_GET['who'];
declared = ""
if not "$_" in colored:
# 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: