Python Forum
Need help with the script "Bopscrk"
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help with the script "Bopscrk"
#1
I'm getting an error using the script called "Bopscrk", it says it is compatible with Python 3, but this errors makes me think there is some kind of compatiblity error:

Error:
"AttributeError: 'Config' object has no attribute 'LEET_CHARSET'" or File "C:\Users\usuario\AppData\Local\Programs\Python\Python310\Scripts\bopscrk-script.py", line 33, in <module> sys.exit(load_entry_point('bopscrk==2.4.7', 'console_scripts', 'bopscrk')())
I have more errors like this with different attributes.
Reply
#2
How did you install bopscrk?
Reply
#3
through "pip install bopscrk" on the cmd
Reply
#4
How are running this?
It's a command line tool.
Here a quick test,try virtual environment like this to see if work.
G:\div_code
λ python -m venv bop_env

G:\div_code
λ cd bop_env\

G:\div_code\bop_env
λ G:\div_code\bop_env\Scripts\activate.bat

G:\div_code\bop_env
(bop_env) λ pip install bopscrk
Collecting bopscrk
  Downloading bopscrk-2.4.7.tar.gz (40 kB)
     ---------------------------------------- 40.7/40.7 kB 162.7 kB/s eta 0:00:00
  Installing build dependencies .........................

Successfully built bopscrk grapheme
Installing collected packages: grapheme, urllib3, idna, charset-normalizer, certifi, about-time, requests, alive-progress, bop
scrk
Successfully installed about-time-4.2.1 alive-progress-3.1.5 bopscrk-2.4.7 certifi-2024.8.30 charset-normalizer-3.3.2 grapheme
-0.6.0 idna-3.10 requests-2.32.3 urllib3-2.2.3 
Usage:
G:\div_code\bop_env
(bop_env) λ bopscrk --help
usage: bopscrk [-h] [-i] [-w] [-m] [-M] [-c] [-l] [-n] [-a] [-o] [-C] [--version]

Generates smart and powerful wordlists.

options:
  -h, --help         show this help message and exit
  -i, --interactive  interactive mode, the script will ask you about target
  -w                 words to combine comma-separated (will be combined with all words)
  -m , --min         min length for the words to generate (default: 4)
  -M , --max         max length for the words to generate (default: 12)
  -c, --case         enable case transformations
  -l, --leet         enable leet transformations
  -n                 max amount of words to combine each time (default: 2)
  -a , --artists     artists to search song lyrics (comma-separated)
  -o , --output      output file to save the wordlist (default: tmp.txt)
  -C , --config      specify config file to use (default: G:\div_code\bop_env\Lib\site-packages\bopscrk\bopscrk.cfg)
  --version          print version and exit

G:\div_code\bop_env
(bop_env) λ bopscrk -w hello,world


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

  [V] config file G:\div_code\bop_env\Lib\site-packages\bopscrk\bopscrk.cfg loaded
  [+] Appending words provided (base wordlist length: 2)...
  [+] Creating all posible combinations between words...
  [*] 2 words combined using 2 words (words produced: 6)
  [-] Removing words by min and max length provided (4-12)...
  [*] Words remaining: 6
  [-] Removing duplicates...
  [*] Words remaining: 4

  [+] Words generated:  4
  [+] Elapsed time:     0:00:00
  [+] Output file:      tmp.txt
Output:
hello world helloworld worldhello
Reply
#5
The script seems to run okay, the lines producing the errors are two options inside the interactive mode (bopscrk -i):

[?] Do yo want to make leet transforms? [y/n] >>> y
[?] Do yo want to make case transforms? [y/n] >>> y

Using this two options ends on the following errors:

Error:
Traceback (most recent call last): File "C:\Users\usuario\AppData\Local\Programs\Python\Python310\lib\multiprocessing\pool.py", line 125, in worker result = (True, func(*args, **kwds)) File "C:\Users\usuario\AppData\Local\Programs\Python\Python310\lib\multiprocessing\pool.py", line 48, in mapstar return list(map(*args)) File "C:\Users\usuario\bop_env\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 "C:\Users\usuario\bop_env\Scripts\bopscrk-script.py", line 33, in <module> sys.exit(load_entry_point('bopscrk==2.4.7', 'console_scripts', 'bopscrk')()) File "C:\Users\usuario\bop_env\lib\site-packages\bopscrk\bopscrk.py", line 22, in start main.run(name, __version__) File "C:\Users\usuario\bop_env\lib\site-packages\bopscrk\modules\main.py", line 174, in run temp_wordlist += multiprocess_transforms(leet_transforms, final_wordlist) File "C:\Users\usuario\bop_env\lib\site-packages\bopscrk\modules\transforms.py", line 145, in multiprocess_transforms new_wordlists += pool.map(transform_type, wordlist) File "C:\Users\usuario\AppData\Local\Programs\Python\Python310\lib\multiprocessing\pool.py", line 367, in map return self._map_async(func, iterable, mapstar, chunksize).get() File "C:\Users\usuario\AppData\Local\Programs\Python\Python310\lib\multiprocessing\pool.py", line 774, in get raise self._value AttributeError: 'Config' object has no attribute 'LEET_CHARSET'
Error:
Traceback (most recent call last): File "C:\Users\usuario\AppData\Local\Programs\Python\Python310\lib\multiprocessing\pool.py", line 125, in worker result = (True, func(*args, **kwds)) File "C:\Users\usuario\AppData\Local\Programs\Python\Python310\lib\multiprocessing\pool.py", line 48, in mapstar return list(map(*args)) File "C:\Users\usuario\AppData\Local\Programs\Python\Python310\lib\site-packages\bopscrk\modules\transforms.py", line 71, in case_transforms if Config.EXTENSIVE_CASE: AttributeError: 'Config' object has no attribute 'EXTENSIVE_CASE' """ The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\usuario\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\usuario\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "C:\Users\usuario\AppData\Local\Programs\Python\Python310\Scripts\bopscrk.exe\__main__.py", line 7, in <module> File "C:\Users\usuario\AppData\Local\Programs\Python\Python310\lib\site-packages\bopscrk\bopscrk.py", line 22, in start main.run(name, __version__) File "C:\Users\usuario\AppData\Local\Programs\Python\Python310\lib\site-packages\bopscrk\modules\main.py", line 187, in run temp_wordlist += multiprocess_transforms(case_transforms, final_wordlist) File "C:\Users\usuario\AppData\Local\Programs\Python\Python310\lib\site-packages\bopscrk\modules\transforms.py", line 145, in multiprocess_transforms new_wordlists += pool.map(transform_type, wordlist) File "C:\Users\usuario\AppData\Local\Programs\Python\Python310\lib\multiprocessing\pool.py", line 367, in map return self._map_async(func, iterable, mapstar, chunksize).get() File "C:\Users\usuario\AppData\Local\Programs\Python\Python310\lib\multiprocessing\pool.py", line 774, in get raise self._value AttributeError: 'Config' object has no attribute 'EXTENSIVE_CASE'
Reply
#6
help :(
Reply
#7
The problem is that author have not tested this on Windows,it work on Linux.
bopscrk -M 15 -w python,computer,foo,bar -a forum -l -c -n 5
Output:
........ File "C:\python312\Lib\multiprocessing\pool.py", line 774, in get raise self._value AttributeError: 'Config' object has no attribute 'LEET_CHARSET'
Linux same command will generate the wordlist.
Output:
python computer forum pythoncomputer pythonfoo pythonbar pythonforum computerpython computerfoo computerbar computerforum foopython foocomputer foobar fooforum barpython barcomputer barfoo barforum ......
There are several ways to run a Linux distro on Windows eg VirtualBox | How to install Linux on Windows with WSL.
Reply
#8
It also work fine if run online eg Colab example i made here.
Or use Codespaces.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020