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 9
9
dir_cnt = 0
10
10
11
11
# Directory search
12
+
13
+
12
14
def fileSearch (dir_path , cnt ):
13
15
global file_cnt
14
16
global dir_cnt
@@ -28,13 +30,16 @@ def fileSearch(dir_path, cnt):
28
30
elif os .path .isdir (full_path ):
29
31
for i in range (cnt ):
30
32
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 )
32
35
filelist .extend (fileSearch (full_path , cnt + 1 ))
33
36
dir_cnt += 1
34
37
35
38
return filelist
36
39
37
40
# File open and store carved file
41
+
42
+
38
43
def Carving (file_list ):
39
44
cnt = 0
40
45
carv_list = []
@@ -56,6 +61,8 @@ def Carving(file_list):
56
61
return carv_list
57
62
58
63
# Find signature
64
+
65
+
59
66
def findSignature (file ):
60
67
flag = 0
61
68
contents = []
@@ -77,6 +84,7 @@ def findSignature(file):
77
84
contents .append (buf )
78
85
return contents
79
86
87
+
80
88
# Main
81
89
if __name__ == "__main__" :
82
90
print ("==================File Search Start==================" )
You can’t perform that action at this time.
0 commit comments