text
stringlengths
0
9.3M
import os import struct import binascii import logging log = logging.getLogger(__name__) try: import bson HAVE_BSON = True except ImportError: HAVE_BSON = False else: # The BSON module provided by pymongo works through its "BSON" class. if hasattr(bson, "BSON"): bson_decode = lambda d: bso...
# 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 ConfigParser from lib.cuckoo.common.constants import CUCKOO_ROOT from lib.cuckoo.common.exceptions import CuckooOperationalError 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 os _current_dir = os.path.abspath(os.path.dirname(__file__)) CUCKOO_ROOT = os.path.normpath(os.path.join(_current_dir, "..", "..", "..")) CUCK...
# 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. REG_NONE = 0 REG_SZ = 1 REG_EXPAND_SZ = 2 REG_BINARY = 3 REG_DWORD_LITTLE_ENDIAN = 4 REG_DWORD ...
# 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 os import tempfile import logging from lib.cuckoo.common.config import Config from lib.cuckoo.common.objects import File from lib...
from datetime import datetime # http://pythoncentral.io/introductory-tutorial-python-sqlalchemy/ from sqlalchemy import Index, Column, ForeignKey, Integer, Text, String, Boolean, DateTime, or_, and_, desc from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import create_engine from sqlalchemy.orm 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 select import socket import threading try: import pycares HAVE_CARES = True except: HAVE_CARES = False #try: # import gevent, g...
# 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 email import mimetypes from email.header import decode_header, make_header import utils SAFE_MEDIA_TYPE = ['text/plain', 'text/html'] EMAIL_MA...
# 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 CuckooCriticalError(Exception): """Cuckoo struggle in a critical error.""" pass class CuckooStartupError(CuckooCriticalError): """Er...
# 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. from ctypes import * BYTE = c_ubyte WORD = c_ushort DWORD = c_uint LONG = c_int class GRPICONDIR(Structure): _pack_ = 1 ...
# Copyright (C) 2010-2015 Cuckoo Foundation. # Copyright (C) 2012 JoseMi Holguin (@j0sm1) # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. """IRC Protocol""" import cStringIO import logging try: import re2 as re except ImportError: imp...
# 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 import random from lib.cuckoo.common.colors import color, yellow from lib.cuckoo.common.constants import CUCKOO_VERSION def logo(): ""...
# 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. """Table for all hook logging statements. This table is not automatically generated at the moment, but kept up-to-date by hand. """ table = [ ("_...
# 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 struct import datetime import string try: import bson HAVE_BSON = True except ImportError: HAVE_BSON = False else: ...
# 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 binascii import hashlib import logging import os import subprocess import mmap import struct import copy from lib.cuckoo.common.constants impor...
# Copyright (C) 2015 KillerInstinct, 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 struct import hashlib import logging from binascii import crc32 try: import olefile HAVE_OLEFIL...
# Copyright (C) 2016 Will Metcalf # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import logging import zipfile import shutil from xml.dom.minidom import parse, parseString try: from scapy.utils import PcapWriter from scapy.all import *...
# Copyright (C) 2015 KillerInstinct, Cuckoo Foundation # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import logging import re import string from gzip import GzipFile from cStringIO import StringIO from itertools import chain, izip, repeat lo...
# 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 time import shutil import ntpath import string import random import struct import fcntl import s...
import os import sys import json import magic import logging import hashlib import requests from random import choice _current_dir = os.path.abspath(os.path.dirname(__file__)) CUCKOO_ROOT = os.path.normpath(os.path.join(_current_dir, "..", "..", "..")) sys.path.append(CUCKOO_ROOT) from django.http import HttpResponse...
# 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) 2014-2015 Kevin Breen (http://techanarchy.net) # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import os import re import sys import json import string import struct from zipfile import ZipFile from cStringIO import StringIO #N...
# Copyright (C) 2014-2015 Kevin Breen (http://techanarchy.net) # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import sys import string from struct import unpack try: import pefile except: pass from binascii import unhexlify def rc4crypt(d...
# Copyright (C) 2014-2015 Kevin Breen (http://techanarchy.net), 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 zlib import string import pefile import logging from struct import...
# Copyright (C) 2014-2015 Kevin Breen (http://techanarchy.net) # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import os import sys import base64 import string try: import pype32 HAVE_PYPE32 = True except ImportError: HAVE_PYPE32 =...
# Copyright (C) 2015 Kevin Breen (http://techanarchy.net), 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 from zipfile import ZipFile from struct import unpack from lib.cuckoo.common.u...
# 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 #encoding: utf-8 import sys import pkgutil import os import logging import argparse import io import base64 import json import datetime __version__ = {} __version__['codename'] = 'Iron Airedale' # http://www.codenamegenerator.com/?prefix=metal&dictionary=dogs __version__['digit'] = 3.2 __version...
#!/usr/bin/env python """ Entropy and byte occurrence analysis over all file ------------------------------------------- abs_fpath str: Absolute file path - File to load and analyse fname str: Filename blob bool: Do not intelligently parse certain file types. Treat all files as a bin...
#!/usr/bin/env python """ Byte histogram over all file ------------------------------------------- abs_fpath: Absolute file path - File to load and analyse fname: Filename no_zero bool: Remove 0x00 from the graph, sometimes this blows other results due to there being numerous amounts - also see log wi...
#!/usr/bin/env python """Generate JA3 fingerprints from PCAPs using Python.""" import argparse import dpkt import json import socket import binascii import struct from hashlib import md5 __author__ = "Tommy Stallings" __copyright__ = "Copyright (c) 2017, salesforce.com, inc." __credits__ = ["John B. Althouse", "Jeff ...
# Written by @JamesHabben # https://github.com/JamesHabben/MalwareStuff # 2015-01-27 Slight modifications from Philippe Lagadec (PL) to use it from olevba import sys def DridexUrlDecode (inputText) : work = inputText[4:-4] strKeyEnc = StripCharsWithZero(work[(len(work) / 2) - 2: (len(work) / 2)]) strKeyS...
#!/usr/local/bin/python # -*- coding: latin-1 -*- """ ExtractMsg: Extracts emails and attachments saved in Microsoft Outlook's .msg files https://github.com/mattgwwalker/msg-extractor """ __author__ = "Matthew Walker" __date__ = "2013-11-19" __version__ = '0.2' # --- LICENSE -------------------------------------...
#!/usr/bin/env python # -*- coding: utf-8 -*- """Main vba2graph file Version: 0.2 This script creates fancy VBA call graphs from olevba output. Run Examples: $ python vba2graph.py -i [your_olevba_output] -o [output_dir] $ python vba2graph.py -f [office_file_with_macro] -o [output_dir] $ olevba [malicous_d...
# Copyright (C) 2010-2015 Cuckoo Foundation, KillerInstinct # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import string try: import re2 as re except ImportError: import re from itertools import chain, repeat, izip from lib.cuckoo.co...
#!/usr/bin/python __description__ = 'pdf-parser, use it to parse a PDF document' __author__ = 'Didier Stevens' __version__ = '0.6.8' __date__ = '2017/10/29' __minimum_python_version__ = (2, 5, 1) __maximum_python_version__ = (3, 6, 3) """ Source code put in public domain by Didier Stevens, no Copyright https://Didier...
#!/usr/bin/env python __description__ = 'Tool to test a PDF file' __author__ = 'Didier Stevens' __version__ = '0.2.5' __date__ = '2018/07/05' """ Tool to test a PDF file Source code put in public domain by Didier Stevens, no Copyright https://DidierStevens.com Use at your own risk History: 2009/03/27: start 20...
# # peepdf is a tool to analyse and modify PDF files # http://peepdf.eternal-todo.com # By Jose Miguel Esparza <jesparza AT eternal-todo.com> # # Copyright (C) 2012-2014 Jose Miguel Esparza # # This file is part of peepdf. # # peepdf is free software: you can redistribute it and/or modify # ...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ ccitt.py TODO http://tools.ietf.org/pdf/rfc804.pdf http://code.google.com/p/origami-pdf/source/browse/lib/origami/filters/ccitt.rb """ __author__ = 'Binjo' __version__ = '0.1' __date__ = '2012-04-08 14:30:05' class BitWriterException(Exception): pass class B...
# # peepdf is a tool to analyse and modify PDF files # http://peepdf.eternal-todo.com # By Jose Miguel Esparza <jesparza AT eternal-todo.com> # # Copyright (C) 2014 Jose Miguel Esparza # # This file is part of peepdf. # # peepdf is free software: you can redistribute it and/or modify # it u...
# # peepdf is a tool to analyse and modify PDF files # http://peepdf.eternal-todo.com # By Jose Miguel Esparza <jesparza AT eternal-todo.com> # # Copyright (C) 2011-2017 Jose Miguel Esparza # # This file is part of peepdf. # # peepdf is free software: you can redistribute it and/or modify # ...
# # peepdf is a tool to analyse and modify PDF files # http://peepdf.eternal-todo.com # By Jose Miguel Esparza <jesparza AT eternal-todo.com> # # Copyright (C) 2012-2014 Jose Miguel Esparza # # This file is part of peepdf. # # peepdf is free software: you can redistribute it and/or modify # ...
# # peepdf is a tool to analyse and modify PDF files # http://peepdf.eternal-todo.com # By Jose Miguel Esparza <jesparza AT eternal-todo.com> # # Copyright (C) 2011-2017 Jose Miguel Esparza # # This file is part of peepdf. # # peepdf is free software: you can redistribute it and/or modify # ...
# # peepdf is a tool to analyse and modify PDF files # http://peepdf.eternal-todo.com # By Jose Miguel Esparza <jesparza AT eternal-todo.com> # # Copyright (C) 2011-2017 Jose Miguel Esparza # # This file is part of peepdf. # # peepdf is free software: you can redistribute it and/or modify # ...
# # peepdf is a tool to analyse and modify PDF files # http://peepdf.eternal-todo.com # By Jose Miguel Esparza <jesparza AT eternal-todo.com> # # Copyright (C) 2011-2017 Jose Miguel Esparza # # This file is part of peepdf. # # peepdf is free software: you can redistribute it and/or modify # it...
# # peepdf is a tool to analyse and modify PDF files # http://peepdf.eternal-todo.com # By Jose Miguel Esparza <jesparza AT eternal-todo.com> # # Copyright (C) 2011-2017 Jose Miguel Esparza # # This file is part of peepdf. # # peepdf is free software: you can redistribute it and/or modify # it under the terms of the ...
#!/usr/bin/env python """ AES Block Cipher. Performs single block cipher decipher operations on a 16 element list of integers. These integers represent 8 bit bytes in a 128 bit block. The result of cipher or decipher operations is the transformed 16 element list of integers. Running this file as __main__ will result ...
""" Instantiate AES tables for rcon,sbox,i_sbox,and galois_lookup. Copyright (c) 2010,Adam Newman http://www.caller9.com/ Licensed under the MIT license http://www.opensource.org/licenses/mit-license.php """ __author__ = "Adam Newman" rcon=( 0x8d,0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80,0x1b,0x36,0x6c,0xd8,0xab,0x4d,0x...
#!/usr/bin/env python """ CBC Mode of operation Running this file as __main__ will result in a self-test of the algorithm. Algorithm per NIST SP 800-38A http://csrc.nist.gov/publications/nistpubs/800-38a/sp800-38a.pdf Copyright (c) 2010, Adam Newman http://www.caller9.com/ Licensed under the MIT license http://www.o...
#!/usr/bin/env python """ CFB Mode of operation Running this file as __main__ will result in a self-test of the algorithm. Algorithm per NIST SP 800-38A http://csrc.nist.gov/publications/nistpubs/800-38a/sp800-38a.pdf Copyright (c) 2010, Adam Newman http://www.caller9.com/ Licensed under the MIT license http://www.o...
#!/usr/bin/env python """ AES Key Expansion. Expands 128, 192, or 256 bit key for use with AES Running this file as __main__ will result in a self-test of the algorithm. Algorithm per NIST FIPS-197 http://csrc.nist.gov/publications/fips/fips197/fips-197.pdf Copyright (c) 2010, Adam Newman http://www.caller9.com/ L...
#!/usr/bin/env python """ OFB Mode of operation Running this file as __main__ will result in a self-test of the algorithm. Algorithm per NIST SP 800-38A http://csrc.nist.gov/publications/nistpubs/800-38a/sp800-38a.pdf Copyright (c) 2010, Adam Newman http://www.caller9.com/ Licensed under the MIT license http://www.o...
""" Test keys and data for self-test operations. Test data from: NIST SP 800-38A http://csrc.nist.gov/publications/nistpubs/800-38a/sp800-38a.pdf NIST FIPS-197 http://csrc.nist.gov/publications/fips/fips197/fips-197.pdf Copyright (c) 2010, Adam Newman http://www.caller9.com/ Licensed under the MIT license http://www....
''' This module generates ANSI character codes to printing colors to terminals. See: http://en.wikipedia.org/wiki/ANSI_escape_code ''' CSI = '\033[' def code_to_chars(code): return CSI + str(code) + 'm' class AnsiCodes(object): def __init__(self, codes): for name in dir(codes): if not nam...
import re import sys from .ansi import AnsiFore, AnsiBack, AnsiStyle, Style from .winterm import WinTerm, WinColor, WinStyle from .win32 import windll if windll is not None: winterm = WinTerm() def is_a_tty(stream): return hasattr(stream, 'isatty') and stream.isatty() class StreamWrapper(object): ''...
import atexit import sys from .ansitowin32 import AnsiToWin32 orig_stdout = sys.stdout orig_stderr = sys.stderr atexit_done = False def reset_all(): AnsiToWin32(orig_stdout).reset_all() def init(autoreset=False, convert=None, strip=None, wrap=True): if wrap==False and (autoreset==True or convert==True ...
# from winbase.h STDOUT = -11 STDERR = -12 try: from ctypes import windll except ImportError: windll = None SetConsoleTextAttribute = lambda *_: None else: from ctypes import ( byref, Structure, c_char, c_short, c_uint32, c_ushort ) handles = { STDOUT: windll.kernel32.GetStdHa...
from . import win32 # from wincon.h class WinColor(object): BLACK = 0 BLUE = 1 GREEN = 2 CYAN = 3 RED = 4 MAGENTA = 5 YELLOW = 6 GREY = 7 # from wincon.h class WinStyle(object): NORMAL = 0x00 # dim text, dim background BRIGHT = 0x08 # bright text, dim backgr...
from .initialise import init from .ansi import Fore, Back, Style from .ansitowin32 import AnsiToWin32 VERSION = '0.1.18'
import sys import getopt import re import string # # Originally written by Einar Lielmanis et al., # Conversion to python by Einar Lielmanis, einar@jsbeautifier.org, # MIT licence, enjoy. # # Python is not my native language, feel free to push things around. # # Use either from command line (script displays its usage ...
# # Unpacker for eval() based packers, a part of javascript beautifier # by Einar Lielmanis <einar@jsbeautifier.org> # # written by Stefano Sanfilippo <a.little.coder@gmail.com> # # usage: # # if detect(some_string): # unpacked = unpack(some_string) # """Unpacker for eval() based packers: runs JS code and retu...
# # simple unpacker/deobfuscator for scripts messed up with # javascriptobfuscator.com # # written by Einar Lielmanis <einar@jsbeautifier.org> # rewritten in Python by Stefano Sanfilippo <a.little.coder@gmail.com> # # Will always return valid javascript: if `detect()` is false, `code` is # returned, unmodified....
# # deobfuscator for scripts messed up with myobfuscate.com # by Einar Lielmanis <einar@jsbeautifier.org> # # written by Stefano Sanfilippo <a.little.coder@gmail.com> # # usage: # # if detect(some_string): # unpacked = unpack(some_string) # # CAVEAT by Einar Lielmanis # # You really don't want to obfuscate yo...
# # Unpacker for Dean Edward's p.a.c.k.e.r, a part of javascript beautifier # by Einar Lielmanis <einar@jsbeautifier.org> # # written by Stefano Sanfilippo <a.little.coder@gmail.com> # # usage: # # if detect(some_string): # unpacked = unpack(some_string) # """Unpacker for Dean Edward's p.a.c.k.e.r""" import r...
# # Trivial bookmarklet/escaped script detector for the javascript beautifier # written by Einar Lielmanis <einar@jsbeautifier.org> # rewritten in Python by Stefano Sanfilippo <a.little.coder@gmail.com> # # Will always return valid javascript: if `detect()` is false, `code` is # returned, unmodified. # # usage:...
# # General code for JSBeautifier unpackers infrastructure. See README.specs # written by Stefano Sanfilippo <a.little.coder@gmail.com> # """General code for JSBeautifier unpackers infrastructure.""" import pkgutil import re from jsbeautifier.unpackers import evalbased # NOTE: AT THE MOMENT, IT IS DEACTIVATED 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. import os import json import logging from datetime import datetime, timedelta from lib.cuckoo.common.config import Config from lib.cuckoo.common.const...
# 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 time import socket import logging import xmlrpclib from StringIO import StringIO from zipfile import ZipFile, ZIP_STORED from lib.cuc...
# 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 json import pkgutil import inspect import logging from datetime import datetime, timedelta from collections import defaultdict from di...
# 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 socket import select import logging import errno import datetime import SocketServer from threading import Event, Thread from lib.cuc...
# 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 json import logging import os.path import socket import tempfile import threading from lib.cuckoo....
# 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 time import shutil import logging import threading import Queue try: import re2 as re except ImportError: import re from lib....
# 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 shutil import sys import copy import logging import logging.handlers from datetime import datetime import modules.auxiliary import mo...
# 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 # -*- coding: utf-8 -*- # Copyright (C) 2010-2014 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import sys import getopt import re as re_ etree_ = None Verbose_import_ = False ( XMLParser_import_non...
# Copyright (c) 2014, The MITRE Corporation # Copyright (c) 2010-2014, Cuckoo Developers # All rights reserved. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file "docs/LICENSE" for copying permission. from modules.processing.behavior import fix_key api_call_mappings = { "NtCreat...
# 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) 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 stat import getpass import logging import subprocess import ctypes from lib.cuckoo.common.abstracts import Auxiliary from lib.cuckoo....
# 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.cuckoo.common.abstracts import Feed class AbuseCH_SSL(Feed): # Results dict key value / exception handling / logging name name = "Bad...
# 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. # Copyright (C) 2013 Christopher Schmitt <cschmitt@tankbusta.net> # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import logging import libvirt from lib.cuckoo.common.abstracts import LibVirtMachine...
# 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 xml.etree.ElementTree as ET from lib.cuckoo.common.abstracts import LibVirtMachinery class KVM(LibVirtMachinery): """Virtualization layer...
# 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, subprocess import xml.etree.ElementTree as ET import libvirt import logging from lib.cuckoo.common.abstracts import LibVirtMachinery from l...
# Copyright (C) 2010-2013 Claudio Guarnieri. # Copyright (C) 2019-2019 Christophe Vandeplas. # 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. """ Pseudo-machinery for using multiple machinery. """ im...
# Copyright (C) 2012-2014 The MITRE Corporation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import socket import logging import xmlrpclib import subprocess from lib.cuckoo.common.abstracts import Machinery from lib.cuckoo.common.constants...
# 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 time import logging import subprocess import os.path try: import re2 as re except ImportError: import re from lib.cuckoo.com...
# Copyright (C) 2010-2015 Cuckoo Foundation. # This file was originally produced by Mike Tu. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import glob import logging import subprocess import os.path import shutil import time from lib.cuckoo....
import logging import requests import json from lib.cuckoo.common.abstracts import Machinery from lib.cuckoo.common.exceptions import CuckooMachineError from requests.packages.urllib3.exceptions import InsecureRequestWarning requests.packages.urllib3.disable_warnings(InsecureRequestWarning) log = logging.getLogger(_...
# Copyright (C) 2010-2015 Cuckoo Foundation, Context Information Security. (kevin.oreilly@contextis.co.uk) # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import glob import logging import subprocess import os.path import shutil import time fr...
# Copyright (C) 2015 eSentire, Inc (jacob.gajek@esentire.com). # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import requests import logging import time import random import re from datetime import datetime, timedelta from lib.cuckoo.common....