new patterns

This commit is contained in:
Palma Solutions LTD
2019-03-04 09:07:18 +01:00
parent 487cb125c8
commit 4b2dee33cd
5 changed files with 32 additions and 5 deletions

View File

@@ -679,7 +679,7 @@ if __name__ == '__main__':
for root, dirnames, filenames in os.walk(basedir):
for filename in filenames:
if fnmatch.fnmatch(filename, '*.php') or \
fnmatch.fnmatch(filename, '*.txt') or \
fnmatch.fnmatch(filename, '*.phtml') or \
fnmatch.fnmatch(filename, '*.js'):
hacked = is_hacked(os.path.join(root, filename))
if hacked is not False and hacked['score'] >= MIN_SCORE:
@@ -688,7 +688,7 @@ if __name__ == '__main__':
filename = basedir
root = os.getcwd()
if fnmatch.fnmatch(filename, '*.php') or \
fnmatch.fnmatch(filename, '*.txt') or \
fnmatch.fnmatch(filename, '*.phtml') or \
fnmatch.fnmatch(filename, '*.js'):
hacked = is_hacked(os.path.join(root, filename))
if hacked is not False and hacked['score'] >= MIN_SCORE: