Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Fri, 23 Mar 2012 01:07:42 +0400
From: Solar Designer <solar@...nwall.com>
To: john-users@...ts.openwall.com
Subject: Re: Hahses + Pass output

On Thu, Mar 22, 2012 at 09:10:31PM +0100, magnum wrote:
> You can do it with grep and a horrible one-liner though:
> 
>   egrep "`cut -d: -f2 File.txt`" john.pot
> 
> This assumes File.txt has its hashes in the second field (as opposed to
> pwdump files, for example), otherwise you'll have to adjust -f2 to
> something else.
> 
> But for very large input files, this egrep will fail (too many
> arguments) and you'd have to use a little perl script or something instead.

cut -d: -f2 File.txt | fgrep -f - john.pot

Alexander

Powered by blists - more mailing lists

Your e-mail address:

Powered by Openwall GNU/*/Linux - Powered by OpenVZ