Thread: Bruteforce algorithm

  1. #1
    Registered User
    Join Date
    Dec 2014
    Posts
    18

    Bruteforce algorithm

    Hello.
    I've been experimenting a bit and can't find a decent way to make a brute forcing script that accepts a password from standard input, and goes through all possible combinations until it is matched. Any ideas on how to structure the code?
    Thanks.

    NOTE: This is not intended for any type of hacking/cracking, just a demonstration.

  2. #2
    Registered User
    Join Date
    Jun 2005
    Posts
    6,815
    If the purpose is not hacking, why did you express your question using language that specifically suggests such a goal?

    Since a literal answer will not be particularly helpful for a hacker/cracker, I'll offer one.

    All you need is a loop that produces permutations of the input, until all permutations have been produced.
    Right 98% of the time, and don't care about the other 3%.

    If I seem grumpy or unhelpful in reply to you, or tell you you need to demonstrate more effort before you can expect help, it is likely you deserve it. Suck it up, Buttercup, and read this, this, and this before posting again.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Ways to speed up a bruteforce-style program
    By inequity in forum C Programming
    Replies: 22
    Last Post: 12-25-2010, 03:15 AM
  2. Really simple bruteforce, but uh, it ain't working
    By inequity in forum C Programming
    Replies: 3
    Last Post: 11-07-2010, 06:35 PM
  3. BruteForce
    By BianConiglio in forum C Programming
    Replies: 2
    Last Post: 04-28-2005, 02:16 PM
  4. C++ algorithm help
    By Gene126 in forum C++ Programming
    Replies: 8
    Last Post: 10-10-2002, 03:17 PM
  5. my grandfather's chess algorithm can beat your grandfather's chess algorithm...
    By doubleanti in forum A Brief History of Cprogramming.com
    Replies: 22
    Last Post: 08-17-2001, 06:52 PM