Skip to content

Ciphey went into an error with a simple string #791

Closed as not planned
Closed as not planned
@DellZHackintosh

Description

@DellZHackintosh

Describe the bug
A clear and concise description of what the bug is.

Plaintext
⚠️IMPORTANT⚠️ The below code is non-negotiable for "Ciphey didn't decrypt...." problems. If you do not tell us your plaintext, we will not help you.

Include your plaintext here, replacing this 

Version
⚠️IMPORTANT⚠️ We need this information because different environments will induce different bugs in Ciphey

  • OS/Distro: Windows
  • Python version: 3.8
  • Ciphey versions:
Name: ciphey
Version: 5.14.0
Summary: Automated Decryption Tool
Home-page:
Author: Brandon
Author-email: [email protected]
License: MIT
Location: c:\py38\lib\site-packages
Requires: appdirs, base58, base91, cipheycore, cipheydists, click, flake8, loguru, mock, pybase62, pylint, pywhat, pyyaml, rich
Required-by:
---
Name: cipheycore
Version: 0.3.2
Summary:
Home-page:
Author: Cyclic3
Author-email: [email protected]
License:
Location: c:\py38\lib\site-packages
Requires:
Required-by: ciphey
---
Name: cipheydists
Version: 0.3.35
Summary: A collection of distributions, character sets and dictionaries for use in ciphey
Home-page:
Author: Cyclic3
Author-email: [email protected]
License:
Location: c:\py38\lib\site-packages
Requires:
Required-by: ciphey
  • Did you use Docker? No

To Reproduce
Run this command.

ciphey -t "Eindows"
Possible plaintext: '."IPr' (y/N): **n**
Traceback (most recent call last):
  File "c:\py38\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\py38\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\py38\Scripts\ciphey.exe\__main__.py", line 7, in <module>
  File "c:\py38\lib\site-packages\click\core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "c:\py38\lib\site-packages\click\core.py", line 782, in main
    rv = self.invoke(ctx)
  File "c:\py38\lib\site-packages\click\core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "c:\py38\lib\site-packages\click\core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "c:\py38\lib\site-packages\ciphey\ciphey.py", line 263, in main
    result = decrypt(config, kwargs["text"])
  File "c:\py38\lib\site-packages\ciphey\ciphey.py", line 32, in decrypt
    res: Optional[iface.SearchResult] = config.objs["searcher"].search(ctext)
  File "c:\py38\lib\site-packages\ciphey\basemods\Searchers\ausearch.py", line 281, in search
    self.recursive_expand(node)
  File "c:\py38\lib\site-packages\ciphey\basemods\Searchers\ausearch.py", line 221, in recursive_expand
    self.expand_decodings(node)
  File "c:\py38\lib\site-packages\ciphey\basemods\Searchers\ausearch.py", line 213, in expand_decodings
    self.recursive_expand(new_node, False)
  File "c:\py38\lib\site-packages\ciphey\basemods\Searchers\ausearch.py", line 221, in recursive_expand
    self.expand_decodings(node)
  File "c:\py38\lib\site-packages\ciphey\basemods\Searchers\ausearch.py", line 213, in expand_decodings
    self.recursive_expand(new_node, False)
  File "c:\py38\lib\site-packages\ciphey\basemods\Searchers\ausearch.py", line 221, in recursive_expand
    self.expand_decodings(node)
  File "c:\py38\lib\site-packages\ciphey\basemods\Searchers\ausearch.py", line 202, in expand_decodings
    res = inst(val)
  File "c:\py38\lib\site-packages\ciphey\iface\_modules.py", line 186, in __call__
    return self.decode(*args)
  File "c:\py38\lib\site-packages\ciphey\basemods\Decoders\atbash.py", line 29, in decode
    return fix_case(result, ctext)
  File "c:\py38\lib\site-packages\ciphey\common.py", line 15, in fix_case
    [
  File "c:\py38\lib\site-packages\ciphey\common.py", line 16, in <listcomp>
    target[i].upper() if base[i].isupper() else target[i]
IndexError: string index out of range

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions