File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 99dir_cnt = 0
1010
1111# Directory search
12+
13+
1214def fileSearch (dir_path , cnt ):
1315 global file_cnt
1416 global dir_cnt
@@ -28,13 +30,16 @@ def fileSearch(dir_path, cnt):
2830 elif os .path .isdir (full_path ):
2931 for i in range (cnt ):
3032 print ("\t " , end = " " )
31- print ("[!] SubDirectory: \" %s\" found. Start file search in this directory." % files )
33+ print (
34+ "[!] SubDirectory: \" %s\" found. Start file search in this directory." % files )
3235 filelist .extend (fileSearch (full_path , cnt + 1 ))
3336 dir_cnt += 1
3437
3538 return filelist
3639
3740# File open and store carved file
41+
42+
3843def Carving (file_list ):
3944 cnt = 0
4045 carv_list = []
@@ -56,6 +61,8 @@ def Carving(file_list):
5661 return carv_list
5762
5863# Find signature
64+
65+
5966def findSignature (file ):
6067 flag = 0
6168 contents = []
@@ -77,6 +84,7 @@ def findSignature(file):
7784 contents .append (buf )
7885 return contents
7986
87+
8088# Main
8189if __name__ == "__main__" :
8290 print ("==================File Search Start==================" )
You can’t perform that action at this time.
0 commit comments