Skip to content

Commit

Permalink
Merge pull request #26 from ProjectZeroDays/fix-errors
Browse files Browse the repository at this point in the history
Fix all errors preventing the successful merging of this branch
  • Loading branch information
ProjectZeroDays authored Dec 23, 2024
2 parents 780bcad + 868a331 commit 95e9551
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
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

0 comments on commit 95e9551

Please sign in to comment.