Help added for command line
parent
7797481bf7
commit
fb44cb3b51
|
@ -42,7 +42,7 @@ def find_line_vuln(path,payload,vulnerability,content):
|
|||
content = content.split('\n')
|
||||
for i in range(len(content)):
|
||||
if payload[0]+'('+vulnerability[0]+vulnerability[1]+vulnerability[2]+')' in content[i]:
|
||||
return str(i)
|
||||
return str(i-1)
|
||||
return "-1"
|
||||
|
||||
|
||||
|
|
7
index.py
7
index.py
|
@ -8,9 +8,6 @@
|
|||
# TODO afficher toutes les modifications de la variable -
|
||||
# BUG variable multiple (check en recursif dans vuln)
|
||||
# BUG color var['something']
|
||||
# BUG detection include
|
||||
# BUG SQLi 2 ligne 17 not found
|
||||
# TODO print help if no dir in arg
|
||||
|
||||
import sys
|
||||
import argparse
|
||||
|
@ -38,5 +35,5 @@ if __name__ == "__main__":
|
|||
analysis(results.dir)
|
||||
else:
|
||||
recursive(results.dir,0)
|
||||
|
||||
# else print help
|
||||
else:
|
||||
parser.print_help()
|
||||
|
|
Loading…
Reference in New Issue