mirror of
https://github.com/danielmiessler/SecLists.git
synced 2025-06-08 05:57:52 +00:00
Added new line and empty line checker
This commit is contained in:
parent
f794f2ff83
commit
066ede4356
@ -18,13 +18,16 @@ for i in files:
|
||||
f=open(i,"r")
|
||||
contents=f.read()
|
||||
|
||||
if len(contents) == 0:
|
||||
continue
|
||||
|
||||
if contents[-1] == '\n':
|
||||
print("[!] %s ends with a new line"%(i))
|
||||
print("[!] %s ends with a new line!"%(i))
|
||||
exit(2)
|
||||
print("[+] %s passed new line check"%(i))
|
||||
print("[+] %s passed new line check!"%(i))
|
||||
|
||||
for j in contents.split('\n'):
|
||||
if len(i)==0:
|
||||
print("[!] %s has an empty entry!"%(i))
|
||||
exit(2)
|
||||
print("[+] %s passed empty line check!"%(i))
|
||||
|
||||
print("[+] All files passed checks")
|
||||
# exit(0)
|
Loading…
x
Reference in New Issue
Block a user