Help added for command line

pull/3/head
Swissky 2017-05-25 17:30:16 +02:00
parent 7797481bf7
commit fb44cb3b51
2 changed files with 3 additions and 6 deletions

View File

@ -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"

View File

@ -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()