Giter Club home page Giter Club logo

pydictor's Introduction

Hi, I'm LandGrey !

Github stats

Github stats

Visitors

Visitor Count

pydictor's People

Contributors

landgrey 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  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

pydictor's Issues

Can we generate custom wordlist by masking characters ?u?l?d

@LandGrey

ABC12A34B56 - Required Pattern

This is the pattern that i'm generating but i don't understand how to use the charactersets.

pydictor.py --head abc --len 8 8 -char ?d?d?l?d?d?l?d?d - o output.txt

When i press enter, i get this result abc?d?d?l?d?d?l?d?d in wordlist instead of actual digits and letters.

output.txt

abc???l????
abc???l???d
abc???l????
abc???l???d
abc???l??l?
abc???l??ld
abc???l??l?
abc???l??ld
abc???l??l?
abc???l??ll
abc???l??l?
abc???l??ld
abc???l??l?
abc???l??ld
abc???l??l?
abc???l??ll
abc???l??l?
abc???l??ld
abc???l??l?
abc???l??ld
abc???l????

args.regex类型错误

执行 python3 pydictor.py -tool handler raw.txt --regex .*?\d+ 命令时得不到正确的结果,就pr一个: https://github.com/LandGrey/pydictor/pull/20。因为开发环境问题,.gitignore要做修改,还是直接提issue

这里https://github.com/LandGrey/pydictor/blob/master/lib/parse/command.py#L122解析regex参数,因为带有nargs=1,所以args.regex是list类型,它被赋值给了pyoptions.filter_regex。
pyoptions.filter_regex传给了regex_filter函数:https://github.com/LandGrey/pydictor/blob/master/lib/fun/filter.py#L245。该函数的regex参数需要str类型,不是list类型

How can add more head words?

For example i use this command.

pydictor.py --head John -char 0123456789abcdef -- len 1 1
Works great but what if i have mode head words?

I want to use John, Mike, Jane etc more words on the head? How can i make this?
pydictor.py --head John --head Mike --head Jane -char 0123456789abcdef -- len 1 1 Not working

I have a text file and there are names on it and all i need, use these words on the head!

Thanks

功能增加

建议增加个**企业用户字典比如:zhangwei/zwei/zWei/zhangW/wei.zhang/w.zhang这样的灵活组合方法

Password limitations

Hi there,

I tried creating a dictionary with 13 characters and it returned that it should be <= 11, so I changed it to 20.

Then the count_switcher was set to 100M, so I changed it to 1,000,000,000,000,000,000,000,000. It is creating the file, but the file has been stuck at 510MB and not increasing.

What am I missing?

Thanks and kind regards,

SiZiGee

捉个虫

regex function
Usage : --regex [regex]
Example: --types "^z.*?g$"
这里的--types应该是--regex

以及请问,
types function
Usage : --types [letters_types_range] [digital_types_range] [special_types_range]
Example: --types "<=8" "<=4" "=0"
如果想要所有大写+小写字母+所有数字+无特殊符号,这里的letters_types_range应该怎么写?

unsupported operand type(s) for +: 'generator' and 'generator'

pydictor SEDB>>show                                                                                      
len        : minlen: [no-limited] maxlen: [no-limited]             
head       : [none]                                                                                      
tail       : [none]                                                                                      
encode     : [none]                                                                                      
occur      : letter: [ <=99 ] digital: [ <=99 ] special: [ <=99  ]    
types      : letter: [ >=0  ] digital: [ >=0  ] special: [ >=0   ]
repeat     : letter: [ >=0  ] digital: [ >=0  ] special: [ >=0   ]
level      : [3]                                                                                         
leet       : [none]                                                                                      
regex      : [.*?]                                                                                       
cname      :liwei                                                                                        
ename      :zwell                                                                                        
sname      :lw Lwei                                                                                      
birth      :19880916            
usedpwd    :liwei123456. liwei@19880916 lw19880916_123                                                   
phone      :18852006666       
uphone     :15500998080
hphone     :76500100 61599000 01061599000
email      :[email protected] [email protected] [email protected] [email protected]                 
postcode   :663321 962210                                                                                
nickname   :zlili                                                                                        
idcard     :152726198809160571      
jobnum     :20051230 100563
otherdate  :19591004 19621012 19870906 19880208
usedchar   :tiger gof gamesthrones 176003 m0n5ter ppdog                                                  
pydictor SEDB>>run                                                                                       
single rule                              
unsupported operand type(s) for +: 'generator' and 'generator'

社公字典生成时报错,什么问题?

Password Bruteforcer

I lost my discord account and my email was linked to the same password i was hoping you would be able to create a bot that would try every possible login and get me in?

Cannot build dictionary - count switcher error

I am trying to build a wordlist but it throws error at the start.

C:\pydictor-master>python pydictor.py --len 12 12 --head 2031 -base dc
                              _ _      _
              _ __  _   _  __| (_) ___| |_ ___  _ __
             | '_ \| | | |/ _` | |/ __| __/ _ \| '__|
             | |_) | |_| | (_| | | (__| || (_) | |
             | .__/ \__, |\__,_|_|\___|\__\___/|_|
             |_|    |___/                            2.1.5.2#dev


[!] Build items more than pyoptions.count_switcher: 100000000000
[!] Modify /lib/data/data.py count_switcher to adjust it

--conf doesn't work for custom build

I'm trying to build a dictionary with a config file that builds for wpa2 keys. It doesn't seem to work when over a certain amount of characters. It acts like it's generating the list but the file is just empty. I'm trying to build this:
python pydictor.py --conf '[a-z]{6,6}[0-9]{4,4}[a-z]{6,6}'
it just spits out a conf_xxxxxx.txt file with nothing in it. I've edited my data.py to allow for more than the default combinations.

I may have found an combination error about your program

My create wordlist start (head) oba. characters is totally 16 (letters, numbers and special symbols) Program needs to choose 5 out of 16 characters for combination. According to my calculation, this combination may be correctly listed in 4,368 different ways. Your program has more than 1 million results for this character length. Also, even though I make the character min length 5 max 5 the result is wrong. This error isn't just in these characters. What I want to say is that there is a combination error in the program. I would be glad if you fix it.
Calculator= https://hizliresim.com/aYUJmU
Program Combination= https://hizliresim.com/h8VjlO

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.

--conf build dictionary with "-" as special character

Hi,

I'm trying to build dictionary with --conf as option. Dictionary should contain "-" character.
I tried following:
sometext[-]{0,1}>, sometext[-]{0,1}, sometext["-"]{0,1}, sometext['-']{0,1}

But none of this works. Is it possible to use "-" in this context?
Besides, the tool is exactly what I was needed. Good job!

BR
Slepun

--regex just dont work

I also tried change value "pyoptions.filter_regex" in pydictor\lib\fun\filter.py:245 to r'[(A-z)]*\d{1}[(A-z)]*' and it doesnt worked.
This regex filter all values what have only one number from others. Command which i use python pydictor.py -base dLc -o /test.txt --len 3 3 --regex r'[(A-z)]*\d{1}[(A-z)]*'

I also tried do filter with additional file
main.py

import re

file = open("test-passed.txt", "a")
with open('test.txt') as f:
    for line in f:
        resultNum = re.search(r'[(A-z)]*\d{1}[(A-z)]*', line)
        resultNoNum = re.search(r'[(A-z)]{5}', line)
        if not resultNum is None:
            if len(resultNum.group(0)) == 5:
                file.write(line)
        if not resultNoNum is None:
            if len(resultNoNum.group(0)) == 5:
                file.write(line)
file.close()

And it works fine

Options --occur and --types not filtering

I'm trying to achieve the following:

python pydictor/pydictor.py --len 4 8 --output dictionary -char abcdefg123 --types "" "<=2" "==0" --occur "<=1" "<=2" "==0"

Which means producing combinations of those unique letters and at most 2 of the specified numbers (which could be repeated)
Also tried switching them around, just in case i was making a mistake, like this:

python pydictor/pydictor.py --len 4 8 --output dictionary -char abcdefg123 --occur "" "<=2" "==0" --types "<=1" "<=2" "==0"

But nope, both generate the same huge dictionary with repeated letters. They're not filtering at all.

Function --repeat fails with Python3

Hello! When I run the uniqifer tool with the --repeat function using Python3, like this:

python3 pydictor.py -tool uniqifer ~/rockyou_clean.txt --repeat "<=3" ">=3" "==0" -o ~/uniq.txt

Then an error occurs:

[-] Exception as following:

Traceback (most recent call last):
File "/home/mial/bin/pydictor/lib/fun/decorator.py", line 22, in magic
item = filterforfun(item)
File "/home/mial/bin/pydictor/lib/fun/filter.py", line 243, in filterforfun
item = repeat_filter(item, letter_repeat=pyoptions.letter_repeat, digital_repeat=pyoptions.digital_repeat,
File "/home/mial/bin/pydictor/lib/fun/filter.py", line 151, in repeat_filter
key = r.keys()[0]
TypeError: 'dict_keys' object is not subscriptable
None

But if I run the same command with Python2, then everything works fine:

python2 pydictor.py -tool uniqifer ~/rockyou_clean.txt --repeat "<=3" ">=3" "==0" -o ~/uniq.txt

Add char consecutive option

Add an option for how many times a letters/numbers can repeat itself consecutively

ie. --repeat "<=3" "==0" "==0"

AAA12345

-tool的UnicodeDecodeError问题

我在win10上使用2.0.5版本的-tool工具的时候(其他平台没试过),总会报UnicodeDecodeError,看了代码发现打开文件没有指定编码,open是依赖平台的默认编码,我指定utf-8后就没有这个问题了,建议加一下

Head or tail cannot start with "-"

e.g. --tail -example
After using this argument, following error will be shown:

pydictor: error: argument --tail: expected one argument

It looks like -example has been recongnized as a option, but it should be the vaule.

How to specify how many passwords wanted?

Hello,

I looked through the document and could not find any parameter to pass so that the program stops after creating that many passwords. Is there any parameter like that? Could you add this functionality if not?

Thanks.

关于筛选功能的建议

看了眼代码,发现只要带上了 --occur 等筛选字段,程序会将所有生成的字符储存在内存里,最后再进行筛选。
是否能实时判断并写入文档,毕竟如果生成数量过多,对内存极不友好。
image
image
image
顺带一提不知道这个是什么问题导致的类型错误

-chunk 功能运行失败

python pydictor.py -chunk abc ABC 666 . _ @ "'" --head a --tail 123 --encode md5
返回

D:\OkMyTools\pydictor\pydictor>python pydictor.py -chunk abc ABC 666 . _ @ "'" --head a --tail 123 --encode md5
                              _ _      _
              _ __  _   _  __| (_) ___| |_ ___  _ __
             | '_ \| | | |/ _` | |/ __| __/ _ \| '__|
             | |_) | |_| | (_| | | (__| || (_) | |
             | .__/ \__, |\__,_|_|\___|\__\___/|_|
             |_|    |___/                            2.0.3#dev

Traceback (most recent call last):
  File "pydictor.py", line 91, in <module>
    get_chunk_dic(pyoptions.args_chunk)
  File "D:\OkMyTools\pydictor\pydictor\core\CHUNK.py", line 34, in get_chunk_dic
    special_types=pyoptions.special_types,
  File "D:\OkMyTools\pydictor\pydictor\lib\fun\filter.py", line 206, in filterforfun
    item = headtail_filter(item, head=head, tail=tail)
  File "D:\OkMyTools\pydictor\pydictor\lib\fun\filter.py", line 26, in headtail_filter
    return head + item + tail
TypeError: cannot concatenate 'str' and 'tuple' objects

Python 2.7
windows10 x64,家庭中文版,版本1607

pydictor not defined

since im a bit noob, i think im doing something wrong. i opened the code, pressed f5, and tried the sedb. >>pydictor.py --sedb and tells me pydctor is not defined?, how im supposed to open the code? i mean i edit with idle->f5 and wrote pydictor.py --sedb, i tried just --sedb and also doesnt let me get in, please help!

Repeat parameter not working properly

I executed this command:
python pydictor.py -b dL -o "~/passwords.txt" --len 12 12 --repeat "<=3" "<=3" "<=0"
(to long)
base_file:

000000000000
000000000001
000000000002
000000000003
000000000004
000000000005
000000000006
...

Isn't the 0 just supposed to appear up to 3 times in a row?

Add format date "ddmmyyyy"

Hello in all CIS countries the date format is indicated as "day of the month year". At the moment, the generation of the date is "year month day." It is necessary to add the first option is very important.

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.