text
stringlengths
0
9.3M
# 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. """ XenServer machinery. """ import threading import logging from lib.cuckoo.common.abstracts import Machinery from lib.cuckoo.common.exceptions 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.
# 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 codecs import time import json import logging import os from datetime import datetime from lib.cuckoo.cor...
# 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 datetime import struct from lib.cuckoo.common.abstracts import Processing from l...
# Copyright (C) 2015 Kevin O'Reilly kevin.oreilly@contextis.co.uk # 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. # # Th...
# Copyright (C) 2015 Optiv, Inc. (brad.spengler@optiv.com), 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 requests import hashlib import urllib from lib.cuckoo.common.abstracts import Processing...
import os try: import re2 as re except ImportError: import re import ast import base64 import logging import itertools import xml.etree.ElementTree as ET from lib.cuckoo.common.abstracts import Processing from lib.cuckoo.common.exceptions import CuckooProcessingError log = logging.getLogger(__name__) __autho...
# 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 codecs from lib.cuckoo.common.abstracts import Processing from lib.cuckoo.common.exceptions import CuckooProcessingError from lib.cuc...
# 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 os import glob import zipfile from lib.cuckoo.common.abstracts import Processing from lib.cuckoo.common.exceptions import CuckooProcessingError class De...
# Copyright (C) 2017 Marirs. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import os import logging import imagehash from PIL import Image import six from lib.cuckoo.common.abstracts import Processing log = logging.getLogger() class Dedupli...
# 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.cuckoo.common.abstracts import Processing from lib.cuckoo.common.objects import File from lib.cuckoo.common.utils import convert_to...
# Copyright (C) 2017 enzok # 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. # # This program is distributed in the hope ...
# 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 import time try: import re2 as re except ImportError: import re from lib.cuckoo.common.abstracts import Processing 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 os import socket import struct import tempfile import logging import dns.resolver from collections import OrderedDict from urlparse import urlun...
# 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.cuckoo.common.abstracts import Processing from lib.cuckoo.common.config import Config from lib.cuckoo.common.objects import File fr...
# 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 struct HAVE_RE2 = False try: import re2 as re HAVE_RE2 = True except ImportError: import re from lib.cuckoo.common.abstra...
# 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 json from lib.cuckoo.common.utils import store_temp_file import logging import os import re import math im...
# 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.path HAVE_RE2 = False try: import re2 as re HAVE_RE2 = True except ImportError: import re ...
# Copyright (C) 2010-2012 Cuckoo Sandbox Developers. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import datetime import json import logging import os import shutil import socket import subprocess import sys import time try: import re2 ...
import logging, os, re import xml.etree.ElementTree as ET import xmltodict from lib.cuckoo.common.abstracts import Processing from lib.cuckoo.common.exceptions import CuckooProcessingError log = logging.getLogger(__name__) __author__ = "@FernandoDoming" __version__ = "1.0.0" def parseXmlToJson(xml): response =...
# 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.path from lib.cuckoo.common.abstracts import Processing from lib.cuckoo.common.objects import File class TargetInfo(Processing): """Gen...
# This file is part of CAPE # Tim Shelton # tshelton@hawkdefense.com # See the file 'docs/LICENSE' for copying permission. import os.path import subprocess from lib.cuckoo.common.abstracts import Processing from lib.cuckoo.common.exceptions import CuckooProcessingError class TrID(Processing): """Extract TrID ou...
# 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 os HAVE_PYGAL=False try: import pygal HAVE_PYGAL=True except ImportError: pass from lib.cuckoo.common.constants import CUCKOO_ROOT from lib....
# 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 json import requests import hashlib try: import re2 as re except ImportError: import re...
# 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.
# Init
import re import string from Crypto.Cipher import DES from base64 import b64decode # Logging import logging logger = logging.getLogger(__name__) def string_print(line): return filter(lambda x: x in string.printable, line) def get_config(data): m = re.search('\x01\x96\x01(.*)@@', data) raw_config = m.grou...
import string import binascii from zipfile import ZipFile from cStringIO import StringIO from Crypto.Cipher import ARC4, DES import xml.etree.ElementTree as ET def sortConfig(old_config): if old_config['Version'] == 'Adwind RAT v1.0': new_config = {} new_config['Version'] = old_config['Version'] ...
from zipfile import ZipFile from cStringIO import StringIO import re def parse_config(raw_config): config_dict = {} for line in raw_config.split('\n'): if line.startswith('<comment'): config_dict['Version'] = re.findall('>(.*?)</comment>', line)[0] if line.startswith('<entry key'):...
import re import json import string import struct from zipfile import ZipFile from cStringIO import StringIO #Non Standard Imports from Crypto.Cipher import ARC4 def version_a(enckey, coded_jar): config_dict = {} for key in enckey: print " [!] testing Key {0}".format(key) decoded_data = decry...
import base64 import string from Crypto.Cipher import Blowfish def decrypt_blowfish(raw_data): key = 'CVu3388fnek3W(3ij3fkp0930di' cipher = Blowfish.new(key) return cipher.decrypt(raw_data) def config(data): conf_data = {} config_raw = data.split('\x18\x12\x00\x00')[1].replace('\xA3\x24\x25\x21\x6...
# coding=UTF-8 import pefile from struct import unpack_from from sys import argv from binascii import hexlify from hashlib import md5 from Crypto.Cipher import ARC4 CFG_START = "1020304050607080" def RC4(key, data): cipher = ARC4.new(key) return cipher.decrypt(data) def extract_config(data): config_da...
# coding=UTF-8 import pefile import yara from struct import unpack_from from sys import argv from binascii import hexlify from hashlib import md5 from Crypto.Cipher import ARC4 rule_source = ''' rule BackOffPOS { meta: author = "enzok" description = "BackOffPOS Payload" cape_type = "BackOffPOS Payload" ...
import os import sys import pefile def extract_config(raw_data): try: pe = pefile.PE(data=raw_data) try: rt_string_idx = [ entry.id for entry in pe.DIRECTORY_ENTRY_RESOURCE.entries ].index(pefile.RESOURCE_TYPE['RT_RCDATA']) except:...
import re PRNG_SEED = 0 def is_valid_config(config): if config[:3] != "\x0c\x0c\x0c": return False if config.count("\x0C\x0C\x0C") < 15: return False return True def get_next_rng_value(): global PRNG_SEED PRNG_SEED = ((PRNG_SEED * 1140671485 + 12820163) & 0xffffff) return PRNG...
import os import sys import string from zipfile import ZipFile from cStringIO import StringIO from Crypto.Cipher import AES def decrypt_aes(key, data): cipher = AES.new(key) return cipher.decrypt(data) def decrypt_conf(conFile): key1 = '15af8sd4s1c5s511' key2 = '4e3f5a4c592b243f' first = decrypt_...
import pefile def extract_config(raw_data): pe = pefile.PE(data=raw_data) try: rt_string_idx = [ entry.id for entry in pe.DIRECTORY_ENTRY_RESOURCE.entries ].index(pefile.RESOURCE_TYPE['RT_RCDATA']) except: return None rt_string_directory = pe.DIRECTORY...
import string from base64 import b64decode def stringPrintable(line): return filter(lambda x: x in string.printable, line) def first_split(data): splits = data.split('\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x7e') if len(splits) == 2: return splits[1] def base64_deocde(b64_string): return b...
""" 20JUN2018 - cs beacon config decoder By Jason Reaves (@sysopfb) and Josh Platt Free to use, attribute properly. Will attempt to work on beacons from memory with already decoded configs as well TODO Add logic for other XOR keys Transform parsing code needs work as well """ import sys import re import binascii import...
import string import pefile def string_print(line): return filter(lambda x: x in string.printable, line) def xor(data): key = 0xBC encoded = bytearray(data) for i in range(len(encoded)): encoded[i] ^= key return str(encoded).decode('ascii', 'replace') def extract_config(raw_data): try...
import string import pefile from binascii import * BASE_CONFIG = { 'FWB': '', 'GENCODE': '', 'MUTEX': '', 'NETDATA': '', 'OFFLINEK': '', 'SID': '', 'FTPUPLOADK': '', 'FTPHOST': '', 'FTPUSER': '', 'FTPPASS': '', 'FTPPORT': '', 'FTPSIZE': '', 'FTPROOT': '', 'PWD': ...
import string def string_print(line): return filter(lambda x: x in string.printable, line) def config(data): config_dict = {} raw_config = data.split('@1906dark1996coder@') if len(raw_config) > 3: config_dict['Domain'] = raw_config[1][7:-1] config_dict['AutoRun'] = raw_config[2] ...
import string import pefile def get_config(data): try: pe = pefile.PE(data=data) try: rt_string_idx = [ entry.id for entry in pe.DIRECTORY_ENTRY_RESOURCE.entries].index(pefile.RESOURCE_TYPE['RT_RCDATA']) except ValueError, e: return except...
from base64 import b64decode #Non Standard Imports import pype32 from Crypto.Cipher import AES from pbkdf2 import PBKDF2 def config(raw_data): try: pe = pype32.PE(data=raw_data) string_list = get_strings(pe, 2) key, salt = 'HawkEyeKeylogger', '3000390039007500370038003700390037003800370038...
#!/usr/bin/env python import zlib import string import hashlib from zipfile import ZipFile from cStringIO import StringIO from base64 import b64decode #Non Standard Imports from Crypto.Cipher import ARC4, AES, XOR #Helper Functions Go Here def string_print(line): return filter(lambda x: x in string.printable, li...
import string from Crypto.Cipher import ARC4 def string_print(line): return filter(lambda x: x in string.printable, line) def decrypt_rc4(enckey, data): cipher = ARC4.new(enckey) # set the ciper return cipher.decrypt(data.decode('hex')) # decrpyt the data def ver_detect(data): first = data.split("*ED...
import re import hashlib from base64 import b64decode from Crypto.Cipher import AES def config(raw_data): try: re_pattern = '[a-zA-Z0-9+/]{60,}={0,2}' conf_string = re.findall(re_pattern, raw_data)[0] decoded = decrypt_string('Specify a Password', conf_string) config_dict = parse_co...
import string from struct import unpack def calc_length(byteStr): #try: return unpack(">H", byteStr)[0] #except: #return None def string_print(line): return filter(lambda x: x in string.printable, line) def first_split(data): split_strings = ['\x5B\x53\x00\x6F\x00\x66\x00\x74\x00\x77\...
import re import sys import zlib from struct import unpack import uuid #Non Standard Imports from Crypto.Cipher import DES, AES import pefile import pype32 def config(raw_data): #try: if True: coded_config = get_codedconfig(raw_data) if coded_config[0:4] == '\x08\x00\x00\x00': co...
import pefile import yara import struct # Non Standard Imports from Crypto.Cipher import ARC4 rule_source = ''' rule opcodes { meta: description = "Netwire instruction sequences" author = "David Cannings" strings: $opcodes01 = { 31 C0 88 44 01 08 40 3D 00 01 00 00 75 F4 } $opcodes02 = { 8A 5C 06...
import pype32 import base64 def config(raw_data): try: pe = pype32.PE(data=raw_data) string_list = get_strings(pe, 2) config_dict = parse_config(string_list) if config_dict: return config_dict else: return False except Exception as e: ret...
import re import struct import string import StringIO class Stream(StringIO.StringIO): def string(self): r=[] c='' while c != "\x00": c = self.read(1) r.append(c) return ''.join(r).strip("\x00") def dword(self): return struct.unpack('I',self.rea...
import pefile def version_21(raw_config): if raw_config != None: conf_dict = {} conf_dict['Version'] = '2.1' conf_dict['Domain'] = raw_config[0] conf_dict['Port'] = raw_config[1] conf_dict['Password'] = raw_config[2] conf_dict['Install Path'] = raw_config[3] ...
import re import hashlib from base64 import b64decode from Crypto.Cipher import AES def config(raw_data): try: re_pattern = '[a-zA-Z0-9+/]{60,}={0,2}' conf_string = re.findall(re_pattern, raw_data)[0] decoded = decrypt_string('IUWEEQWIOER$89^*(&@^$*&#@$HAFKJHDAKJSFHjd89379327AJHFD*&#($hajk...
import string from struct import unpack def calc_length(byte_str): try: return unpack('<H', byte_str)[0] except: return None def clean_string(line): return filter(lambda x: x in string.printable, line) def first_split(data): splits = data.split('Software\\Microsoft\\Active Setup\\Inst...
import pype32 from base64 import b64decode from Crypto.Cipher import AES from pbkdf2 import PBKDF2 def config(raw_data): try: pe = pype32.PE(data=raw_data) string_list = get_strings(pe, 2) vers = get_version(string_list) if vers == 'v12': config_dict = config_12(string_...
def config(data): config_dict = {} config_parts = data.split('abccba') if len(config_parts) > 5: config_dict['Domain'] = config_parts[1] config_dict['Port'] = config_parts[2] config_dict['Campaign Name'] = config_parts[3] config_dict['Copy StartUp'] = config_parts[4] ...
#!/usr/bin/python import zipfile, sys, os import base64 import argparse from sys import argv from androguard.core.bytecodes import apk from androguard.core.bytecodes import dvm #--------------------------------------------------- # _log : Prints out logs for debug purposes #--------------------------------------------...
#!/usr/bin/python import zipfile, sys, os import base64, urllib import argparse from sys import argv from androguard.core.bytecodes import apk from androguard.core.bytecodes import dvm #--------------------------------------------------- # _log : Prints out logs for debug purposes #------------------------------------...
import zipfile, sys, os import base64 import argparse #---------------------------------------------------------------- # extract_config : This extracts the C&C information from Ratty. # https://github.com/Sogomn/Ratty #---------------------------------------------------------------- def extract_config(zip): c2 =...
#!/usr/bin/python import zipfile, sys, os import base64, urllib import argparse from sys import argv from androguard.core.bytecodes import apk from androguard.core.bytecodes import dvm #--------------------------------------------------- # _log : Prints out logs for debug purposes #------------------------------------...
#!/usr/bin/python import zipfile, sys, os import base64, urllib import argparse from sys import argv from androguard.core.bytecodes import apk from androguard.core.bytecodes import dvm #--------------------------------------------------- # _log : Prints out logs for debug purposes #------------------------------------...
# Copyright (C) 2019 R3MRUM (https://twitter.com/R3MRUM) # 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. # # This progra...
import re from Crypto.Cipher import XOR from struct import unpack def config_v1(config_list): config_dict = {} counter = 1 for config in config_list: config_dict['Domain'] = config[0].rstrip('\x88') config_dict['URI GET1 Folder'] = config[1].rstrip('\x88') config_dict['URI GET3 File...
# MIT License # # Copyright (c) 2017 Jason Reaves # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge,...
def ver_52(data): config_dict = {} config_parts = data.split('!!<3SAFIA<3!!') config_dict['Domain'] = config_parts[1] config_dict['Port'] = config_parts[2] config_dict['Disbale Registry'] = config_parts[3] config_dict['Disbale TaskManager'] = config_parts[4] config_dict['Install Server'] = c...
# MIT License # # Copyright (c) 2017 Jason Reaves # Copyright (c) 2019 Graham Austin # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the ri...
#!/usr/bin/env python # # LICENSE # the GNU General Public License version 2 # # Credit to JPCERT - this is derived from https://github.com/JPCERTCC/aa-tools/blob/master/tscookie_decode.py # import sys import pefile import re import collections from struct import unpack, unpack_from # Resource pattern RESOURCE_PATTERN...
import string from zipfile import ZipFile from cStringIO import StringIO from Crypto.Cipher import ARC4 import xml.etree.ElementTree as ET def extract_embedded(zip_data): raw_embedded = None archive = StringIO(zip_data) with ZipFile(archive) as zip: for name in zip.namelist(): # get all the file na...
# Copyright (C) 2017 Kevin O'Reilly (kevin.oreilly@contextis.co.uk) # 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. # # ...
from base64 import b64decode import hashlib import re import pefile from Crypto.Cipher import AES, XOR def string_print(line): return ''.join((char for char in line if 32 < ord(char) < 127)) def parse_config(config_list, ver): config_dict = {} if ver == 'V1': config_dict['Version'] = '1.0.x' ...
from struct import unpack import pefile def get_unicode_string(buf,pos): out = '' for i in range(len(buf[pos:])): if not (ord(buf[pos+i]) >= 32 and ord(buf[pos+i]) <= 126) and not (ord(buf[pos+i+1]) >= 32 and ord(buf[pos+i+1]) <= 126): out += '\x00' break out += buf[pos...
import re import os import sys import commands from cStringIO import StringIO from base64 import b64decode import string from zipfile import ZipFile from Crypto.Cipher import AES, DES3 import database def run(md5, data): print "[+] Extracting Data from Jar" enckey, conf = get_parts(data) if enckey == None...
#!/usr/bin/env python ''' ShadowTech Config Extractor ''' import database import createIOC import re import string from operator import xor new_line = '#-@NewLine@-#' split_string = 'ESILlzCwXBSrQ1Vb72t6bIXtKRzHJkolNNL94gD8hIi9FwLiiVlrznTz68mkaaJQQSxJfdLyE4jCnl5QJJWuPD4NeO4WFYURvmkth8' # enc_key = 'pSILlzCwXBSrQ1Vb7...
#Standard Imports Go Here import os import sys import string import pype32 import database import re import createIOC def run(md5, rawData): rawconfig = rawData.split("abccba") if len(rawconfig) > 1: print "Running Abccba" conf = oldversions(rawconfig) else: print "Running pype32" pe = pype32.PE(d...
import pefile import database import re import ioc def run(md5, data): dict = {} config = data.split("abccba") if len(config) > 5: dict["Domain"] = config[1] dict["Port"] = config[2] dict["Campaign Name"] = config[3] dict["Copy StartUp"] = config[4] dict["StartUp Name"] = config[5] dict["Add To Registr...
# Init
class Parser(object): """ Base class for malware config parsers DC3-MWCP modules should be named ${name}.py where ${name} the name used to invoke the parser. Currently, a new parser object is created by the framework for each run(). """ def __init__(self, description='na...
""" DC3-MWCP framework primary object used for execution of parsers and collection of metadata """ from __future__ import print_function, unicode_literals import contextlib from future.builtins import str, open, map import base64 import binascii import hashlib import json import ntpath import logging import os i...
""" Test case support for DC3-MWCP. Parser output is stored in a json file per parser. To run test cases, parser is re-run and compared to previous results. """ from __future__ import print_function, unicode_literals # Standard imports import json import multiprocessing as mp import logging import os import sys import...
"""Exposes interface for MWCP.""" import logging # Add null handler to root logger to avoid "no handler" error when this is used as a library logging.getLogger().addHandler(logging.NullHandler()) from mwcp import config from mwcp.parser import Parser from mwcp.parsers import register_parser_directory, iter_parsers,...
"""Stores default configuration values.""" import os log_config = os.path.join(os.path.dirname(__file__), 'log_config.yml')
# Copyright (C) 2019 Kevin O'Reilly (kevoreilly@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. # # This prog...
# Copyright (C) 2019 Kevin O'Reilly (kevoreilly@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. # # This prog...
# Copyright (C) 2015 Kevin O'Reilly kevin.oreilly@contextis.co.uk # 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) 2019 Kevin O'Reilly (kevoreilly@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. # # This prog...
# Copyright (C) 2019 Kevin O'Reilly (kevoreilly@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. # # This prog...
# Copyright (C) 2017-2019 Kevin O'Reilly (kevin.oreilly@contextis.co.uk) # 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....
# Copyright (C) 2015 Kevin O'Reilly kevin.oreilly@contextis.co.uk # 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) 2015 Kevin O'Reilly kevin.oreilly@contextis.co.uk # 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) 2015 Kevin O'Reilly kevin.oreilly@contextis.co.uk # 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) 2019 Kevin O'Reilly (kevoreilly@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. # # This prog...
# MIT License # # Copyright (c) Jason Reaves - @sysopfb # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify...
import datetime from mwcp.parser import Parser qakbot_map = { "10": "Botnet name", "11": "Number of C2 servers", "47": "Bot ID" } id_map = { "22": "#1", "23": "#2", "24": "#3", "25": "#4", "26": "#5", } class QakBot(Parser): def __init__(self, reporter=None): Parser.__ini...
# Copyright (C) 2015 Kevin O'Reilly kevin.oreilly@contextis.co.uk # 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) 2017 Kevin O'Reilly kevin.oreilly@contextis.co.uk # 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) 2017 Kevin O'Reilly (kevin.oreilly@contextis.co.uk) # 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. # # ...
# This file is part of CAPE Sandbox - https://github.com/ctxis/CAPE # See the file 'docs/LICENSE' for copying permission. # # This decoder is based on: # Decryptor POC for Remcos RAT version 2.0.5 and earlier # By Talos July 2018 - https://github.com/Cisco-Talos/remcos-decoder # from mwcp.parser import Parser import st...
# This is adapted for CAPE from Tomasuh's retefe-unpacker script: # https://github.com/Tomasuh/retefe-unpacker # http://tomasuh.github.io/2018/12/28/retefe-unpack.html # Many thanks to Tomasuh from mwcp.parser import Parser import yara import struct import pefile rule_source = ''' rule Retefe { meta: auth...
# Copyright (C) 2018 Kevin O'Reilly (kevin.oreilly@contextis.co.uk) # 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. # # ...