File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 16
16
17
17
18
18
def usage ():
19
- print ('[-] Usage: python check_file.py <filename1> [filename2] ... \
20
- [filenameN]' )
21
- exit (0 )
19
+ print ('[-] Usage: python check_file.py [filename1] [filename2] ... [filenameN]' )
22
20
23
21
24
22
# Readfile Functions which open the file that is passed to the script
@@ -48,14 +46,16 @@ def main():
48
46
# remove non readable fileNames
49
47
filenames .remove (filename )
50
48
continue
49
+
50
+ # Read the content of each file
51
+ for filename in filenames :
52
+ # Display Message and read the file contents
53
+ print ('[+] Reading from : ' + filename )
54
+ readfile (filename )
55
+
51
56
else :
52
57
usage () # Print usage if not all parameters passed/Checked
53
58
54
- # Read the content of each file
55
- for filename in filenames :
56
- # Display Message and read the file contents
57
- print ('[+] Reading from : ' + filename )
58
- readfile (filename )
59
59
60
60
if __name__ == '__main__' :
61
61
main ()
You can’t perform that action at this time.
0 commit comments