2
Lenzs
8y

How can i create wordlist, lets say from word "world", so the program creates all plausible uppercase and lowercase strings from that word? e.g. "World", "WorlD"... , "WorLD" and so on...

Comments
  • 1
    I'd start with looking at all possible iterations of a given number, and adapt it for chars and case
  • 0
    methods/functions for upper/lowercase?
  • 1
    I haven't tested out this but it should give a rough base to start on

    Combinations = []

    word = allLettersToLower (word)
    Foreach letter in word do
    word[letter] = upper (letter)
    Foreach letter2 in word do
    newWord = word
    newWord[letter] = upper(letter)
    Combinations.add (newWord)
    end
    end

    If word in combinations do
    Print "Correct"
    end
  • 3
    I would ask why you need it first to be honest...
  • 1
    I'd try StackOverflow
  • 0
    I don't see the need for it when you could just lower() the input.
  • 1
    Im just learning. Its only educational. It crossed my mind and i tought that this would be the best place to ask :D
  • 0
    Oh I see.
  • 0
    If you intended to make a dictionary for an attack...most programs have a function to do the same ;)

    Stackoverflow most likely has an answer though
  • 1
    @SHA-256 I couldn't find that option in crunch or cupp. That is kinda what i want ;)
  • 0
    @Lenzs find a cracker that has Option to use Rules :)
Add Comment