Skip to content

AttributeError: 'Config' object has no attribute 'LEET_CHARSET' #34

@Signum21

Description

@Signum21

Trying to run on Windows I'm getting an error, on Linux it works fine.
The config file is the default one.
Python is version 3.12.9

(venv) PS C:\bopscrk> bopscrk -w welcome,qwerty,password -M 30 -c -l -n 3


         ▄▄▄▄    ▒█████   ██▓███    ██████  ▄████▄   ██▀███   ██ ▄█▀
        ▓█████▄ ▒██▒  ██▒▓██░  ██▒▒██    ▒ ▒██▀ ▀█  ▓██ ▒ ██▒ ██▄█▒
        ▒██▒ ▄██▒██░  ██▒▓██░ ██▓▒░ ▓██▄   ▒▓█    ▄ ▓██ ░▄█ ▒▓███▄░
        ▒██░█▀  ▒██   ██░▒██▄█▓▒ ▒  ▒   ██▒▒▓▓▄ ▄██▒▒██▀▀█▄  ▓██ █▄
        ░▓█  ▀█▓░ ████▓▒░▒██▒ ░  ░▒██████▒▒▒ ▓███▀ ░░██▓ ▒██▒▒██▒ █▄
        ░▒▓███▀▒░ ▒░▒░▒░ ▒▓▒░ ░  ░▒ ▒▓▒ ▒ ░░ ░▒ ▒  ░░ ▒▓ ░▒▓░▒ ▒▒ ▓▒
        ▒░▒   ░   ░ ▒ ▒░ ░▒ ░     ░ ░▒  ░ ░  ░  ▒     ░▒ ░ ▒░░ ░▒ ▒░
         ░    ░ ░ ░ ░ ▒  ░░       ░  ░  ░  ░          ░░   ░ ░ ░░ ░
         ░          ░ ░                 ░  ░ ░         ░     ░  ░
              ░                            ░
    Advanced usage and documentation: https://github.com/r3nt0n/bopscrk
  ,----------------------------------------------------,   ,------------,
  | [][][][][]  [][][][][]  [][][][]  [][__]  [][][][] |   |   v2.4.7   |
  |                                                    |   |------------|
  |  [][][][][][][][][][][][][][_]    [][][]  [][][][] |===| bopscrk.py |
  |  [_][][][][][][][][][][][][][ |   [][][]  [][][][] |===| bopscrk.py |
  | [][_][][][][][][][][][][][][]||     []    [][][][] |===| BoPSCRK.PY |
  | [__][][][][][][][][][][][][__]    [][][]  [][][]|| |   |------------|
  |   [__][________________][__]              [__][]|| |   |   r3nt0n   |
  `----------------------------------------------------´   `------------´

  [V] config file C:\bopscrk\venv\Lib\site-packages\bopscrk\bopscrk.cfg loaded
  [+] Appending words provided (base wordlist length: 3)...
  [+] Creating all posible combinations between words...
  [*] 3 words combined using 2 words (words produced: 12)
  [*] 3 words combined using 3 words (words produced: 21)
  [-] Removing words by min and max length provided (4-30)...
  [*] Words remaining: 21
  [+] Applying recursive leet transforms to 21 words...
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.2544.0_x64__qbz5n2kfra8p0\Lib\multiprocessing\pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
                    ^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.2544.0_x64__qbz5n2kfra8p0\Lib\multiprocessing\pool.py", line 48, in mapstar
    return list(map(*args))
           ^^^^^^^^^^^^^^^^
  File "C:\bopscrk\venv\Lib\site-packages\bopscrk\modules\transforms.py", line 79, in leet_transforms
    leet_charset = Config.LEET_CHARSET
                   ^^^^^^^^^^^^^^^^^^^
AttributeError: 'Config' object has no attribute 'LEET_CHARSET'
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\bopscrk\venv\Scripts\bopscrk.exe\__main__.py", line 7, in <module>
  File "C:\bopscrk\venv\Lib\site-packages\bopscrk\bopscrk.py", line 22, in start
    main.run(name, __version__)
  File "C:\bopscrk\venv\Lib\site-packages\bopscrk\modules\main.py", line 174, in run
    temp_wordlist += multiprocess_transforms(leet_transforms, final_wordlist)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\bopscrk\venv\Lib\site-packages\bopscrk\modules\transforms.py", line 145, in multiprocess_transforms
    new_wordlists += pool.map(transform_type, wordlist)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.2544.0_x64__qbz5n2kfra8p0\Lib\multiprocessing\pool.py", line 367, in map
    return self._map_async(func, iterable, mapstar, chunksize).get()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.2544.0_x64__qbz5n2kfra8p0\Lib\multiprocessing\pool.py", line 774, in get
    raise self._value
AttributeError: 'Config' object has no attribute 'LEET_CHARSET'
(venv) PS C:\bopscrk> cat C:\bopscrk\venv\Lib\site-packages\bopscrk\bopscrk.cfg
###################################################################################
## bopscrk.py - main configuration file                                          ##
## https://github.com/r3nt0n/bopscrk                                             ##
##-------------------------------------------------------------------------------##
## EXTENSIVE LEET charset made by r3nt0n, suggestions are welcome!               ##
## EXTENSIVE SEPARATORS and SPACE-REPLACEMENT charset from:                      ##
## https://owasp.org/www-community/password-special-characters                   ##
##-------------------------------------------------------------------------------##
## (!) WARNING: characters like % must be escaped (%%) to avoid syntax conflicts ##
###################################################################################

[GENERAL]
# Reserved for potential future uses

[COMBINATIONS]
# Enables extra combination and additions at beginning and end of words
# example: (john, doe) => 123john, john123, 123doe, doe123, john123doe doe123john
extra_combinations=false
# SEPARATORS CHARSET - Characters to use in extra-combinations
separators_chars=._-+&@!
separators_strings=!! 123
# To get extensive charsets, uncomment the following lines:
#separators_chars=!"#$%%&'()*+,-./:;<=>?@[\]^_`{|}~
#separators_strings=!! ¡¡ !!! ¡¡¡ ¡!¡ !¡! 123 1234 xXx XxX WwW wWw


[TRANSFORMS]
# LEET REPLACEMENT CHARSET
# characters to replace and correspondent substitute in leet transforms
leet_charset=a:4 e:3 i:1 o:0 s:$
# To get an extensive charset, uncomment the following line
# leet_charset=a:4 a:@ e:3 i:1 i:! i:¡ l:1 o:0 s:$ s:5 b:8 t:7 c:(

# RECURSIVE LEET TRANSFORMS - Enables a recursive call to leet_transforms() function
# Comment this line or set it to false in case you don't want to get all possible leet transforms
# (!) Warning: enabled with huge --max parameters (e.g.: greater than 18) could take several minutes
recursive_leet=true
extensive_case=false

[LYRICS]
# Remove all parenthesis in lyrics found before any transform
remove_parenthesis=true
# Produce words based on initial of each word in phrases found
# (if enabled with remove_parenthesis disabled, it can produce useless words)
take_initials=true
artist_split_by_word=true
artist_space_replacement=true
lyric_split_by_word=false
lyric_space_replacement=true
# SPACE REPLACEMENT CHARSET - Characters and/or strings to insert instead of spaces
# inside an artist name or a lyric phrase
# Comment two above lines or set it empty in order to don't replace spaces, just remove them
space_replacement_chars=._-+&@!
space_replacement_strings=
# To get an extensive charset, uncomment the following line
#space_replacement_chars=!"#$%%&'()*+,-./:;<=>?@[\]^_`{|}~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions