无法成功使用XOR

2024-10-02 16:32:59 发布

您现在位置:Python中文网/ 问答频道 /正文

我有一个XORed文件,我正试图用XORTool分析它。你知道吗

我成功地确定了最可能的密钥长度,但是我找不到实际的密钥:

PS C:\Python27\Scripts> python xortool decrypt.txt
The most probable key lengths:
   2:   11.8%
   4:   13.4%
   8:   16.2%
  11:   11.4%
  13:   11.9%
  16:   10.3%
  19:   7.8%
  23:   6.6%
  26:   6.3%
  31:   4.5%
Key-length can be 4*n
Most possible char is needed to guess the key!

所以我把8作为最有可能的,还有空间字符

PS C:\Python27\Scripts> python xortool -c 20 -l 8 decrypt.txt
28 possible key(s) of length 8:
a\x01J\x14oNs\x16
a\x01J\x14oNsh
a\x01J\x14oNsl
a\x01J\x14oNsO
B\x01J\x14oNs\x16
...
Found 0 plaintexts with 95.0%+ valid characters
See files filename-key.csv, filename-char_used-perc_valid.csv

我不知道下一步该怎么做?你知道吗


Tags: keytxtscripts密钥lengthpspython27valid