This commit is contained in:
William Ballenthin
2020-07-07 12:14:12 -06:00
parent b400a214ad
commit 4c96fd025e
2 changed files with 5 additions and 2 deletions

View File

@@ -7,7 +7,6 @@ from capa.features import MAX_BYTES_FEATURE_SIZE, Bytes, String, Characteristic
from capa.features.insn import Number, Offset, Mnemonic
from capa.features.extractors.viv.indirect_calls import NotFoundError, resolve_indirect_call
# security cookie checks may perform non-zeroing XORs, these are expected within a certain
# byte range within the first and returning basic blocks, this helps to reduce FP features
SECURITY_COOKIE_BYTES_DELTA = 0x40

View File

@@ -398,7 +398,11 @@ def main(argv=None):
parser.add_argument("-d", "--debug", action="store_true", help="Enable debugging output on STDERR")
parser.add_argument("-q", "--quiet", action="store_true", help="Disable all output but errors")
parser.add_argument(
"--color", type=str, choices=("auto", "always", "never"), default="auto", help="Enable ANSI color codes in results, default: only during interactive session"
"--color",
type=str,
choices=("auto", "always", "never"),
default="auto",
help="Enable ANSI color codes in results, default: only during interactive session",
)
parser.add_argument(
"-f", "--format", choices=[f[0] for f in formats], default="auto", help="Select sample format, %s" % format_help