sandbox-cli 0.2.39__tar.gz → 0.2.41__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sandbox_cli-0.2.39 → sandbox_cli-0.2.41}/PKG-INFO +1 -1
- {sandbox_cli-0.2.39 → sandbox_cli-0.2.41}/pyproject.toml +1 -1
- {sandbox_cli-0.2.39 → sandbox_cli-0.2.41}/sandbox_cli/cli/reporter.py +1 -1
- {sandbox_cli-0.2.39 → sandbox_cli-0.2.41}/sandbox_cli/cli/scanner/__init__.py +9 -0
- {sandbox_cli-0.2.39 → sandbox_cli-0.2.41}/sandbox_cli/utils/scanner/advanced.py +5 -1
- {sandbox_cli-0.2.39 → sandbox_cli-0.2.41}/.gitignore +0 -0
- {sandbox_cli-0.2.39 → sandbox_cli-0.2.41}/LICENSE +0 -0
- {sandbox_cli-0.2.39 → sandbox_cli-0.2.41}/NOTICE +0 -0
- {sandbox_cli-0.2.39 → sandbox_cli-0.2.41}/README.md +0 -0
- {sandbox_cli-0.2.39 → sandbox_cli-0.2.41}/sandbox_cli/__main__.py +0 -0
- {sandbox_cli-0.2.39 → sandbox_cli-0.2.41}/sandbox_cli/cli/__init__.py +0 -0
- {sandbox_cli-0.2.39 → sandbox_cli-0.2.41}/sandbox_cli/cli/downloader.py +0 -0
- {sandbox_cli-0.2.39 → sandbox_cli-0.2.41}/sandbox_cli/cli/images.py +0 -0
- {sandbox_cli-0.2.39 → sandbox_cli-0.2.41}/sandbox_cli/cli/rules/__init__.py +0 -0
- {sandbox_cli-0.2.39 → sandbox_cli-0.2.41}/sandbox_cli/cli/unpack.py +0 -0
- {sandbox_cli-0.2.39 → sandbox_cli-0.2.41}/sandbox_cli/console.py +0 -0
- {sandbox_cli-0.2.39 → sandbox_cli-0.2.41}/sandbox_cli/internal/__init__.py +0 -0
- {sandbox_cli-0.2.39 → sandbox_cli-0.2.41}/sandbox_cli/internal/config.py +0 -0
- {sandbox_cli-0.2.39 → sandbox_cli-0.2.41}/sandbox_cli/internal/helpers.py +0 -0
- {sandbox_cli-0.2.39 → sandbox_cli-0.2.41}/sandbox_cli/models/__init__.py +0 -0
- {sandbox_cli-0.2.39 → sandbox_cli-0.2.41}/sandbox_cli/models/detections.py +0 -0
- {sandbox_cli-0.2.39 → sandbox_cli-0.2.41}/sandbox_cli/models/sandbox_arguments.py +0 -0
- {sandbox_cli-0.2.39 → sandbox_cli-0.2.41}/sandbox_cli/utils/__init__.py +0 -0
- {sandbox_cli-0.2.39 → sandbox_cli-0.2.41}/sandbox_cli/utils/compiler/__init__.py +0 -0
- {sandbox_cli-0.2.39 → sandbox_cli-0.2.41}/sandbox_cli/utils/compiler/abc.py +0 -0
- {sandbox_cli-0.2.39 → sandbox_cli-0.2.41}/sandbox_cli/utils/compiler/docker.py +0 -0
- {sandbox_cli-0.2.39 → sandbox_cli-0.2.41}/sandbox_cli/utils/compiler/ssh.py +0 -0
- {sandbox_cli-0.2.39 → sandbox_cli-0.2.41}/sandbox_cli/utils/downloader/__init__.py +0 -0
- {sandbox_cli-0.2.39 → sandbox_cli-0.2.41}/sandbox_cli/utils/extractors.py +0 -0
- {sandbox_cli-0.2.39 → sandbox_cli-0.2.41}/sandbox_cli/utils/merge_dll_hooks.py +0 -0
- {sandbox_cli-0.2.39 → sandbox_cli-0.2.41}/sandbox_cli/utils/scanner/__init__.py +0 -0
- {sandbox_cli-0.2.39 → sandbox_cli-0.2.41}/sandbox_cli/utils/scanner/rescan.py +0 -0
- {sandbox_cli-0.2.39 → sandbox_cli-0.2.41}/sandbox_cli/utils/unpack/__init__.py +0 -0
- {sandbox_cli-0.2.39 → sandbox_cli-0.2.41}/sandbox_cli/utils/unpack/plugins/__init__.py +0 -0
- {sandbox_cli-0.2.39 → sandbox_cli-0.2.41}/sandbox_cli/utils/unpack/plugins/abc.py +0 -0
- {sandbox_cli-0.2.39 → sandbox_cli-0.2.41}/sandbox_cli/utils/unpack/plugins/correlation.py +0 -0
- {sandbox_cli-0.2.39 → sandbox_cli-0.2.41}/sandbox_cli/utils/unpack/plugins/sort_by_plugins.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sandbox-cli
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.41
|
|
4
4
|
Summary: Command line tool for interaction with sandboxes
|
|
5
5
|
Project-URL: Homepage, https://github.com/Security-Experts-Community/sandbox-cli
|
|
6
6
|
Project-URL: Documentation, https://security-experts-community.github.io/sandbox-cli
|
|
@@ -130,7 +130,7 @@ def generate_report(
|
|
|
130
130
|
"static": delimeter.join(extract_static(report)),
|
|
131
131
|
"memory": delimeter.join(extract_memory(report)),
|
|
132
132
|
"network": delimeter.join(extract_network_from_trace(corr_trace)),
|
|
133
|
-
"sandbox": link,
|
|
133
|
+
"sandbox": f"[link={link}]{link}[/link]",
|
|
134
134
|
}
|
|
135
135
|
)
|
|
136
136
|
|
|
@@ -465,6 +465,14 @@ async def scan_new(
|
|
|
465
465
|
validator=validators.Number(gt=0),
|
|
466
466
|
),
|
|
467
467
|
] = 300,
|
|
468
|
+
wait_timeout: Annotated[
|
|
469
|
+
int | None,
|
|
470
|
+
Parameter(
|
|
471
|
+
name=["--wait-timeout", "-W"],
|
|
472
|
+
help="Task waiting time in seconds (useful for heavy samples)",
|
|
473
|
+
validator=validators.Number(gt=0),
|
|
474
|
+
),
|
|
475
|
+
] = None,
|
|
468
476
|
fake_name: Annotated[
|
|
469
477
|
str | None,
|
|
470
478
|
Parameter(
|
|
@@ -735,6 +743,7 @@ async def scan_new(
|
|
|
735
743
|
vnc_mode=vnc_mode,
|
|
736
744
|
extra_files=extra_files,
|
|
737
745
|
upload_timeout=upload_timeout,
|
|
746
|
+
wait_timeout=wait_timeout,
|
|
738
747
|
all=all,
|
|
739
748
|
debug=debug,
|
|
740
749
|
artifacts=artifacts,
|
|
@@ -219,6 +219,7 @@ async def scan_internal_advanced(
|
|
|
219
219
|
vnc_mode: VNCMode,
|
|
220
220
|
extra_files: list[Path] | None,
|
|
221
221
|
upload_timeout: int,
|
|
222
|
+
wait_timeout: int | None,
|
|
222
223
|
all: bool,
|
|
223
224
|
debug: bool,
|
|
224
225
|
artifacts: bool,
|
|
@@ -260,9 +261,12 @@ async def scan_internal_advanced(
|
|
|
260
261
|
|
|
261
262
|
async with sandbox_sem:
|
|
262
263
|
task_id = progress.add_task(description="Creating task", idx=idx, image=formatted_image, url="...")
|
|
263
|
-
|
|
264
|
+
# because progress.tasks is .values() from dict, not an actual list
|
|
265
|
+
task = next(t for t in progress.tasks if t.id == task_id)
|
|
264
266
|
|
|
265
267
|
wait_time = sandbox_options.analysis_duration * 4 + (300 if sandbox_options.analysis_duration < 80 else 120)
|
|
268
|
+
if wait_timeout is not None:
|
|
269
|
+
wait_time = wait_timeout
|
|
266
270
|
|
|
267
271
|
try:
|
|
268
272
|
scan_result = await sandbox.create_advanced_scan(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sandbox_cli-0.2.39 → sandbox_cli-0.2.41}/sandbox_cli/utils/unpack/plugins/sort_by_plugins.py
RENAMED
|
File without changes
|