Giter Site home page Giter Site logo

Transform lines to lowercase about duplicut HOT 3 CLOSED

nil0x42 avatar nil0x42 commented on August 25, 2024
Transform lines to lowercase

from duplicut.

Comments (3)

eddie4 avatar eddie4 commented on August 25, 2024 1

Personally I would say -c/-C would make the most sense.

from duplicut.

nil0x42 avatar nil0x42 commented on August 25, 2024

Hi ! For transform rules, i'm a big fan o piping multiple shell commands.
I initially made duplicut because removing duplicates from a very large wordlist without sorting was not feasible otherwise.

Other actions, such as lowering, or stripping numbers can easily be achieved with built-in linux commands.
Take a look at my nil0x42/cracking-utils. Here i have some simple scripts i like to use for creting my wordlists.
Lowering whole wordlist is also an easy task with tr:

tr '[:upper:]' '[:lower:]' < "old.txt" > "new.txt"

Duplicut is a tool you should use as a last step during wordlist creation. After concatenating multiple sources as you wish, in your prefered order, then you can duplicut it to remove duplicates, as quickly as possible, without losing your precious order.


Anyway, even if main focus is dedupe, i still implemented --line-max-size & --printable filters, because they are only filters, and no transformers. They just are additional conditions to decide if a line should be added or not.

If you have suggestions for adding relevant filters, i can consider implementing (if the overhead is low).

Thank you for posting this issue !

from duplicut.

nil0x42 avatar nil0x42 commented on August 25, 2024

EDIT: after taking 1 minute to test adding a tolower() between buffer read/write cycle on first copy, it looks like it has almost no overhead, so i'm adding it as TODO for next release 👍

What do you think would be good single letter options for --tolower and --toupper ? I'm thinking of -x/-X, or perhaps -c/-C, because -l is already taken by --line-max-size.

Opinions are welcome !

from duplicut.

Related Issues (20)

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.