Giter VIP home page Giter VIP logo

Comments (2)

ignis-sec avatar ignis-sec commented on July 24, 2024 2

I like the idea, following is the translation for the

?l = abcdefghijklmnopqrstuvwxyz
?u = ABCDEFGHIJKLMNOPQRSTUVWXYZ
?d = 0123456789
?h = 0123456789abcdef
?H = 0123456789ABCDEF
?s = «space»!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
?a = ?l?u?d?s
?b = 0x00 - 0xff

removing the redundant ones and leaving only ldsu, a small script can translate and rank the masks on usage:

import sys
lines = open(sys.argv[1],"r", encoding="utf-8").read().split('\n')

def translate_to_mask(c:str) -> str:
    if c in "abcdefghijklmnopqrstuvwxyz":
        return "l"
    elif c in "ABCDEFGHIJKLMNOPQRSTUVWXYZ":
        return "u"
    elif c in "0123456789":
        return "d"
    elif c in " !\"#$%&'()*+,-./:;<=>?@[\]^_`{|}~":
        return "s"
    else: return "x"

results = {}
for line in lines:
    r = ""
    for ch in line:
        r += translate_to_mask(ch)
    
    if r in results:
        results[r]+=1
    else:
        results[r] = 1

#sort dictionary
results = sorted(results.items(), key=lambda x: x[1], reverse=True)
for key in results:
    print(key)

So here is the most common 1k masks:
https://gist.github.com/ignis-sec/a26c579dc120741cd8ea8d005b01e1f0

from pwdb-public.

halvtomat avatar halvtomat commented on July 24, 2024 1

Wow you are fast!

Great work

from pwdb-public.

Related Issues (10)

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.