Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1c0234f

Browse files
style: format code with autopep8
Format code with autopep8 This commit fixes the style issues introduced in eac841c according to the output from Autopep8. Details: None
1 parent eac841c commit 1c0234f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

‎File_Carving_Script/File_Carving_Scripr.py‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
dir_cnt = 0
1010

1111
# Directory search
12+
13+
1214
def 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+
3843
def 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+
5966
def 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
8189
if __name__ == "__main__":
8290
print("==================File Search Start==================")

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /