Skip to content

Commit 8f45b71

Browse files
committed
style: Automatic code formatting
1 parent cad5a8c commit 8f45b71

File tree

1 file changed

+5
-9
lines changed
  • analyzer/windows/modules/packages

1 file changed

+5
-9
lines changed

analyzer/windows/modules/packages/crx.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@
77

88
from lib.common.abstracts import Package
99
from lib.common.exceptions import CuckooPackageError
10-
from lib.common.zip_utils import (
11-
extract_zip,
12-
get_infos,
13-
upload_extracted_files,
14-
)
10+
from lib.common.zip_utils import extract_zip, get_infos, upload_extracted_files
1511

1612
log = logging.getLogger(__name__)
1713

@@ -31,7 +27,7 @@ class CRX(Package):
3127
def start(self, path):
3228
extracted_path = os.path.join(os.environ["TEMP"], "sample")
3329
file_names = []
34-
blank_url = "http://about:blank" # prevent loading list of files in injected directory
30+
blank_url = "http://about:blank" # prevent loading list of files in injected directory
3531
try:
3632
zipinfos = get_infos(path)
3733
extract_zip(zip_path=path, extract_path=extracted_path, recursion_depth=0)
@@ -45,11 +41,11 @@ def start(self, path):
4541
raise CuckooPackageError("Empty CRX archive")
4642

4743
upload_extracted_files(extracted_path, file_names)
48-
44+
4945
chrome = self.get_path("chrome.exe")
5046
args = [
51-
f'--load-extension={extracted_path}',
52-
]
47+
f"--load-extension={extracted_path}",
48+
]
5349
args.append('"{}"'.format(blank_url))
5450
args = " ".join(args)
5551
return self.execute(chrome, args, path)

0 commit comments

Comments
 (0)