Filtering crunch generated wordlist before saving it

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I have a small wordlist of 100 words (unwanted strings) saved in a file called file01.



I would like to use crunch to generate wordlist of 10 characters, but I want to delete all the lines in file01 from the new crunch's generated wordlist before saving it, to reduce the size of the newly generated file.



What would syntax for that crunch command be?










share|improve this question



















  • 1




    Hi @Ahmed, kindly would you please add more clarifications to the question. Please see the answer below and we can modify depending on your needs
    – Goro
    Sep 25 at 18:22














up vote
1
down vote

favorite












I have a small wordlist of 100 words (unwanted strings) saved in a file called file01.



I would like to use crunch to generate wordlist of 10 characters, but I want to delete all the lines in file01 from the new crunch's generated wordlist before saving it, to reduce the size of the newly generated file.



What would syntax for that crunch command be?










share|improve this question



















  • 1




    Hi @Ahmed, kindly would you please add more clarifications to the question. Please see the answer below and we can modify depending on your needs
    – Goro
    Sep 25 at 18:22












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I have a small wordlist of 100 words (unwanted strings) saved in a file called file01.



I would like to use crunch to generate wordlist of 10 characters, but I want to delete all the lines in file01 from the new crunch's generated wordlist before saving it, to reduce the size of the newly generated file.



What would syntax for that crunch command be?










share|improve this question















I have a small wordlist of 100 words (unwanted strings) saved in a file called file01.



I would like to use crunch to generate wordlist of 10 characters, but I want to delete all the lines in file01 from the new crunch's generated wordlist before saving it, to reduce the size of the newly generated file.



What would syntax for that crunch command be?







command-line






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 25 at 17:52









Goro

6,42552863




6,42552863










asked Sep 25 at 12:34









Ahmed

474




474







  • 1




    Hi @Ahmed, kindly would you please add more clarifications to the question. Please see the answer below and we can modify depending on your needs
    – Goro
    Sep 25 at 18:22












  • 1




    Hi @Ahmed, kindly would you please add more clarifications to the question. Please see the answer below and we can modify depending on your needs
    – Goro
    Sep 25 at 18:22







1




1




Hi @Ahmed, kindly would you please add more clarifications to the question. Please see the answer below and we can modify depending on your needs
– Goro
Sep 25 at 18:22




Hi @Ahmed, kindly would you please add more clarifications to the question. Please see the answer below and we can modify depending on your needs
– Goro
Sep 25 at 18:22










1 Answer
1






active

oldest

votes

















up vote
4
down vote













The syntax for Crunch is:



crunch min max charset options


The min and max are the minimum and maximum lengths (respectively) for your desired wordlist. By default charset is not required, but you can use it to limit the characters of your wordlist to the ones you specify. If you choose to use charset then you must maintain the correct order, which is lowUP123@%# (lowercase letters, then uppercase letters, then numbers and finally symbols). You can skip any of them, but the order must always remain the same.



For example:



crunch 2 6 qrs347 | grep -vFf file01


The command above will produce a wordlist for every possible combination of the characters qrs347 from 2 to 6 characters in length.



You can modify the command depending on your needs






share|improve this answer


















  • 1




    if I'm interpreting the OP correctly, I think the solution they're looking for would be crunch ... | grep -vFf file01, assuming crunch outputs to stdout vs writing a file.
    – Jeff Schaller
    Sep 25 at 18:16






  • 2




    You are almost always correct @JeffSchaller ;-)
    – Goro
    Sep 25 at 18:19







  • 1




    Thank you very much your command is going good with me i already found a command that to pipe crunch output to sed as: crunch 10 10 abcde123456 | sed '/string1/d ; /string2/d ......' > Fileout
    – Ahmed
    Sep 25 at 19:31










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f471310%2ffiltering-crunch-generated-wordlist-before-saving-it%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
4
down vote













The syntax for Crunch is:



crunch min max charset options


The min and max are the minimum and maximum lengths (respectively) for your desired wordlist. By default charset is not required, but you can use it to limit the characters of your wordlist to the ones you specify. If you choose to use charset then you must maintain the correct order, which is lowUP123@%# (lowercase letters, then uppercase letters, then numbers and finally symbols). You can skip any of them, but the order must always remain the same.



For example:



crunch 2 6 qrs347 | grep -vFf file01


The command above will produce a wordlist for every possible combination of the characters qrs347 from 2 to 6 characters in length.



You can modify the command depending on your needs






share|improve this answer


















  • 1




    if I'm interpreting the OP correctly, I think the solution they're looking for would be crunch ... | grep -vFf file01, assuming crunch outputs to stdout vs writing a file.
    – Jeff Schaller
    Sep 25 at 18:16






  • 2




    You are almost always correct @JeffSchaller ;-)
    – Goro
    Sep 25 at 18:19







  • 1




    Thank you very much your command is going good with me i already found a command that to pipe crunch output to sed as: crunch 10 10 abcde123456 | sed '/string1/d ; /string2/d ......' > Fileout
    – Ahmed
    Sep 25 at 19:31














up vote
4
down vote













The syntax for Crunch is:



crunch min max charset options


The min and max are the minimum and maximum lengths (respectively) for your desired wordlist. By default charset is not required, but you can use it to limit the characters of your wordlist to the ones you specify. If you choose to use charset then you must maintain the correct order, which is lowUP123@%# (lowercase letters, then uppercase letters, then numbers and finally symbols). You can skip any of them, but the order must always remain the same.



For example:



crunch 2 6 qrs347 | grep -vFf file01


The command above will produce a wordlist for every possible combination of the characters qrs347 from 2 to 6 characters in length.



You can modify the command depending on your needs






share|improve this answer


















  • 1




    if I'm interpreting the OP correctly, I think the solution they're looking for would be crunch ... | grep -vFf file01, assuming crunch outputs to stdout vs writing a file.
    – Jeff Schaller
    Sep 25 at 18:16






  • 2




    You are almost always correct @JeffSchaller ;-)
    – Goro
    Sep 25 at 18:19







  • 1




    Thank you very much your command is going good with me i already found a command that to pipe crunch output to sed as: crunch 10 10 abcde123456 | sed '/string1/d ; /string2/d ......' > Fileout
    – Ahmed
    Sep 25 at 19:31












up vote
4
down vote










up vote
4
down vote









The syntax for Crunch is:



crunch min max charset options


The min and max are the minimum and maximum lengths (respectively) for your desired wordlist. By default charset is not required, but you can use it to limit the characters of your wordlist to the ones you specify. If you choose to use charset then you must maintain the correct order, which is lowUP123@%# (lowercase letters, then uppercase letters, then numbers and finally symbols). You can skip any of them, but the order must always remain the same.



For example:



crunch 2 6 qrs347 | grep -vFf file01


The command above will produce a wordlist for every possible combination of the characters qrs347 from 2 to 6 characters in length.



You can modify the command depending on your needs






share|improve this answer














The syntax for Crunch is:



crunch min max charset options


The min and max are the minimum and maximum lengths (respectively) for your desired wordlist. By default charset is not required, but you can use it to limit the characters of your wordlist to the ones you specify. If you choose to use charset then you must maintain the correct order, which is lowUP123@%# (lowercase letters, then uppercase letters, then numbers and finally symbols). You can skip any of them, but the order must always remain the same.



For example:



crunch 2 6 qrs347 | grep -vFf file01


The command above will produce a wordlist for every possible combination of the characters qrs347 from 2 to 6 characters in length.



You can modify the command depending on your needs







share|improve this answer














share|improve this answer



share|improve this answer








edited Sep 25 at 18:19

























answered Sep 25 at 17:51









Goro

6,42552863




6,42552863







  • 1




    if I'm interpreting the OP correctly, I think the solution they're looking for would be crunch ... | grep -vFf file01, assuming crunch outputs to stdout vs writing a file.
    – Jeff Schaller
    Sep 25 at 18:16






  • 2




    You are almost always correct @JeffSchaller ;-)
    – Goro
    Sep 25 at 18:19







  • 1




    Thank you very much your command is going good with me i already found a command that to pipe crunch output to sed as: crunch 10 10 abcde123456 | sed '/string1/d ; /string2/d ......' > Fileout
    – Ahmed
    Sep 25 at 19:31












  • 1




    if I'm interpreting the OP correctly, I think the solution they're looking for would be crunch ... | grep -vFf file01, assuming crunch outputs to stdout vs writing a file.
    – Jeff Schaller
    Sep 25 at 18:16






  • 2




    You are almost always correct @JeffSchaller ;-)
    – Goro
    Sep 25 at 18:19







  • 1




    Thank you very much your command is going good with me i already found a command that to pipe crunch output to sed as: crunch 10 10 abcde123456 | sed '/string1/d ; /string2/d ......' > Fileout
    – Ahmed
    Sep 25 at 19:31







1




1




if I'm interpreting the OP correctly, I think the solution they're looking for would be crunch ... | grep -vFf file01, assuming crunch outputs to stdout vs writing a file.
– Jeff Schaller
Sep 25 at 18:16




if I'm interpreting the OP correctly, I think the solution they're looking for would be crunch ... | grep -vFf file01, assuming crunch outputs to stdout vs writing a file.
– Jeff Schaller
Sep 25 at 18:16




2




2




You are almost always correct @JeffSchaller ;-)
– Goro
Sep 25 at 18:19





You are almost always correct @JeffSchaller ;-)
– Goro
Sep 25 at 18:19





1




1




Thank you very much your command is going good with me i already found a command that to pipe crunch output to sed as: crunch 10 10 abcde123456 | sed '/string1/d ; /string2/d ......' > Fileout
– Ahmed
Sep 25 at 19:31




Thank you very much your command is going good with me i already found a command that to pipe crunch output to sed as: crunch 10 10 abcde123456 | sed '/string1/d ; /string2/d ......' > Fileout
– Ahmed
Sep 25 at 19:31

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f471310%2ffiltering-crunch-generated-wordlist-before-saving-it%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay