Skip to content

Commit 84431c7

Browse files
committed
Adjust README and add example
1 parent 23b0def commit 84431c7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

‎README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ Options:
4343
-f --filter-output filter outputs based on the charset
4444
-t CHARSET --text-charset=CHARSET target text character set [default: printable]
4545
-p PLAIN --known-plaintext=PLAIN use known plaintext for decoding
46+
-r PERCENT, --threshold=PERCENT threshold validity percentage [default: 95]
4647
-h --help show this help
4748
4849
Notes:
@@ -61,6 +62,7 @@ Examples:
6162
xortool -x -c ' ' file.hex
6263
xortool -b -f -l 23 -t base64 message.enc
6364
xortool -b -p "xctf{" message.enc
65+
xortool -r 80 -p "flag{" -c ' ' message.enc
6466
```
6567

6668
Example 1

‎xortool/tool_main.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,18 @@
4141
xortool -l 11 -c 20 file.bin
4242
xortool -x -c ' ' file.hex
4343
xortool -b -f -l 23 -t base64 message.enc
44+
xortool -r 80 -p "flag{{" -c ' ' message.enc
4445
"""
4546

4647
from operator import itemgetter
4748
import os
4849
import string
4950
import sys
5051

51-
from xortool.args import(
52+
from xortools.args import(
5253
parse_parameters,
5354
ArgError,
54-
)
55+
)
5556

5657
from xortool.charset import CharsetError
5758
from xortool.colors import (

0 commit comments

Comments
 (0)