Giter Club home page Giter Club logo

mentalist's People

Contributors

sc0tfree avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mentalist's Issues

Crash on osx

Hello,
The app crashes at startup on el capitan.

ImportError: attempted relative import with no known parent package

hello sc0tfree team i need some help i installed the mentalist and when i try to open them i use python3 mentalist but i got this problem

root@kali:/mentalist# python3 mentalist
Traceback (most recent call last):
File "/usr/local/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/usr/local/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "mentalist/main.py", line 1, in
from . import controller
ImportError: attempted relative import with no known parent package
root@kali:
/mentalist#

i used the:python3 setup.py install
can somebody help me please

packaging issue: deployment of tests

The issue is that the setup.py is deploying the tests folder under the root python path and not under this package one.

So it's end up under /usr/lib/python3.11/site-packages/tests rather than /usr/lib/python3.11/site-packages/mentalist/tests and so conflicts with other packages having the same issue.

Anyway usually test are not shipped in a release package so the easiest would just to remove them. Else they should be deployed in the children directory.

It's explained in ArchLinux packaging guidelines for Python: https://wiki.archlinux.org/title/Python_package_guidelines#Test_directory_in_site-package

Feature request ideas - More systematic full-string processing, output formats & extra processes.

Hello.

First off, this could be an extremely useful tool for systematically generating wordlists and I applaud your work.

I am no expert in cracking or the like and I would take this as more of a request for comments than a technical proposal. Also, it's 5am here and I need some sleep :-O

I was looking for a wordlist generator which could systematically generate munged strings from a wordlist file or self-generated list.

For example, something that would systematically substitute more letters for matching numbers or symbols (ie a to @, B to 8, E to 3, and so on...) to generate munged variations per input word.

I downloaded this program as it seemed that it would do just that. Upon initial glance at the character substitution process I found it to be not-so useful for my needs. It seems that I would need to specifically set each character manually, which seems rather restrictive.

The in-built lists are a genius idea, such as people's names and dates/codes. I am probably missing something really obvious, but how would I generate wordslists containing pAuL, P@uL, P@ul, p@ul and other variations with mentalist's current toolset?

The case change process also seems to only do a single process on one single position at a time.

What does everyone think of having a substitution module/mode which systematically generates a number of variations? A similar thing can be done with changing the case.

Also, had thoughts about string truncation (<=Lmax), repetition (to fixed length) or reflection (1aBa1) /reversing (1Ab => bA1)? Maybe a selection of output file formats? (I was thinking along the lines of 'username:password' format file, or a pair of username.txt & password.txt files, etc)

My sincere thanks for your time and I hope I'm not suggesting something you're not focussed upon for this interesting project.

Apologies for any mistakes or if I missed the point.

Thank you.

Inventory notification

Your tool/software has been inventoried on Rawsec's CyberSecurity Inventory.

What is Rawsec's CyberSecurity Inventory?

An inventory of tools and resources about CyberSecurity. This inventory aims to help people to find everything related to CyberSecurity.

  • Open source: Every information is available and up to date. If an information is missing or deprecated, you are invited to (help us).
  • Practical: Content is categorized and table formatted, allowing to search, browse, sort and filter.
  • Fast: Using static and client side technologies resulting in fast browsing.
  • Rich tables: search, sort, browse, filter, clear
  • Fancy informational popups
  • Badges / Shields
  • Static API
  • Twitter bot

More details about features here.

Note: the inventory is a FLOSS (Free, Libre and Open-Source Software) project.

Why?

  • Specialized websites: Some websites are referencing tools but additional information is not available or browsable. Make additional searches take time.
  • Curated lists: Curated lists are not very exhaustive, up to date or browsable and are very topic related.
  • Search engines: Search engines sometimes does find nothing, some tools or resources are too unknown or non-referenced. These is where crowdsourcing is better than robots.

Why should you care about being inventoried?

Mainly because this is giving visibility to your tool, more and more people are using the Rawsec's CyberSecurity Inventory, this helps them find what they need.

Badges

The badge shows to your community that your are inventoried. This also shows you care about your project and want it growing, that your tool is not an abandonware.

Feel free to claim your badge here: http://inventory.rawsec.ml/features.html#badges, it looks like that Rawsec's CyberSecurity Inventory, but there are several styles available.

So what?

That's all, this message is just to notify you if you care.

anyone help me to solve this issue

Traceback (most recent call last):
File "/usr/local/bin/mentalist", line 33, in
sys.exit(load_entry_point('Mentalist==1.0', 'gui_scripts', 'mentalist')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/bin/mentalist", line 25, in importlib_load_entry_point
return next(matches).load()
^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/metadata/init.py", line 202, in load
module = import_module(match.group('module'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1206, in _gcd_import
File "", line 1178, in _find_and_load
File "", line 1149, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/usr/local/lib/python3.11/dist-packages/Mentalist-1.0-py3.11.egg/mentalist/controller.py", line 20, in
from . import view
File "/usr/local/lib/python3.11/dist-packages/Mentalist-1.0-py3.11.egg/mentalist/view/init.py", line 1, in
from .adder import AdderNode
File "/usr/local/lib/python3.11/dist-packages/Mentalist-1.0-py3.11.egg/mentalist/view/adder.py", line 7, in
from .base_words import BaseWordsNode, center_window
File "/usr/local/lib/python3.11/dist-packages/Mentalist-1.0-py3.11.egg/mentalist/view/base_words.py", line 8, in
from .main import center_window
File "/usr/local/lib/python3.11/dist-packages/Mentalist-1.0-py3.11.egg/mentalist/view/main.py", line 15, in
locale.setlocale(locale.LC_ALL, 'en_US.UTF-8')
File "/usr/lib/python3.11/locale.py", line 626, in setlocale
return _setlocale(category, locale)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
locale.Error: unsupported locale setting

Enhancement: Use AN"str" vs $x$x$x or ^x^x^x to append/prepend

This may be a JtR specific enhancement. I am not sure that HC does the string insertions.

The proper syntax change is:

$j$a$m$e$s  --> Az"james"  
^y^r^a^m  --> A0"mary"  

(Note the ^y^r^a^m is talked about in #21)

Using the 0 and z insertion methods is much faster than using the character append-prepend codes, UNLESS you are only appending/prepending 1 or 2 characters. 1 char is faster to use the character at a time, and 2 is pretty close to same speed (JtR results). Again, I am not 100% sure about internal speed of the rules engine in HC, and I do not think that the AN"str" rule is available in HC. As for the format of AN"str" the quote characters can be almost any character. BUT that character must not be in the string. So if you wanted to append the string test"this We could not use a quote. We must use something else, like Az~test"this~

This change may require a setting somewhere listing to output in JtR flavored rules (Such as a settings page)

Question (more than issue)

How are the nodes in the chain processed exactly? I read through https://github.com/sc0tfree/mentalist/wiki/How-It-Works#the-chain a bit and I'm still not completely totally clear on it. It seems like the program does a "dumb" order-processing method (I don't mean that as an insult, just I don't know what other term to use to explain it). So, to better explain my confusion, let's say I want to add Prepend as an option, but also Substitution as an option (but not both at the same time); I can't do that, correct? I would need to create multiple chains, generate the lists, and then merge the generates lists together right? In other words, these nodes are processed regardless and in the order they appear in the list correct? (i.e. there's no complex / advanced priority conditional processing of the nodes -> generated_lists)

Wonderful app!

Honestly having a great time playing around with this. Many thanks! I just wanted to bring to your attention that the GUI has been acting up a little on my macOS Mojave 10.14.1. The text at the top of drop-down menus won't load. All the options load after selecting a particular menu, so I've learned to work my way around this, but where it's particularly inconvenient is when choosing specific letter substitutions. I've attached pictures of both issues. I haven't seen anyone else with the same issue, and I'm definitely an amateur at all this, so the fault might be mine. Just thought I'd post to see if this is an easy problem with a quick fix. Again, great work on the program itself—everything except this one piece of the GUI works great for me. Thank you!

screen shot 2019-01-26 at 10 34 42 pm

screen shot 2019-01-26 at 10 47 46 pm

TypeError

v 1.0
by sc0tfree

Traceback (most recent call last):
File "/usr/local/bin/mentalist", line 33, in
sys.exit(load_entry_point('Mentalist==1.0', 'gui_scripts', 'mentalist')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/Mentalist-1.0-py3.11.egg/mentalist/controller.py", line 368, in main
controller = Controller()
^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/Mentalist-1.0-py3.11.egg/mentalist/controller.py", line 31, in init
self.mainview = view.MainWindow(self)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/Mentalist-1.0-py3.11.egg/mentalist/view/main.py", line 163, in init
size[1] = h - 10
~~~~^^^
TypeError: 'tuple' object does not support item assignment

I get this error when I execute mentalist, Can you please help me?

mentalist
Traceback (most recent call last):
File "/usr/local/bin/mentalist", line 11, in
load_entry_point('Mentalist==1.0', 'gui_scripts', 'mentalist')()
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 490, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2859, in load_entry_point
return ep.load()
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2450, in load
return self.resolve()
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2456, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/usr/local/lib/python3.8/dist-packages/Mentalist-1.0-py3.8.egg/mentalist/controller.py", line 20, in
from . import view
File "/usr/local/lib/python3.8/dist-packages/Mentalist-1.0-py3.8.egg/mentalist/view/init.py", line 1, in
from .adder import AdderNode
File "/usr/local/lib/python3.8/dist-packages/Mentalist-1.0-py3.8.egg/mentalist/view/adder.py", line 7, in
from .base_words import BaseWordsNode, center_window
File "/usr/local/lib/python3.8/dist-packages/Mentalist-1.0-py3.8.egg/mentalist/view/base_words.py", line 8, in
from .main import center_window
File "/usr/local/lib/python3.8/dist-packages/Mentalist-1.0-py3.8.egg/mentalist/view/main.py", line 15, in
locale.setlocale(locale.LC_ALL, 'en_US.UTF-8')
File "/usr/lib/python3.8/locale.py", line 608, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting

Not working

Hello Sir, I did the process step by step but still it is not working on my kali linux. Please Give me a solution sir. Screenshot of error is down below.
image

Can't run Mentalist

When I try to run Mentalist (from the releases), I get these errors:

Traceback (most recent call last):
File "pyinstaller_stub.py", line 1, in
File "", line 968, in _find_and_load
File "", line 957, in _find_and_load_unlocked
File "", line 673, in _load_unlocked
File "/usr/local/lib/python3.5/dist-packages/PyInstaller/loader/pyimod03_importers.py", line 631, in exec_module
File "mentalist/controller.py", line 20, in
File "", line 968, in _find_and_load
File "", line 957, in _find_and_load_unlocked
File "", line 673, in _load_unlocked
File "/usr/local/lib/python3.5/dist-packages/PyInstaller/loader/pyimod03_importers.py", line 631, in exec_module
File "mentalist/view/init.py", line 1, in
File "", line 968, in _find_and_load
File "", line 957, in _find_and_load_unlocked
File "", line 673, in _load_unlocked
File "/usr/local/lib/python3.5/dist-packages/PyInstaller/loader/pyimod03_importers.py", line 631, in exec_module
File "mentalist/view/adder.py", line 7, in
File "", line 968, in _find_and_load
File "", line 957, in _find_and_load_unlocked
File "", line 673, in _load_unlocked
File "/usr/local/lib/python3.5/dist-packages/PyInstaller/loader/pyimod03_importers.py", line 631, in exec_module
File "mentalist/view/base_words.py", line 8, in
File "", line 968, in _find_and_load
File "", line 957, in _find_and_load_unlocked
File "", line 673, in _load_unlocked
File "/usr/local/lib/python3.5/dist-packages/PyInstaller/loader/pyimod03_importers.py", line 631, in exec_module
File "mentalist/view/main.py", line 15, in
File "/usr/lib/python3.5/locale.py", line 594, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting
[2134] Failed to execute script pyinstaller_stub

Any ideas what could be wrong?

cant run mentalist

Traceback (most recent call last):
File "/data/data/com.termux/files/usr/bin/mentalist", line 11, in
load_entry_point('Mentalist==1.0', 'gui_scripts', 'mentalist')()
File "/data/data/com.termux/files/usr/lib/python3.8/site-packages/pkg_resources/init.py", line 489, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/data/data/com.termux/files/usr/lib/python3.8/site-packages/pkg_resources/init.py", line 2852, in load_entry_point
return ep.load()
File "/data/data/com.termux/files/usr/lib/python3.8/site-packages/pkg_resources/init.py", line 2443, in load
return self.resolve()
File "/data/data/com.termux/files/usr/lib/python3.8/site-packages/pkg_resources/init.py", line 2449, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/data/data/com.termux/files/usr/lib/python3.8/site-packages/Mentalist-1.0-py3.8.egg/mentalist/controller.py", line 20, in
from . import view
File "/data/data/com.termux/files/usr/lib/python3.8/site-packages/Mentalist-1.0-py3.8.egg/mentalist/view/init.py", line 1, in
from .adder import AdderNode
File "/data/data/com.termux/files/usr/lib/python3.8/site-packages/Mentalist-1.0-py3.8.egg/mentalist/view/adder.py", line 1, in
import tkinter as Tk
ModuleNotFoundError: No module named 'tkinter'

prepend words is broken (reversed)

Just playing around a bit (btw, NICE tool). I downloaded the pre-built 1.0 and here was one issue I found:

2 nodes, append male name, prepend female name. Here was the first rule: append-"james" prepend-"mary" But as you see the output from john shows mary is yram (reversed).

$ echo -n '1234' | ../bleed-64/run/john -rules=':$j$a$m$e$s^m^a^r^y' -stdout -pipe
Using default input encoding: UTF-8
yram1234james
1p 0:00:00:00 0.00% 7.092p/s yram1234james

When using single character appends, you have to reverse the order, so the proper rule is: $j$a$m$e$s^y^r^a^m

so if the word was 1234, these are the interim words generated by john or HC:

1234j
1234ja
1234jam
1234jame
1234james
m1234james
am1234james
ram1234james
yram1234james

Simply appending y then a then r them m will 'solve' this problem. This 'bug' may impact other things. If there were dates appended, you might see 0591 vs 1950, etc. I have not experimented (yet). Raw numbers should not matter (000 to 999, etc). But when you want specific values (using single char append), you must provide the data in reversed order.

Locale setting unsuported

I pushed up mentalist from the source code on an Arch linux system and when I try to execute the program i get the error File "/usr/lib/python3.6/site-packages/Mentalist-1.0-py3.6.egg/mentalist/view/main.py", line 15, in <module> locale.setlocale(locale.LC_ALL, 'en_US.UTF-8') File "/usr/lib/python3.6/locale.py", line 598, in setlocale return _setlocale(category, locale) locale.Error: unsupported locale setting
If that is unsupprted what locales are supported then?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.