Wordlist Manipulation
Last updated
Was this helpful?
Last updated
Was this helpful?
Hack Responsibly.
Always ensure you have explicit permission to access any computer system before using any of the techniques contained in these documents. You accept full responsibility for your actions by applying any knowledge gained here.
Sorts all files in a directory
# sed -i 's/ //g' file.txt
OR # egrep -v "^[[:space:]]*$" file.txt
# sed -i s/.$// file.txt
# awk '{print length, $0}' rockyou.txt | sort -n | cut -d " " -f2- > rockyou_length-list.txt
# tr '@' '#' < emails.txt
OR # sed 's/@/#' file.txt
# awk -F "," '{print $3}' infile.csv > outfile.csv
OR # cut -d "," -f 3 infile.csv > outfile.csv
Note: if you want to isolate all columns after column 3 put a
-
(dash) after the number:# cut -d "," -f 3- infile.csv > outfile.csv
# tr -d '()' < in_file > out_file
# ls -A | sed 's/regexp/& /g'
# sed 's/([[:alnum:]]*)[[:space:]]*(.)(..*)/12/' *.txt
# awk 'length == 10' file.txt > 10-length.txt
# paste -d' ' file1.txt file2.txt > new-file.txt
# export alias sort='sort --parallel=<number_of_cpu_cores> -S <amount_of_memory>G ' && export LC_ALL='C' && cat file.txt | sort -u > new-file.txt
# tr '\015' '\012' < in_file > out_file
# dos2unix file.txt
# unix2dos file.txt
# grep -F -v -f file1.txt -w file2.txt > file3.txt
# sed -n '1,100p' test.file > file.out
# pdftotext file.pdf file.txt
# awk '{ print NR, $0 }' file.txt | grep "string-to-grep"
Find as much information about the target as you can and generate a custom dictionary. Tools that may help:
Create a wordlist with lengths from 4 to 6 using a specified character set
Create a list of 4 character "words" using the character set mixalpha (inside file charset.lst)
Character set examples:
Using this you can make wordlists using custom character sets with shortcuts
Generate a wordlist based on a target website
Generate passwords based on your knowledge of the victim (names, significant dates, etc...)
TODO: add more
TODO: add more
If you like this content and would like to see more, please consider !