sandbox-cli 0.2.32__tar.gz → 0.2.33__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.32 → sandbox_cli-0.2.33}/PKG-INFO +1 -1
- {sandbox_cli-0.2.32 → sandbox_cli-0.2.33}/pyproject.toml +1 -1
- {sandbox_cli-0.2.32 → sandbox_cli-0.2.33}/sandbox_cli/cli/scanner/__init__.py +9 -0
- {sandbox_cli-0.2.32 → sandbox_cli-0.2.33}/sandbox_cli/utils/scanner/rescan.py +3 -8
- {sandbox_cli-0.2.32 → sandbox_cli-0.2.33}/.gitignore +0 -0
- {sandbox_cli-0.2.32 → sandbox_cli-0.2.33}/LICENSE +0 -0
- {sandbox_cli-0.2.32 → sandbox_cli-0.2.33}/NOTICE +0 -0
- {sandbox_cli-0.2.32 → sandbox_cli-0.2.33}/README.md +0 -0
- {sandbox_cli-0.2.32 → sandbox_cli-0.2.33}/sandbox_cli/__main__.py +0 -0
- {sandbox_cli-0.2.32 → sandbox_cli-0.2.33}/sandbox_cli/cli/__init__.py +0 -0
- {sandbox_cli-0.2.32 → sandbox_cli-0.2.33}/sandbox_cli/cli/downloader.py +0 -0
- {sandbox_cli-0.2.32 → sandbox_cli-0.2.33}/sandbox_cli/cli/images.py +0 -0
- {sandbox_cli-0.2.32 → sandbox_cli-0.2.33}/sandbox_cli/cli/reporter.py +0 -0
- {sandbox_cli-0.2.32 → sandbox_cli-0.2.33}/sandbox_cli/cli/rules/__init__.py +0 -0
- {sandbox_cli-0.2.32 → sandbox_cli-0.2.33}/sandbox_cli/cli/unpack.py +0 -0
- {sandbox_cli-0.2.32 → sandbox_cli-0.2.33}/sandbox_cli/console.py +0 -0
- {sandbox_cli-0.2.32 → sandbox_cli-0.2.33}/sandbox_cli/internal/__init__.py +0 -0
- {sandbox_cli-0.2.32 → sandbox_cli-0.2.33}/sandbox_cli/internal/config.py +0 -0
- {sandbox_cli-0.2.32 → sandbox_cli-0.2.33}/sandbox_cli/internal/helpers.py +0 -0
- {sandbox_cli-0.2.32 → sandbox_cli-0.2.33}/sandbox_cli/models/__init__.py +0 -0
- {sandbox_cli-0.2.32 → sandbox_cli-0.2.33}/sandbox_cli/models/detections.py +0 -0
- {sandbox_cli-0.2.32 → sandbox_cli-0.2.33}/sandbox_cli/models/sandbox_arguments.py +0 -0
- {sandbox_cli-0.2.32 → sandbox_cli-0.2.33}/sandbox_cli/utils/__init__.py +0 -0
- {sandbox_cli-0.2.32 → sandbox_cli-0.2.33}/sandbox_cli/utils/compiler/__init__.py +0 -0
- {sandbox_cli-0.2.32 → sandbox_cli-0.2.33}/sandbox_cli/utils/compiler/abc.py +0 -0
- {sandbox_cli-0.2.32 → sandbox_cli-0.2.33}/sandbox_cli/utils/compiler/docker.py +0 -0
- {sandbox_cli-0.2.32 → sandbox_cli-0.2.33}/sandbox_cli/utils/compiler/ssh.py +0 -0
- {sandbox_cli-0.2.32 → sandbox_cli-0.2.33}/sandbox_cli/utils/downloader/__init__.py +0 -0
- {sandbox_cli-0.2.32 → sandbox_cli-0.2.33}/sandbox_cli/utils/extractors.py +0 -0
- {sandbox_cli-0.2.32 → sandbox_cli-0.2.33}/sandbox_cli/utils/merge_dll_hooks.py +0 -0
- {sandbox_cli-0.2.32 → sandbox_cli-0.2.33}/sandbox_cli/utils/scanner/__init__.py +0 -0
- {sandbox_cli-0.2.32 → sandbox_cli-0.2.33}/sandbox_cli/utils/scanner/advanced.py +0 -0
- {sandbox_cli-0.2.32 → sandbox_cli-0.2.33}/sandbox_cli/utils/unpack/__init__.py +0 -0
- {sandbox_cli-0.2.32 → sandbox_cli-0.2.33}/sandbox_cli/utils/unpack/plugins/__init__.py +0 -0
- {sandbox_cli-0.2.32 → sandbox_cli-0.2.33}/sandbox_cli/utils/unpack/plugins/abc.py +0 -0
- {sandbox_cli-0.2.32 → sandbox_cli-0.2.33}/sandbox_cli/utils/unpack/plugins/correlation.py +0 -0
- {sandbox_cli-0.2.32 → sandbox_cli-0.2.33}/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.33
|
|
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
|
|
@@ -118,6 +118,14 @@ async def re_scan(
|
|
|
118
118
|
negative="",
|
|
119
119
|
),
|
|
120
120
|
] = False,
|
|
121
|
+
timeout: Annotated[
|
|
122
|
+
int,
|
|
123
|
+
Parameter(
|
|
124
|
+
name=["--timeout", "-t"],
|
|
125
|
+
help="Response waiting time (increase this value if large traces are scanned)",
|
|
126
|
+
validator=validators.Number(gt=0, lt=3600),
|
|
127
|
+
),
|
|
128
|
+
] = 300,
|
|
121
129
|
) -> None:
|
|
122
130
|
"""
|
|
123
131
|
Send traces to re-scan.
|
|
@@ -146,6 +154,7 @@ async def re_scan(
|
|
|
146
154
|
unpack=unpack,
|
|
147
155
|
debug=debug,
|
|
148
156
|
open_browser=open_browser,
|
|
157
|
+
timeout=timeout,
|
|
149
158
|
)
|
|
150
159
|
|
|
151
160
|
|
|
@@ -98,6 +98,7 @@ async def rescan_internal(
|
|
|
98
98
|
unpack: bool,
|
|
99
99
|
debug: bool,
|
|
100
100
|
open_browser: bool,
|
|
101
|
+
timeout: int,
|
|
101
102
|
) -> None:
|
|
102
103
|
key = get_key_by_name(key_name)
|
|
103
104
|
sandbox_sem = asyncio.Semaphore(value=key.max_workers)
|
|
@@ -128,19 +129,13 @@ async def rescan_internal(
|
|
|
128
129
|
async with sandbox_sem:
|
|
129
130
|
task_id = progress.add_task(description="Creating task", idx=idx, url="...")
|
|
130
131
|
|
|
131
|
-
wait_time = (
|
|
132
|
-
round(sandbox_options.sandbox.analysis_duration * 1.5)
|
|
133
|
-
if sandbox_options.sandbox.analysis_duration > 70
|
|
134
|
-
else 70
|
|
135
|
-
)
|
|
136
|
-
|
|
137
132
|
try:
|
|
138
133
|
rescan_result = await sandbox.create_rescan(
|
|
139
134
|
drakvuf_trace,
|
|
140
135
|
tcpdump_pcap,
|
|
141
136
|
options=sandbox_options,
|
|
142
137
|
rules=None,
|
|
143
|
-
read_timeout=
|
|
138
|
+
read_timeout=timeout,
|
|
144
139
|
)
|
|
145
140
|
except SandboxUploadException as e:
|
|
146
141
|
console.error(f"[yellow]{trace}[/] • an error occurred when uploading a file to the server • {e}")
|
|
@@ -162,7 +157,7 @@ async def rescan_internal(
|
|
|
162
157
|
description=f"Waiting for full report for [yellow]{trace.name}[/]",
|
|
163
158
|
url=formatted_link,
|
|
164
159
|
)
|
|
165
|
-
if not (awaited_report := await sandbox.wait_for_report(rescan_result,
|
|
160
|
+
if not (awaited_report := await sandbox.wait_for_report(rescan_result, timeout)):
|
|
166
161
|
console.error(f"Rescan failed for [yellow]{trace.name}[/] • {formatted_link} • {rescan_result}")
|
|
167
162
|
progress.remove_task(task_id)
|
|
168
163
|
return
|
|
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
|
|
File without changes
|
{sandbox_cli-0.2.32 → sandbox_cli-0.2.33}/sandbox_cli/utils/unpack/plugins/sort_by_plugins.py
RENAMED
|
File without changes
|