LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-27-2020, 09:38 PM   #1
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,437

Rep: Reputation: 110Reputation: 110
Word list generator?


I lost a password and want to try brute force. I have a vague idea of what the password was so I think it's worth a shot.

I need a word list generator, but not to generate words, to generate random strings (I don't know what that would be called).

I already have one that lets me specify maximum and minimum length and a list of characters that must be included (i.e. excluding all others). What I don't like about it is that it repeats characters too much, for example 11111112. I know I didn't use that so I need one that lets me put a limit on the repetition so as to reduce the number of entries.

Can someone please recommend something?

TIA.
 
Old 08-27-2020, 09:51 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Not a wordlist generator, but a wordlist with 14 million entries: https://www.scrapmaker.com/download/...es/rockyou.txt

Inspired by https://arstechnica.com/information-...sword-cracker/.
Also https://arstechnica.com/information-...our-passwords/.

Last edited by berndbausch; 08-27-2020 at 09:53 PM.
 
Old 08-27-2020, 09:58 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,394
Blog Entries: 28

Rep: Reputation: 6165Reputation: 6165Reputation: 6165Reputation: 6165Reputation: 6165Reputation: 6165Reputation: 6165Reputation: 6165Reputation: 6165Reputation: 6165Reputation: 6165
A web search for "password brute force" will turn up a lot of resources.
 
Old 08-27-2020, 10:00 PM   #4
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,437

Original Poster
Rep: Reputation: 110Reputation: 110
Quote:
Originally Posted by berndbausch View Post
Thanks, but that will not do. I need to find a random string (not any real words) with my own choice of allowed characters.
 
Old 08-27-2020, 10:06 PM   #5
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
The second article is entitled
Quote:
Anatomy of a hack: How crackers ransack passwords like “qeadzcwrsfxv1331”
Perhaps it contains a few tips.
 
Old 08-27-2020, 10:40 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,797

Rep: Reputation: 5952Reputation: 5952Reputation: 5952Reputation: 5952Reputation: 5952Reputation: 5952Reputation: 5952Reputation: 5952Reputation: 5952Reputation: 5952Reputation: 5952
Depends on what your generator program is using for its RNG i.e /dev/urandom etc. For some ideas have you seen this link.

https://www.google.com/amp/s/www.how...mand-line/amp/

https://www.redhat.com/en/blog/under...itations-linux
 
Old 08-28-2020, 12:03 AM   #7
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,169

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
Check out this if it will help: https://random-word-api.herokuapp.com/home

You can set the length of the word.

Or check out links below:

https://developer.oxforddictionaries.com/
https://developer.wordnik.com/

But what application you want to bruteforce? Is it Win Account Password? There's no need to brute force..

some more links:
https://github.com/first20hours/goog...00-english.txt
https://www.randomlists.com/random-words

Last edited by JJJCR; 08-28-2020 at 12:06 AM. Reason: edit
 
Old 08-28-2020, 11:34 AM   #8
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,437

Original Poster
Rep: Reputation: 110Reputation: 110
Quote:
Originally Posted by JJJCR View Post
But what application you want to bruteforce? Is it Win Account Password? There's no need to brute force..
LUKS/dm-crypt.
 
Old 08-28-2020, 09:32 PM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,156

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
There is a crack some-where out there for LUKS, using (multiple ?) GPU. Maybe on github from memory - never tried it, but was an interesting project.
 
Old 09-01-2020, 12:48 AM   #10
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,369

Rep: Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753
This may help https://passwordsgenerator.net/ . You can set all sorts of limits of type and num of chars.
 
Old 09-02-2020, 01:49 AM   #11
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,169

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
Exclamation

Quote:
Originally Posted by lucmove View Post
LUKS/dm-crypt.
Check out this link: https://access.redhat.com/solutions/1543373

From above link:

Quote:
Issue

I lost my LUKS key. How can I recover my data?
I forgot the passphrase to my LUKS-encrypted drive. What can I do?
How can I recover my data if forgot luks password ?

Resolution

This solution only works with LUKS1 devices. It is not possible to recover the master key of LUKS2 devices because the key is stored in the kernel directly.
 
Old 09-02-2020, 02:58 AM   #12
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,818

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by lucmove View Post
Thanks, but that will not do. I need to find a random string (not any real words) with my own choice of allowed characters.
Is this a computer that you have administrative rights to? (What OS, BTW?)

If so (and it's Linux), why not just change it using the "root" account? Or boot from a rescue CD, mount the root filesystem, and fix it (if the account in question is the root account.)

If you don't have administrative rights, brute forcing entry into the system is going to raise some eyebrows (at the very least) or hackles (eventually) as there are undoubtedly logs of failed attempts and questions will inevitably be asked. Be aware that many systems apply administrative locks on accounts that have failed to successfully login after a given number of failed attempts in a row. (Note: accounts are also often "disusered" when the account has not been used in a given period of time, say, six months.) Then prostrating one's self before the Powers That Be will be necessary to get the password changed. Explaining 6 failures is easier than explaining 100,000.
 
Old 09-03-2020, 12:06 PM   #13
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,437

Original Poster
Rep: Reputation: 110Reputation: 110
Quote:
Originally Posted by rnturn View Post
Is this a computer that you have administrative rights to? (What OS, BTW?)

If so (and it's Linux), why not just change it using the "root" account? Or boot from a rescue CD, mount the root filesystem, and fix it (if the account in question is the root account.)

If you don't have administrative rights, brute forcing entry into the system is going to raise some eyebrows (at the very least) or hackles (eventually) as there are undoubtedly logs of failed attempts and questions will inevitably be asked. Be aware that many systems apply administrative locks on accounts that have failed to successfully login after a given number of failed attempts in a row. (Note: accounts are also often "disusered" when the account has not been used in a given period of time, say, six months.) Then prostrating one's self before the Powers That Be will be necessary to get the password changed. Explaining 6 failures is easier than explaining 100,000.
It is my personal computer, the one I've used at home for many years.

It's not a root password. It's a LUKS/dm-crypt password.
 
Old 09-03-2020, 12:08 PM   #14
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,437

Original Poster
Rep: Reputation: 110Reputation: 110
Quote:
Originally Posted by JJJCR View Post
Check out this link: https://access.redhat.com/solutions/1543373
"This solution only works with LUKS1 devices. It is not possible to recover the master key of LUKS2 devices because the key is stored in the kernel directly."
From above link:
I find that very confusing. If the master key is stored in the kernel, what happens when the system is updated? What if it's an external media? I have googled that and couldn't find an explanation.
 
Old 09-03-2020, 10:40 PM   #15
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,169

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
Lightbulb

Quote:
Originally Posted by lucmove View Post
I find that very confusing. If the master key is stored in the kernel, what happens when the system is updated? What if it's an external media? I have googled that and couldn't find an explanation.
Good question but I don't claim to be an expert, nor I design the Kernel. But I believe there should be a signature that is kept on the OS to determine the uniqueness of the encryption or the media device, maybe it's like the logic of a MAC address that is unique to every NIC and it's kept on the NIC ROM. Just my 2 cents.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
regex for phrase like'word-word-word' Zero4 Linux - General 9 07-06-2019 06:36 AM
word list generator rehan_gree Linux - Newbie 8 08-04-2014 12:22 AM
NS2: Problem with Traffic model generator VANET (static traffic model generator for ns2) Anil Kumar Giri Linux - Software 0 04-28-2013 08:48 PM
Bash - Random word generator dtmc Programming 3 03-14-2012 02:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration