Skip to content

Commit

Permalink
refactor dict import
Browse files Browse the repository at this point in the history
  • Loading branch information
frjcomp committed Mar 5, 2024
1 parent 33f8012 commit a219341
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ The approach is using the search functionality and CQL queries to search for key

2. Update the `dict.txt` file, containing keywords you want to search for. One per line.

3. run it `python3 conkeyscan.py --url http://192.168.1.2:8090/ --username someUsr --password somePassOrAPIkey`
3. run it `python3 -m conkeyscan.conkeyscan --url http://192.168.1.2:8090/ --username someUsr --password somePassOrAPIkey`

4. Profit 🍾 check the generated logfile or stdout

5. Further Help `python3 conkeyscan.py -h`
5. Further Help `python3 -m conkeyscan.conkeyscan -h`


# Authentication
Expand Down
4 changes: 2 additions & 2 deletions src/conkeyscan/conkeyscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import readchar
import json
import os
import pkg_resources
from importlib.resources import files

from clize import run
from loguru import logger
Expand Down Expand Up @@ -133,7 +133,7 @@ def main(
url: "u",
username: "usr",
password: "pwd",
dict_path: "d" = pkg_resources.resource_filename("conkeyscan", "config/dict.txt"),
dict_path: "d" = str(files("conkeyscan.config").joinpath("dict.txt")),
disable_ssl_checks: "k" = True,
rate_limit: "r" = 100,
proxy: "p" = "",
Expand Down

0 comments on commit a219341

Please sign in to comment.