Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix all errors preventing the successful merging of this branch #26

Merged
merged 1 commit into from
Dec 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ async def random_url(_):
def load_processor_model(
processor_name: str, model_name: str
) -> Tuple[CLIPProcessor, CLIPModel]:
processor = CLIPProcessor.from_pretrained(processor_name)
processor = CLIPProcessor.from_pretrained(process_name)
model = CLIPModel.from_pretrained(model_name)
return processor, model

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
CycleNewEmails = None
BaseEmails_directory = None
# Define the default image to be sent in case of network errors
default_image=''
default_image='FlowSteering/assets/PerturbatedImages/DjiPerturbClassForward.png'


def receive_complete_data(client_socket): # this function is used to receive the complete data from the client, adjust the parameters as needed based on your network conditions
Expand Down
5 changes: 3 additions & 2 deletions modules/advanced_malware_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import subprocess
import os
import json
import shlex

class AdvancedMalwareAnalysis:
def __init__(self):
Expand All @@ -18,9 +19,9 @@ def analyze_malware(self, malware_path):
def run_sandbox(self, malware_path):
logging.info(f"Running malware in sandbox: {malware_path}")
# Placeholder for sandbox execution logic
sandbox_command = f"{self.sandbox_path} {malware_path}"
sandbox_command = shlex.split(f"{self.sandbox_path} {malware_path}")
try:
subprocess.run(sandbox_command, shell=True, check=True)
subprocess.run(sandbox_command, check=True)
except subprocess.CalledProcessError as e:
logging.error(f"Sandbox execution failed: {e}")

Expand Down
Loading