hashcat Forum
HELP XD - Script - Printable Version

+- hashcat Forum (https://hashcat.net/forum)
+-- Forum: Deprecated; Previous versions (https://hashcat.net/forum/forum-29.html)
+--- Forum: General Help (https://hashcat.net/forum/forum-8.html)
+--- Thread: HELP XD - Script (/thread-3151.html)



HELP XD - Script - NameUser - 02-16-2014

Pretty much what I am trying to do is
I have 1 file with a bunch of Usernames, I have another file with username:hashs.

Now I want to match these so The usernames from first file matches with username:hashs from the second file, and get a new username:hash file.

Please help :x


RE: HELP XD - Script - atom - 02-16-2014

if have you have 2 times the same username, how would it make a difference if you just replace them?


RE: HELP XD - Script - NameUser - 02-16-2014

Sorry if I did not explain my self correct, I got a list of usernames off a website, I have another database with user:hash, now what Im trying to do is check if any of the list of users match the other list of user:hash. If they do then put them into a separate file as user:hash


RE: HELP XD - Script - magnum - 02-17-2014

Windows or Linux? It's trivial in Linux, using grep(1)


RE: HELP XD - Script - NameUser - 02-17-2014

windows


RE: HELP XD - Script - coolbry95 - 02-17-2014

Just use unxutils grep. Just a single executable. So if I understand correctly do something like
Code:
for i in $(cat usernamelist); do grep $i user:hash; done
for linux. For windows use powershell maybe.
Code:
foreach ($i in (Get-Content .\userlist)) {Select-String $i .\user:hash}
That is only powershell.