*: add license header

closes #144
This commit is contained in:
William Ballenthin
2020-07-15 14:14:53 -06:00
parent a28baf09d6
commit 3faf175da7
57 changed files with 109 additions and 1 deletions

View File

@@ -1,3 +1,5 @@
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
from PyInstaller.utils.hooks import copy_metadata
# in order for viv-utils to use pkg_resources to fetch

View File

@@ -1,4 +1,5 @@
# -*- mode: python -*-
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
import os.path
import subprocess

View File

@@ -1,3 +1,5 @@
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
import re
import sys
import copy

View File

@@ -1,3 +1,5 @@
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
import sys
import codecs
import logging

View File

@@ -1,3 +1,5 @@
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
from capa.features import Feature

View File

@@ -1,3 +1,5 @@
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
import abc

View File

@@ -1,3 +1,5 @@
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
import sys
import builtins

View File

@@ -1,3 +1,5 @@
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
import sys
import types

View File

@@ -1,3 +1,5 @@
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
import sys
import string
import struct

View File

@@ -1,3 +1,5 @@
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
import struct
import idc

View File

@@ -1,3 +1,5 @@
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
import idaapi
import idautils

View File

@@ -1,3 +1,5 @@
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
import sys
import string

View File

@@ -1,3 +1,5 @@
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
import idc
import idaapi
import idautils

View File

@@ -1,3 +1,5 @@
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
from networkx import nx
from networkx.algorithms.components import strongly_connected_components

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2017 FireEye, Inc. All Rights Reserved.
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
#
# strings code from FLOSS, https://github.com/fireeye/flare-floss
#

View File

@@ -1,3 +1,5 @@
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
import types
import viv_utils

View File

@@ -1,3 +1,5 @@
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
import string
import struct

View File

@@ -1,3 +1,5 @@
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
import PE.carve as pe_carve # vivisect PE
import capa.features.extractors.strings

View File

@@ -1,3 +1,5 @@
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
import vivisect.const
from capa.features import Characteristic

View File

@@ -1,3 +1,5 @@
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
import collections
import envi

View File

@@ -1,3 +1,5 @@
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
import envi.memory
import vivisect.const
import envi.archs.i386.disasm

View File

@@ -1,3 +1,5 @@
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
from capa.features import Feature

View File

@@ -39,6 +39,8 @@ json format:
],
}
}
Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
"""
import json
import zlib

View File

@@ -1,3 +1,5 @@
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
from capa.features import Feature

View File

@@ -1,3 +1,5 @@
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
import os
_hex = hex

View File

@@ -1,3 +1,5 @@
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
import sys
import codecs

View File

@@ -1,3 +1,5 @@
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
from collections import deque
import idc

View File

@@ -1,3 +1,5 @@
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
from PyQt5 import QtCore
from capa.ida.explorer.model import CapaExplorerDataModel

View File

@@ -1,3 +1,5 @@
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
import idc
import idaapi
from PyQt5 import QtGui, QtCore, QtWidgets

View File

@@ -1,3 +1,5 @@
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
import logging
import datetime

View File

@@ -1,3 +1,5 @@
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
import os
import logging
import collections

View File

@@ -1,3 +1,5 @@
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
import os
import logging

View File

@@ -1,6 +1,8 @@
#!/usr/bin/env python2
"""
identify capabilities in programs.
Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
"""
import os
import sys

View File

@@ -1,3 +1,5 @@
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
import json
import six

View File

@@ -1,3 +1,5 @@
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
import collections
import six

View File

@@ -1,3 +1,5 @@
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
import six
import termcolor

View File

@@ -13,6 +13,8 @@ example::
0x10003a13
0x10003415
0x10003797
Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
"""
import tabulate

View File

@@ -1,3 +1,5 @@
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
import collections
import tabulate

View File

@@ -1,3 +1,5 @@
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
import uuid
import codecs
import logging

View File

@@ -5,6 +5,8 @@ Use the -i flag to update the rule in-place.
Usage:
$ python capafmt.py -i foo.yml
Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
"""
import sys
import logging

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env bash
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
# doesn't matter if this gets repeated later on in a hooks file
# Use a console with emojis support for a better experience

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env bash
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
# doesn't matter if this gets repeated later on in a hooks file
# Use a console with emojis support for a better experience

View File

@@ -19,6 +19,8 @@ and then select the existing capa report from the file system.
This script will verify that the report matches the workspace.
Check the output window for any errors, and/or the summary of changes.
Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
"""
import json
import logging

View File

@@ -4,6 +4,8 @@ Check the given capa rules for style issues.
Usage:
$ python scripts/lint.py rules/
Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
"""
import os
import sys

View File

@@ -5,6 +5,8 @@ migrate rules and their namespaces.
example:
$ python scripts/migrate-rules.py migration.csv ./rules ./new-rules
Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
"""
import os
import csv

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env bash
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
set -euo pipefail

View File

@@ -39,6 +39,8 @@ Example::
- set socket configuration
- connect TCP socket
...
Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
"""
import os
import sys

View File

@@ -55,6 +55,8 @@ Example::
insn: 0x10001027: number(0x1)
insn: 0x10001027: mnemonic(shl)
...
Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
"""
import sys
import logging

View File

@@ -1,3 +1,5 @@
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
import os
import sys

View File

@@ -1,3 +1,5 @@
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
import os
import os.path
import collections

View File

@@ -1,3 +1,5 @@
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
import textwrap
import capa.rules

View File

@@ -1,3 +1,5 @@
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
import textwrap
import capa.rules

View File

@@ -1,3 +1,5 @@
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
import textwrap
import capa.main

View File

@@ -1,3 +1,5 @@
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
import codecs
from capa.features.extractors import helpers

View File

@@ -1,3 +1,5 @@
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
import textwrap
import capa.main

View File

@@ -1,3 +1,5 @@
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
import textwrap
import pytest

View File

@@ -1,3 +1,5 @@
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
import viv_utils
import capa.features