NOTE: Why not use our List Manager to crack your lists? Its easy and enables better management.

NOTE: When cracking WPA/WPA2 passwords, make sure you check gpuhash.me first incase it's already been processed.

Home - General Discussion - Extract lines with a specific word


5 Results - Page 1 of 1 -
1
Author Message
Avatar
Zirax

Status: n/a
Joined: Mon, 17 Dec 2018
Posts: 9
Team:
Reputation: 1 Reputation
Offline
Sun, 06 Jan 2019 @ 02:09:27

Hi

I have a file with the following values:

*File1.txt

asdasdcx22asdas*WoW*sdsadsadsdasdasdasdasd
asdasdcx22asdassdsadsadsdasdasdas*WoW*dasd
asdasdcx22asdasssaxxsdsadsadsdasdasdasdasd
*WoW*asdasdcx22asdassdsadsadsdasdasdasdasd
asdasdcx22asdaszxcvssdsadsadsdasdasdasdasd
asdasdcx22asdassdsadsadsdasdasdasdasd*WoW*

I want to extract lines that contain the word "*WoW*" inside them:

*Output.txt

asdasdcx22asdas*WoW*sdsadsadsdasdasdasdasd
asdasdcx22asdassdsadsadsdasdasdas*WoW*dasd
*WoW*asdasdcx22asdassdsadsadsdasdasdasdasd
asdasdcx22asdassdsadsadsdasdasdasdasd*WoW*

How should I do this?


+rep if i help you

Avatar
dipeperon

Status: n/a
Joined: Tue, 03 Apr 2018
Posts: 350
Team:
Reputation: 406 Reputation
Offline
Sun, 06 Jan 2019 @ 02:36:06

You can just do a regex extraction using ULM

^(.*WoW.*)$


My haschat stuff (rules, scripts): https://github.com/theherp/Hashcat-stuff

Avatar
Zirax

Status: n/a
Joined: Mon, 17 Dec 2018
Posts: 9
Team:
Reputation: 1 Reputation
Offline
Sun, 06 Jan 2019 @ 04:23:22

dipeperon said:

You can just do a regex extraction using ULM

^(.*WoW.*)$

Result ( Regex Regular Expression Tool ) :

asdasdcx22asdas*WoW*sdsadsadsdasdasdasdasdasdasdcx22asdassdsadsadsdasdasdas*WoW*dasd*WoW*asdasdcx22asdassdsadsadsdasdasdasdasdasdasdcx22asdassdsadsadsdasdasdasdasd*WoW*

How can I put each line in a row ?

asdasdcx22asdas*WoW*sdsadsadsdasdasdasdasd
asdasdcx22asdassdsadsadsdasdasdas*WoW*dasd
*WoW*asdasdcx22asdassdsadsadsdasdasdasdasd
asdasdcx22asdassdsadsadsdasdasdasdasd*WoW*


Is there a tool to do this automatically and save the results in a text file? (for large text files)


+rep if i help you

Avatar
cvsi
Moderator
Status: Trusted
Joined: Fri, 23 May 2014
Posts: 2466
Team:
Reputation: 3608 Reputation
Offline
Sun, 06 Jan 2019 @ 06:17:40

I just tested this with ULM Gui for windows.

Open it up, click on the icon that says Line Tools.

Select Keep if line contains (text)

Select your file

Click Process

Popup will ask for text, put : *WoW*

Hit ok, another window will pop up and ask if it is case sensitive, make your selection, and it will go through
the list and output a file in the same directory that the original was in.


Please read the forum rules. | Please read the paid section rules.

GTX 1080 Ti , GTX 1080 , 1070 Ti , 2x GTX 1070 Everything watercooled

BTC - 3CwoAwqYgNSZpzzZ2FEjXYceXR2Wr2wTtD
ETH - 0x47D0A7cDA8b330b1729e554BCa5574dc60c51b1f

Avatar
athena

Status: n/a
Joined: Thu, 17 Jan 2019
Posts: 1
Team:
Reputation: 0 Reputation
Offline
Thu, 17 Jan 2019 @ 14:14:27

rgrep "*WoW*" File1.txt



5 Results - Page 1 of 1 -
1

We have a total of 187747 messages in 23279 topics.
We have a total of 21106 registered users.
Our newest registered member is ressress11.