二进制文件搜索实用程序

hrep的Python项目详细描述


hrep

grep对于二进制文件。

用法

usage: hrep [-h] [-x HEX] [-a ASCII] [-e REGEX] [--chunk-size CHUNK_SIZE] [-d]
            [-X] [-C] [-w DUMP_WIDTH] [-s] [-A AFTER] [-B BEFORE]
            [HEX] [filename [filename ...]]

Search for binary sequences in files

positional arguments:
  HEX                   Hex encoded binary sequence to search for
  filename              List of files to search in

optional arguments:
  -h, --help            show this help message and exit
  -x HEX, --hex HEX     Search for a hexadecimal pattern('?' matches a single
                        nibble, '*' matches any number of bytes)
  -a ASCII, --ascii ASCII
                        Search for an ASCII string
  -e REGEX, --regex REGEX
                        Search for a regular expression
  --chunk-size CHUNK_SIZE
                        Override default buffer size
  -d, --decimal-offset  Output decimal file offsets (by default prints hex)
  -X, --no-hexdump      Disable hex dump
  -C, --no-colors       Don't use colors in dump output
  -w DUMP_WIDTH, --dump-width DUMP_WIDTH
                        Width of hex dump
  -s, --summary         Print summary at the end
  -A AFTER, --after AFTER
                        Number of additional dump lines to display after match
  -B BEFORE, --before BEFORE
                        Number of additional dump lines to display before
                        match

Each output line corresponds to a match in the format:
<filename>:<offset>:<match>

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
swing Java清除netbeans中的jFrame   持久化GWT可视化API数据表的java   java邮递员无法访问当地的Jersey REST服务   在rpi上使用minim的java断断续续/口吃音频   java“每个对象都可以锁定”是反模式吗?   java如何从Hashmap中获取嵌套的Gson键(不是键的值)   java如何获取REST请求的HTTP方法   java Android:提高绘图应用程序的速度   针对不同数据库的java DBCP validationQuery   在java中使用嵌套循环创建带星星的长方体   java如何根据文本文件中的特定关键字解析文本文件   java如何使用注释设置测试方法执行的优先级?   java最大元素。算法   java在双数组中乘法   jquery将javascript数组传递给java表单字段