text stringlengths 0 9.3M |
|---|
import logging
import re
import sys
from collections import OrderedDict as OrdDict
from collections import namedtuple
from operator import itemgetter, attrgetter
from avclass import DEFAULT_TAX_PATH, DEFAULT_TAG_PATH, DEFAULT_EXP_PATH
# Set logging
log = logging.getLogger(__name__)
# Prefix to identify platform tags... |
#!/usr/bin/env python
import sys
def tp_fp_fn(CORRECT_SET, GUESS_SET):
"""
INPUT: dictionary with the elements in the cluster from the ground truth
(CORRECT_SET) and dictionary with the elements from the estimated cluster
(ESTIMATED_SET).
OUTPUT: number of True Positives (elements in both clusters... |
#!/usr/bin/env python3
import argparse
import gzip
import json
import logging
import os
import string
import sys
import traceback
from operator import itemgetter
try:
from avclass import DEFAULT_TAX_PATH, DEFAULT_TAG_PATH, DEFAULT_EXP_PATH
from avclass.common import AvLabels, Taxonomy, SampleInfo
from av... |
#!/usr/bin/env python3
import argparse
import json
import os
import uuid
import sys
try:
from avclass import DEFAULT_TAX_PATH, DEFAULT_TAG_PATH, DEFAULT_EXP_PATH
from avclass.common import Taxonomy, Tagging
except ModuleNotFoundError:
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file_... |
#!/usr/bin/env python3
import argparse
import os
import sys
try:
from avclass import DEFAULT_TAX_PATH, DEFAULT_TAG_PATH, DEFAULT_EXP_PATH
from avclass.common import Taxonomy, Tagging, Expansion
except ModuleNotFoundError:
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
fro... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import argparse
import logging
import os
import sys
from collections import namedtuple
from operator import itemgetter
# from Levenshtein import ratio as levenshtein_ratio
try:
from avclass import DEFAULT_TAX_PATH, DEFAULT_TAG_PATH, DEFAULT_EXP_PATH
from avclass... |
import os
AVCLASS_ROOT = os.path.dirname(os.path.abspath(__file__))
DATA_FOLDER = os.path.join(AVCLASS_ROOT, 'data/')
RESOURCE_TAG = "default.tagging"
RESOURCE_TAX = "default.taxonomy"
RESOURCE_EXP = "default.expansion"
DEFAULT_TAX_PATH = os.path.join(DATA_FOLDER, RESOURCE_TAX)
DEFAULT_TAG_PATH = os.path.join(DATA_F... |
#!/usr/bin/env python3
"""Command-line tool for easily managing BinaryAlert."""
import argparse
import os
import sys
from cli import __version__
from cli.manager import Manager
def main() -> None:
"""Main command dispatcher."""
if not (sys.version_info.major == 3 and sys.version_info.minor in {6, 7}):
... |
"""BinaryAlert configuration management."""
import base64
import getpass
import os
import re
import subprocess
from typing import Any
import boto3
import hcl
from cli.exceptions import InvalidConfigError
# File locations
PARENT_DIR = os.path.dirname(os.path.realpath(__file__)) # Directory containing this file.
TERR... |
"""Worker task for adding things to a queue."""
from multiprocessing import JoinableQueue, Process
import time
from typing import List
import boto3
class EnqueueTask:
"""A Task to send a batch of records to SQS."""
def __init__(self, messages: List[str]) -> None:
"""Initialize a Task with up to 10 S... |
"""Custom exceptions in the BinaryAlert CLI."""
class ManagerError(Exception):
"""Top-level exception for Manager errors."""
class InvalidConfigError(ManagerError):
"""BinaryAlert config is not valid."""
class TestFailureError(ManagerError):
"""Exception raised when a BinaryAlert test fails."""
|
"""BinaryAlert management utility."""
from datetime import datetime, timedelta
import gzip
import inspect
import json
import multiprocessing
from multiprocessing import JoinableQueue
import os
import subprocess
import sys
from typing import Any, Callable, Dict, Generator, Iterable, Optional, Set, Tuple
import unittest
... |
"""BinaryAlert release version"""
__version__ = '1.2.0'
|
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# BinaryAlert documentation build configuration file, created by
# sphinx-quickstart on Tue Sep 12 11:56:50 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
... |
"""Builds the deployment packages for all of the Lambda functions."""
import glob
import os
import pathlib
import shutil
import stat
import subprocess
import sys
import tempfile
from typing import Callable
import zipfile
from lambda_functions.analyzer.common import COMPILED_RULES_FILENAME
from rules.compile_rules impo... |
"""Collection of boto3 calls to AWS resources for the analyzer function."""
import json
from typing import Dict, List, Optional, Set, Tuple, Union
import boto3
from boto3.dynamodb.conditions import Key
from botocore.client import Config
from botocore.exceptions import ClientError
# BinaryInfo is imported here just fo... |
"""Keeps track of all information associated with and computed about a binary."""
import os
import subprocess
import tempfile
import time
from typing import Any, Dict, List, Set
import uuid
from lambda_functions.analyzer import analyzer_aws_lib, file_hash
from lambda_functions.analyzer.common import LOGGER
from lambda... |
"""Common resources shared among the analyzer components."""
import logging
import os
LOGGER = logging.getLogger()
LOGGER.setLevel(logging.INFO)
# Define the name and location of the compiled YARA rules file.
COMPILED_RULES_FILENAME = 'compiled_yara_rules.bin'
THIS_DIRECTORY = os.path.dirname(os.path.realpath(__file_... |
"""Memory-efficient file hashing."""
import hashlib
from typing import Generator, IO, Tuple
MB = 2 ** 20 # ~ 1 million bytes
def _read_in_chunks(file_object: IO[bytes], chunk_size: int = 2*MB) -> Generator[bytes, None, None]:
"""Read a file in fixed-size chunks (to minimize memory usage for large files).
A... |
"""AWS Lambda function for testing a binary against a list of YARA rules."""
# Expects the following environment variables:
# NO_MATCHES_SNS_TOPIC_ARN: Optional ARN of an SNS topic to notify if there are no YARA matches.
# YARA_MATCHES_DYNAMO_TABLE_NAME: Name of the Dynamo table which stores YARA match results.
# ... |
"""Wrapper around YARA analysis."""
import collections
import json
import os
import subprocess
from typing import Any, Dict, List
import yara
from lambda_functions.analyzer.common import LOGGER
# YARA matches from both yara-python and yextend are stored in this generic YaraMatch tuple.
YaraMatch = collections.named... |
"""Lambda function to copy a binary from CarbonBlack into the BinaryAlert input S3 bucket."""
# Expects the following environment variables:
# CARBON_BLACK_URL: URL of the CarbonBlack server.
# ENCRYPTED_CARBON_BLACK_API_TOKEN: API token, encrypted with KMS.
# TARGET_S3_BUCKET: Name of the S3 bucket in which to s... |
"""Update YARA rules cloned from remote sources."""
from fnmatch import fnmatch
import json
import os
import shutil
import subprocess
import tempfile
from typing import Generator, List, Optional
RULES_DIR = os.path.dirname(os.path.realpath(__file__)) # Directory containing this file.
REMOTE_RULE_SOURCES = os.path.joi... |
"""Compile all of the YARA rules into a single binary file."""
import os
from typing import Generator
import yara
RULES_DIR = os.path.dirname(os.path.realpath(__file__)) # Directory containing this file.
def _find_yara_files() -> Generator[str, None, None]:
"""Find all .yar[a] files in the rules directory.
... |
"""Utilities common to several different unit tests."""
class MockLambdaContext:
"""http://docs.aws.amazon.com/lambda/latest/dg/python-context-object.html"""
def __init__(self, function_version: int = 1, time_limit_ms: int = 30000,
decrement_ms: int = 10000) -> None:
self.function_ver... |
"""Upload test files to S3 and see if the expected matches appear in Dynamo."""
import hashlib
import json
import os
import time
from typing import Dict, List
import uuid
import boto3
TEST_DIR = os.path.dirname(os.path.realpath(__file__))
TEST_FILES = ['eicar.txt', 'eicar.tar.gz.bz2', 'eicar_packed.py.upx', 'eicar_te... |
"""Unit tests for cli/config.py."""
# pylint: disable=no-self-use,protected-access
import base64
import getpass
import subprocess
import sys
from unittest import mock
import boto3
from cli import config as config_module
from cli.config import BinaryAlertConfig, CONFIG_FILE
from cli.exceptions import InvalidConfigErro... |
"""Unit tests for cli/enqueue_task.py"""
# pylint: disable=no-self-use,protected-access
from multiprocessing import JoinableQueue
import time
from typing import Any, Dict
import unittest
from unittest import mock
import boto3
from cli import enqueue_task
class MockQueue:
"""Mock SQS queue which fails half of th... |
"""Unit tests for cli/manager.py"""
# pylint: disable=protected-access,too-many-public-methods
import collections
import inspect
import subprocess
from unittest import mock
from cli import config as config_module
from cli import manager as manager_module
from cli.config import BinaryAlertConfig
from cli.exceptions imp... |
"""Shared utilities for CLI test methods."""
import os
import sys
from pyfakefs import fake_filesystem_unittest
from cli.config import CONFIG_FILE, VARIABLES_FILE
def mock_input(prompt: str) -> str:
"""Mock for the user input() function to automatically respond with valid answers."""
# pylint: disable=too-m... |
"""Test lambda_functions/build.py."""
import os
import tempfile
from typing import List, Set
import unittest
from unittest import mock
import zipfile
from lambda_functions import build
def _mock_pip_main(args_list: List[str]) -> None:
"""Mock pip install just creates the target directories."""
install_direct... |
"""Unit tests for analyzer_aws_lib.py. Uses mock boto3 clients."""
# pylint: disable=protected-access
import unittest
from unittest import mock
from lambda_functions.analyzer import analyzer_aws_lib, binary_info, yara_analyzer
MOCK_DYNAMO_TABLE_NAME = 'mock-dynamo-table'
YaraMatch = yara_analyzer.YaraMatch
class An... |
"""Unit tests for file_hash.py (uses fake filesystem)."""
import hashlib
import math
from pyfakefs import fake_filesystem_unittest
from lambda_functions.analyzer import file_hash
class FileUtilsTest(fake_filesystem_unittest.TestCase):
"""Unit tests for file utilities."""
# pylint: disable=no-member,protecte... |
"""Unit tests for analyzer main.py. Mocks out filesystem and boto3 clients."""
import hashlib
import json
import os
import subprocess
from unittest import mock
import urllib.parse
from pyfakefs import fake_filesystem_unittest
from lambda_functions.analyzer import yara_analyzer
from lambda_functions.analyzer.common im... |
"""Unit tests for yara_analyzer.py. Uses fake filesystem."""
# pylint: disable=protected-access
import json
import os
import subprocess
import unittest
from unittest import mock
from pyfakefs import fake_filesystem_unittest
from lambda_functions.analyzer import yara_analyzer
from tests.lambda_functions.analyzer impor... |
"""Redefine YARA operations to be mockable with pyfakefs."""
# Since YARA is natively compiled, it accesses the filesystem directly. In order to make pyfakefs
# work, this module redirects yara operations to use Python's file operations.
import io
import yara
REAL_YARA_LOAD = yara.load
# Sample YARA rules for testing... |
"""Unit tests for the CarbonBlack downloading Lambda function."""
# pylint: disable=protected-access
import base64
import io
import os
from unittest import mock
import boto3
import cbapi
from pyfakefs import fake_filesystem_unittest
class MockBinary:
"""Mock for cbapi.response.models.Binary."""
class MockVi... |
"""Tests for rule update/clone logic."""
# pylint: disable=protected-access
import json
import os
from typing import List
import unittest
from unittest import mock
from pyfakefs import fake_filesystem_unittest
from rules import compile_rules, clone_rules
class CopyRequiredTest(unittest.TestCase):
"""Test the _c... |
"""Verify that the YARA rules are identified and compile correctly."""
# pylint: disable=protected-access
import os
from unittest import mock, TestCase
from pyfakefs import fake_filesystem_unittest
import yara
from rules import compile_rules
@mock.patch.object(compile_rules, 'RULES_DIR', '/rules')
class FindYaraFil... |
"""Test the correctness of the EICAR YARA rule."""
import os
import unittest
import yara
THIS_DIRECTORY = os.path.dirname(os.path.realpath(__file__)) # Directory containing this file.
EICAR_RULE_FILE = os.path.join(THIS_DIRECTORY, '..', '..', 'rules', 'public', 'eicar.yara')
EICAR_TXT_FILE = os.path.join(THIS_DIRECT... |
'''
/*
* @Author: Limin Yang (liminy2@illinois.edu)
* @Date: 2021-08-29 00:44:22
* @Last Modified by: Limin Yang
* @Last Modified time: 2021-08-29 03:49:06
*/
NOTE: get data for Fig. 2, 3, and 4.
* ember-2018 does not provide reliable family labels, so consider it has no family info.
'''
import os
os.envir... |
'''
/*
* @Author: Limin Yang (liminy2@illinois.edu)
* @Date: 2021-08-28 15:45:26
* @Last Modified by: Limin Yang
* @Last Modified time: 2021-08-28 22:01:06
*/
NOTE: script for Fig. 1.
Transcend code was adapated from the original paper, please ask Feargus Pendlebury and Lorenzo Cavallaro for access.
Accu... |
import sys
from datetime import datetime
from fabric2 import Connection
def main():
if len(sys.argv) != 5:
print('You need to specify host, script, classifier, families_cnt, for example: python -u fabric.py storm run_multiclass.sh gbdt 5')
else:
host = sys.argv[1]
script = sys.argv[2]
... |
import sys
from datetime import datetime
from fabric2 import Connection
def main():
if len(sys.argv) != 6:
print('You need to specify host, script, train_set, classifier, seed, for example: python -u fabric_pretrain.py storm run_pretrain.sh ember gbdt 0')
else:
host = sys.argv[1]
script... |
'''
/*
* @Author: Limin Yang (liminy2@illinois.edu)
* @Date: 2021-08-26 15:42:50
* @Last Modified by: Limin Yang
* @Last Modified time: 2021-08-29 02:33:00
* NOTE: script for Table II (Sophos-DNN was not included).
*/
'''
# Sophos DNN result was in /home/liminyang/github/SOREL-20M, not included in this repo.
i... |
#!/usr/bin/env python
import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open(os.path.join(os.path.dirname(__file__), "README.md"), encoding="UTF-8") as f:
readme = f.read()
version = "0.0.1"
requires = open("requirements.txt", "r").read().strip().split... |
import os
os.environ['PYTHONHASHSEED'] = '0'
from numpy.random import seed
import random
random.seed(1)
seed(1)
from tensorflow import set_random_seed
set_random_seed(2)
from keras import backend as K
import tensorflow as tf
import sys
import json
import warnings
import logging
import pickle
from datetime import date... |
config = {
'gbdt_params': {
"boosting": "gbdt",
"objective": "binary",
"num_iterations": 1000,
"learning_rate": 0.05,
"num_leaves": 2048,
"max_depth": 15,
"min_data_in_leaf": 50,
"feature_fraction": 0.5,
"verbosity": -1 # 1 means INFO, > 1 mea... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
this module provide the log init function, running init_log at
the begin of program can print the log in a good style.
Author: yuyao
Date: 2015-04-28 20:29:00
"""
import os
import logging
import logging.handlers
from keras.callbacks import Callback
def init_log(lo... |
"""
multiple_data.py
~~~~~~~
Functions for cleaning, loading, and caching data from multiple datasets.
"""
import os
os.environ['PYTHONHASHSEED'] = '0'
from numpy.random import seed
import random
random.seed(1)
seed(1)
import sys
import logging
from collections import Counter
from timeit import default_timer as ti... |
import os, sys
import logging
import traceback
from timeit import default_timer as timer
import numpy as np
import pandas as pd
import matplotlib.pylab as plt
import seaborn as sns
from collections import Counter
from sklearn.metrics import roc_auc_score, roc_curve, accuracy_score, confusion_matrix, f1_score
from skle... |
# -*- coding: utf-8 -*-
"""
utils.py
~~~~~~~~
Helper functions for setting up the environment and parsing args, etc.
"""
import os
os.environ['PYTHONHASHSEED'] = '0'
from numpy.random import seed
import random
random.seed(1)
seed(1)
import sys
import logging
import argparse
import pickle
import json
import numpy a... |
#!/usr/bin/env python
# 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 argparse
import logging
import os
import sys
try:
from lib.cuckoo.common.logo import logo
from lib.cuckoo.common.... |
# 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
import sys
import time
import socket
import string
import random
import platform
import subprocess
import ConfigParser
from StringIO import S... |
# 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 os
import sys
import socket
import struct
import random
import pkgutil
import logging
import hashlib
impor... |
# 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 os
import logging
import random
import subprocess
import platform
import urllib
import base64
from time 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.
import math
try:
import ImageChops
import ImageGrab
import ImageDraw
HAVE_PIL = True
except:
try:
from PIL import ImageCho... |
# 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 os
INJECT_CREATEREMOTETHREAD = 0
INJECT_QUEUEUSERAPC = 1
from lib.api.process import Process
from lib.api.utils import Utils... |
# 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" : RO... |
# 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 *
NTDLL = windll.ntdll
KERNEL32 = windll.kernel32
ADVAPI32 = windll.advapi32
USER32 = windll.user32
PDH = windll.pdh
BYT... |
# 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 p... |
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 xrange(count))
return ''.join(random.choice(ch... |
# 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 socket
import time
from lib.core.config import Config
log = logging.getLogger(__name__)
BUFSIZE = 1024*1024
def upload_to_hos... |
# 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 ConfigParser
class Config:
def __init__(self, cfg):
"""@param cfg: configuration file."""
config = ConfigParser.ConfigParse... |
# 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 socket
import logging
import traceback
from ctypes import create_string_buffer
from ctypes import byref, 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.
def choose_package(file_type, file_name, exports, file_path):
"""Choose analysis package due to file type and file extension.
@param file_type:... |
# 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 wintypes, POINTER
from lib.common.defines import ADVAPI32, KERNEL32, SE_PRIVILEGE_ENABLED
from lib.common.defines import LUID, TOKE... |
# 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
import logging
from lib.common.constants import PATHS
from lib.common.results import NetlogHandler
log = logging.getLogger()
def create_fo... |
# 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.
|
# 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 time
import os
import logging
from threading import Thread
from lib.api.process import Process
from lib.common.abstracts import A... |
import os
import time
import logging
import subprocess
from threading import Thread
from lib.common.abstracts import Auxiliary
from lib.common.results import upload_to_host
from lib.core.config import Config
log = logging.getLogger(__name__)
__author__ = "Jeff White [karttoon] @noottrak"
__email__ = "jwhite@paloa... |
# 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 logging
import os
import locale
from cStringIO import StringIO
from lib.api.utils import Utils
from lib.common.abstracts import Auxilia... |
# 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 logging
from _winreg import (OpenKey, CreateKeyEx, SetValueEx, CloseKey, QueryInfoKey, EnumKey,
EnumValue, HKEY_LOCAL_MA... |
#!/usr/bin/env python
# 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 random
import logging
import traceback
from threading import Thread
from ctypes impo... |
# 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 time
import logging
import StringIO
from threading import Thread
from lib.common.abstracts import Auxiliary
from lib.common.results import Netl... |
import logging
import os
import time
import threading
import subprocess
from lib.common.abstracts import Auxiliary
from lib.common.results import upload_to_host
from lib.core.config import Config
log = logging.getLogger(__name__)
__author__ = "@FernandoDoming"
__version__ = "1.0.1"
class Sysmon(threading.Thread, Au... |
# Copyright (C) 2016 Brad Spengler
# This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org
# See the file 'docs/LICENSE' for copying permission.
from ctypes import *
import logging
import time
from threading import Thread
from lib.common.abstracts import Auxiliary
from lib.common.defines import PDH, KERN... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.