xortool的安装使用

Xortool.py是一款基于python的脚本,用来完成一些xor分析。

Description

  • 猜想key的长度
  • 猜想key的值
  • 解密一些经过xoe加密的文件

    Installation

    xortool依赖于python的命令行参数解释器docopt。

    $ sudo pip install docopt
    Then install xortool:

    $ cd /data/src/
    $ git clone https://github.com/hellman/xortool.git
    $ cd xortool/
    $ sudo python setup.py install

    Usage

Options

-l,--key-length
    length of the key (integer)
-c,--char
    most possible char (one char or hex code)
-m,--max-keylen=32
    maximum key length to probe (integer)
-x,--hex
    input is hex-encoded str
-b,--brute-chars
    brute force all possible characters
-o,--brute-printable
    same as -b but will only use printable characters for keys

Example

详细功能参见
官方说明
这里和大家分享一个解密文件的功能,在xortool里有一个名为xortool-xor的文件,它可以将xor加密的文件解密。

有一个加密的文件为flag.encrypted,异或加密的密钥是dc647eb65e6711e155375218212b3964,

这样就解密了。。。

有钱的捧个钱场
0%