text
stringlengths
0
9.3M
from struct import pack from ..signature import SignatureTree class Marshaller: def __init__(self, signature, body): self.signature_tree = SignatureTree._get(signature) self.signature_tree.verify(body) self.buffer = bytearray() self.body = body self.writers = { ...
import array import socket from codecs import decode from struct import unpack_from from ..constants import MessageFlag, MessageType from ..errors import InvalidMessageError from ..message import Message from ..signature import SignatureTree, Variant from .constants import BIG_ENDIAN, LITTLE_ENDIAN, PROTOCOL_VERSION, ...
import ast import inspect from contextlib import suppress from typing import Any, List, Union from ..signature import SignatureTree, Variant def signature_contains_type(signature: Union[str, SignatureTree], body: List[Any], token: str) -> bool: """For a given signature and body, check to see if it contains any m...
# Copyright (C) 2014-2016 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import logging import os import subprocess log = logging.getLogger(__name__) class Process: """Linux process.""" first_process = True f...
# Copyright (C) 2010-2015 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import asyncio import logging import math import secrets import urllib.parse log = logging.getLogger(__name__) try: log.debug("Importing 'PIL.Ima...
# Copyright (C) 2014-2016 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. from lib.api.process import Process from lib.common.exceptions import CuckooPackageError class Package: """Base abstract analysis package.""" ...
#!/usr/bin/env python # Copyright (C) 2015 Dmitry Rodionov # This software may be modified and distributed under the terms # of the MIT license. See the LICENSE file for details. from os import path from time import sleep def sanitize_path(raw_path): """Replace spaces with backslashes+spaces""" return raw_pa...
# Copyright (C) 2014-2016 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import os import tempfile from lib.common.rand import random_string ROOT = os.path.join(tempfile.gettempdir(), random_string(6, 10)) PATHS = { "...
# Copyright (C) 2014-2016 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. class CuckooError(Exception): pass class CuckooPackageError(Exception): pass
# Copyright (C) 2014-2016 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import hashlib BUFSIZE = 1024 * 1024 def sha256_file(path): return hash_file(hashlib.sha256, path) def hash_file(method, path): """Calcula...
import random import string def random_string(minimum, maximum=None, charset=None): if maximum is None: maximum = minimum count = random.randint(minimum, maximum) if not charset: return "".join(random.choice(string.ascii_letters) for x in range(count)) return "".join(random.choice(ch...
# Copyright (C) 2014-2016 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import logging import os import socket import time from pathlib import Path from lib.core.config import Config config = Config(cfg="analysis.conf") l...
# Copyright (C) 2014-2016 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import configparser class Config: def __init__(self, cfg): """@param cfg: configuration file.""" config = configparser.ConfigPars...
#!/usr/bin/env python # Copyright (C) 2015 Dmitry Rodionov # This software may be modified and distributed under the terms # of the MIT license. See the LICENSE file for details. import inspect import logging import shutil import subprocess import timeit from os import environ, makedirs, path, sys from threading impor...
# Copyright (C) 2014-2016 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import logging import os from contextlib import suppress from lib.common.constants import PATHS from lib.common.results import NetlogHandler log = lo...
import hashlib import logging import os import time from threading import Thread from lib.common.abstracts import Auxiliary from lib.common.constants import ROOT from lib.common.hashing import hash_file from lib.common.results import upload_to_host try: import pyinotify HAVE_PYINOTIFY = True except ImportErr...
# Copyright (C) 2012-2013 Claudio Guarnieri. # Copyright (C) 2014-2019 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import logging import random import time from threading import Thread try: import pyautogui from ...
# Copyright (C) 2010-2015 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import asyncio import logging import threading from threading import Thread from lib.api.screenshot import HAVE_DBUS_NEXT, HAVE_PIL if HAVE_PIL and H...
#!/usr/bin/env python # Copyright (C) 2015 Dmitry Rodionov # This software may be modified and distributed under the terms # of the MIT license. See the LICENSE file for details. from lib.core.packages import Package class Bash(Package): """Bash shell script analysys package.""" def prepare(self): s...
#!/usr/bin/env python # Copyright (C) 2024 xiangchen96 # This software may be modified and distributed under the terms # of the MIT license. See the LICENSE file for details. from lib.core.packages import Package class Deb(Package): """Deb analysis package.""" def prepare(self): self.args = [self.ta...
#!/usr/bin/env python # Copyright (C) 2018 phdphuc # This software may be modified and distributed under the terms # of the MIT license. See the LICENSE file for details. from os import system from lib.core.packages import Package class Doc(Package): """LibreOffice document.""" def prepare(self): s...
#!/usr/bin/env python # Copyright (C) 2018 phdphuc # This software may be modified and distributed under the terms # of the MIT license. See the LICENSE file for details. from lib.core.packages import Package class Ff(Package): """Firefox analysys package.""" def prepare(self): self.args = [self.tar...
#!/usr/bin/env python # Copyright (C) 2018 phdphuc # This software may be modified and distributed under the terms # of the MIT license. See the LICENSE file for details. from os import system from lib.core.packages import Package class Generic(Package): """Generic analysis package.""" def prepare(self): ...
#!/usr/bin/env python # Copyright (C) 2018 phdphuc # This software may be modified and distributed under the terms # of the MIT license. See the LICENSE file for details. from lib.core.packages import Package class Jar(Package): """Java analysis package.""" def prepare(self): class_path = self.optio...
#!/usr/bin/env python # Copyright (C) 2015 Dmitry Rodionov # This software may be modified and distributed under the terms # of the MIT license. See the LICENSE file for details. from lib.core.packages import Package class Js(Package): """Java script analysys package.""" def prepare(self): self.args...
#!/usr/bin/env python # Copyright (C) 2015 Dmitry Rodionov # This software may be modified and distributed under the terms # of the MIT license. See the LICENSE file for details. from os import system from lib.core.packages import Package class Pdf(Package): """Bash shell script analysys package.""" def pr...
#!/usr/bin/env python # Copyright (C) 2018 phdphuc # This software may be modified and distributed under the terms # of the MIT license. See the LICENSE file for details. from lib.core.packages import Package class Perl(Package): """Perl script analysis package.""" def prepare(self): self.args = [se...
#!/usr/bin/env python # Copyright (C) 2018 phdphuc # This software may be modified and distributed under the terms # of the MIT license. See the LICENSE file for details. from lib.core.packages import Package class Python(Package): """Python script analysis package.""" def prepare(self): self.args =...
#!/usr/bin/env python # Copyright (C) 2024 xiangchen96 # This software may be modified and distributed under the terms # of the MIT license. See the LICENSE file for details. from lib.core.packages import Package class Python_whl(Package): """Python wheel analysis package.""" def prepare(self): self...
#!/usr/bin/env python # Copyright (C) 2018 phdphuc # This software may be modified and distributed under the terms # of the MIT license. See the LICENSE file for details. import logging from os import chmod, system from subprocess import check_output from lib.core.packages import Package, choose_package_class log = ...
#!/usr/bin/env python # Copyright (C) 2015 Dmitry Rodionov # This software may be modified and distributed under the terms # of the MIT license. See the LICENSE file for details. import logging from os import environ, path from random import SystemRandom from shutil import move from string import ascii_letters from su...
# Copyright (C) 2010-2015 Cuckoo Foundation, Optiv, Inc. (brad.spengler@optiv.com) # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. # TODO # https://github.com/cuckoosandbox/cuckoo/blob/ad5bf8939fb4b86d03c4d96014b174b8b56885e3/cuckoo/core/plugin...
# Copyright (C) 2010-2015 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission.
# Copyright (C) 2010-2015 Cuckoo Foundation, Optiv, Inc. (brad.spengler@optiv.com) # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import base64 import contextlib import logging import os import platform import random import subprocess import s...
# Copyright (C) 2010-2015 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import logging import math log = logging.getLogger(__name__) try: log.debug("Importing 'PIL.ImageChops'") # from PIL import ImageChops fr...
# Copyright (C) 2014-2015 Will Metcalf (william.metcalf@gmail.com) # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # T...
# Copyright (C) 2010-2015 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission.
# Copyright (C) 2010-2015 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import glob import importlib import inspect import logging import os import shutil from lib.api.process import Process from lib.common.common import c...
import ctypes import logging import os import sys from ctypes import POINTER, wintypes from ctypes.wintypes import BOOL, HANDLE from functools import wraps log = logging.getLogger(__name__) def check_file_extension(path: str, ext: str) -> str: # Check file extension. # If the file doesn't have the proper ext...
# Copyright (C) 2010-2015 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import os from lib.common.rand import random_string ROOT = os.path.join(os.getenv("SystemDrive"), "\\", random_string(6, 10)) PATHS = { "root": ...
# Copyright (C) 2010-2015 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import sys from ctypes import ( POINTER, Structure, Union, c_bool, c_char, c_double, c_int, c_ubyte, c_uint, c_...
# Copyright (C) 2010-2015 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. ERRORS = { 0: {"description": "The operation completed successfully", "name": "ERROR_SUCCESS"}, 1: {"description": "Incorrect function", "name"...
# Copyright (C) 2010-2015 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. class CuckooError(Exception): pass class CuckooPackageError(Exception): pass
# Copyright (C) 2010-2015 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. BUFSIZE = 1024 * 1024 def hash_file(method, path): """Calculates an hash on a file by path. @param method: callable hashing method @param...
import struct from contextlib import suppress try: import pefile HAVE_PEFILE = True except ImportError: HAVE_PEFILE = False IMAGE_DOS_SIGNATURE = 0x5A4D IMAGE_NT_SIGNATURE = 0x00004550 OPTIONAL_HEADER_MAGIC_PE = 0x10B OPTIONAL_HEADER_MAGIC_PE_PLUS = 0x20B IMAGE_FILE_EXECUTABLE_IMAGE = 0x0002 IMAGE_FILE_M...
import random import string def random_string(minimum, maximum=None, charset=None): if maximum is None: maximum = minimum count = random.randint(minimum, maximum) if not charset: return "".join(random.choice(string.ascii_letters) for _ in range(count)) return "".join(random.choice(ch...
# Copyright (C) 2010-2013 Claudio Guarnieri. # Copyright (C) 2014-2016 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import logging import struct import winreg from ctypes import POINTER, byref, c_ushort, c_void_p, c_wchar_...
# Copyright (C) 2010-2015 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import logging import os import socket import time from pathlib import Path from lib.common.parse_pe import is_pe_image, pe_trimmed_size from lib.core...
import hashlib import logging import os import re import shutil import subprocess from pathlib import Path from zipfile import BadZipfile, ZipFile from lib.common.constants import OPT_MULTI_PASSWORD from lib.common.exceptions import CuckooPackageError from lib.common.hashing import hash_file from lib.common.results im...
# Copyright (C) 2010-2015 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission.
# Copyright (C) 2021 CSIT # This file is part of CAPE Sandbox - http://www.capesandbox.com # See the file 'docs/LICENSE' for copying permission. import json import logging import os from json.decoder import JSONDecodeError from lib.common.exceptions import CuckooPackageError log = logging.getLogger(__name__) def e...
# Copyright (C) 2010-2015 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import configparser class Config: def __init__(self, cfg): """@param cfg: configuration file.""" config = configparser.ConfigPars...
# Copyright (C) 2010-2015 Cuckoo Foundation, Optiv, Inc. (brad.spengler@optiv.com) # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import logging import socket import traceback from ctypes import addressof, byref, c_int, create_string_buffer, s...
# Copyright (C) 2010-2015 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import re def choose_package(file_type, file_name, exports, target): """Choose analysis package due to file type and file extension. @param f...
# Copyright (C) 2010-2013 Claudio Guarnieri. # Copyright (C) 2014-2016 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import errno import logging import socket import threading from ctypes import addressof, byref, c_uint, cr...
# Copyright (C) 2010-2015 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. from ctypes import POINTER, wintypes from lib.common.defines import ( ADVAPI32, KERNEL32, LUID, LUID_AND_ATTRIBUTES, PROCESS_ALL_A...
# Copyright (C) 2010-2015 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import contextlib import ctypes import logging import os from datetime import datetime from lib.common.constants import PATHS from lib.common.defines ...
# Copyright (C) 2010-2015 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission.
# Copyright (C) 2010-2015 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission.
#!/usr/bin/env python # This has been adapted from https://github.com/fireeye/pywintrace, consolidated in to # 1 file, with unnecessary parts left out. Some changes have been made to limit the # amount of code needed at the expense of some flexibility that is unnecessary for # our purposes. ##########################...
#!/usr/bin/env python import binascii import functools import logging import os import tempfile import threading from lib.common.abstracts import Auxiliary from lib.common.results import upload_buffer_to_host, upload_to_host from .amsi import AMSI, jsonldump logger = logging.getLogger(__name__) class AMSICollecto...
# Copyright (C) 2015 Optiv, Inc. (brad.spengler@optiv.com) # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import logging import os import time from threading import Thread from lib.api.process import Process from lib.common.abstracts import A...
# Copyright (C) 2024 fdiaz@virustotal.com # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import logging import os import subprocess import tempfile import time from threading import Thread from lib.common.abstracts import Auxiliary from lib.co...
# Copyright (C) 2010-2015 KillerInstinct # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import json import locale import logging import os from io import BytesIO from pathlib import Path from lib.api.utils import Utils from lib.common.abstrac...
# Copyright (C) 2010-2016 Cuckoo Foundation., KillerInstinct # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import io import itertools import logging import os import re import subprocess from random import randint from uuid import uuid4 from ...
import json import logging import os import pprint from collections.abc import Iterable, Mapping from lib.common.abstracts import Auxiliary from lib.common.results import upload_to_host from lib.core.config import Config log = logging.getLogger(__name__) SAFELIST = [] ETW = False HAVE_ETW = False try: from etw ...
import glob import logging import os import subprocess from threading import Thread from lib.common.abstracts import Auxiliary from lib.common.results import NetlogFile from lib.core.config import Config log = logging.getLogger(__name__) class During_script(Thread, Auxiliary): # De-priortise during_script to ru...
import itertools import logging import os import subprocess import zipfile from threading import Thread from lib.common.abstracts import Auxiliary from lib.common.results import upload_to_host log = logging.getLogger(__name__) class Evtx(Thread, Auxiliary): evtx_dump = "evtx.zip" windows_logs = [ "...
import logging import os from lib.common.abstracts import Auxiliary from lib.common.results import upload_to_host log = logging.getLogger(__name__) __author__ = "[Canadian Centre for Cyber Security] @CybercentreCanada" class FilePickup(Auxiliary): """In cases where you want to run something with 'free=yes' bu...
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2010-2015 Cuckoo Foundation, Optiv, Inc. (brad.spengler@optiv.com) # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import contextlib import logging import random import re import tra...
import logging from subprocess import STARTF_USESHOWWINDOW, STARTUPINFO, call from threading import Thread from lib.common.abstracts import Auxiliary log = logging.getLogger(__name__) __author__ = "[Canadian Centre for Cyber Security] @CybercentreCanada" class Permissions(Auxiliary): """ Change permissions...
import glob import logging import os import subprocess from lib.common.abstracts import Auxiliary from lib.common.results import NetlogFile from lib.core.config import Config log = logging.getLogger(__name__) class Pre_script(Auxiliary): def __init__(self, options=None, config=None): if options is None:...
# Copyright (C) 2016-2017 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import ctypes import logging import os import random from uuid import UUID from lib.common.abstracts import Auxiliary from lib.common.defines import P...
# Copyright (C) 2010-2015 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import logging import time from io import BytesIO from threading import Thread from lib.api.screenshot import Screenshot from lib.common.abstracts imp...
import logging import os import tempfile from lib.common.abstracts import Auxiliary from lib.common.results import upload_to_host log = logging.getLogger(__name__) SSLKEYLOGFILE = "SSLKEYLOGFILE" class SslKeyLogFile(Auxiliary): """Collect SSLKEYLOGFILE logs from guests.""" def __init__(self, options, conf...
# Copyright (C) 2020 Kevin O'Reilly. # This file is part of CAPE Sandbox - https://github.com/kevoreilly/CAPEv2 # See the file 'docs/LICENSE' for copying permission. import logging from ctypes import byref, sizeof from lib.api.process import Process from lib.common.abstracts import Auxiliary from lib.common.defines i...
# Copyright (C) 2016 Brad Spengler # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import logging import time from ctypes import byref, create_string_buffer, sizeof from threading import Thread from lib.common.abstracts import Auxiliary from l...
# Copyright (C) 2025 Xiang Chen # This file is part of CAPE Sandbox # See the file 'docs/LICENSE' for copying permission. import logging import os import time from threading import Thread from lib.common.abstracts import Auxiliary from lib.common.results import upload_to_host log = logging.getLogger(__name__) folde...
import json import logging import os import pprint from collections.abc import Iterable, Mapping from lib.common.abstracts import Auxiliary from lib.common.results import upload_to_host from lib.core.config import Config log = logging.getLogger(__name__) SAFELIST = [] ETW = False HAVE_ETW = False try: from etw ...
# Copyright (C) 2010-2015 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission.
# Copyright (C) 2010-2015 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. from lib.common.abstracts import Package from lib.common.common import check_file_extension class ACCESS(Package): """ACCESS analysis package."""...
# Copyright (C) 2010-2015 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import tempfile from pathlib import Path from lib.common.abstracts import CuckooPackageError, Package from lib.common.constants import OPT_CLASS cla...
# Copyright (C) 2010-2015 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import logging import os import shutil from pathlib import Path from lib.common.abstracts import Package from lib.common.constants import ( ARCHIV...
from lib.common.abstracts import Package from lib.common.constants import OPT_ARGUMENTS class AutoIT(Package): """AutoIT analysis package.""" summary = "Executes the sample with autoit3." description = f"""Uses 'bin\\autoit3.exe <sample> [arguments]' to execute the sample, Set the '{OPT_ARGUMENTS}' o...
# Copyright (C) 2010-2015 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. from lib.common.abstracts import Package from lib.common.common import check_file_extension class Batch(Package): """batch analysis package.""" ...
# Copyright (C) 2010-2015 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. from lib.common.abstracts import Package from lib.common.common import check_file_extension from lib.common.constants import OPT_ARGUMENTS class CHM(...
# Copyright (C) 2014 Optiv, Inc. (brad.spengler@optiv.com) # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. from lib.common.abstracts import Package class Chrome(Package): """Chrome analysis package.""" PATHS = [ ("ProgramFile...
# Copyright (C) 2023 Sean Whalen # This file is part of CAPE Sandbox -https://github.com/kevoreilly/CAPEv2 # See the file 'docs/LICENSE' for copying permission. from lib.common.abstracts import Package class Chromium(Package): """Chromium analysis package.""" PATHS = [ ("LOCALAPPDATA", "Chromium", "...
# Copyright (C) 2024 fdiaz@virustotal.com # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import time import webbrowser from lib.common.abstracts import Package class ChromiumExt(Package): """Chromium extension analysis package.""" ...
# Copyright (C) 2010-2015 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. from lib.common.abstracts import Package class CPL(Package): """Control Panel Applet analysis package.""" PATHS = [ ("SystemRoot", "...
# Copyright (C) 2024 davidsb@virustotal.com # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import logging import os from lib.common.abstracts import Package from lib.common.exceptions import CuckooPackageError from lib.common.zip_utils import...
# Copyright (C) 2010-2015 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import contextlib import logging import os import shutil from lib.common.abstracts import Package from lib.common.common import check_file_extension f...