ALERT
Click here to register with a few steps and explore all our cool stuff we have to offer!

Cracked.to | Best Cracking Forum Around | Free Premium Accounts




 670

[sunjester tuts] Combolist Management in Bash/Shell Script

by sunjester - 1 year ago
This post is by a banned member (sunjester) - Unhide
sunjester  
Registered
0
Rep
42
Likes
Posts: 19
Threads: 12
Joined: Mar 2019
Vouches: 0
Credits: 5.510
Introduction
There seems to be a growing use of combo lists and some people are using horribly compiled lists. This tutorial will help you to create and manage your combo lists better. As with all of my other tutorials, we will be working in Linux, ubuntu xenial. And, yes, backtrack or kali is fine (i belive they are both debian based also). Feel free to use my project, https://github.com/therealsunjester/combos, it hasn't been update in a while but it has over 17 million combo lists, and don't forget to contribute your lists to it.
 
Requirements
All the tools I use are already bundled with a debian distro.
 
Counting the Lists
There is a handy tool called wc, word counter. You can count the lines in files, or even nested folders with files.
 
Code:
wc -l 08k.txt
[Image: bSsO6pC.png]
 
As you can see in the image this file has 8,846 lines. We can also check ALL the txt files in the directory.
Code:
wc -l *.txt
[Image: wroiuao.png]
 
wc prints the line count for each file and the total number of lines counted.
 
Combining Combo Lists
You can use the cat command to merge all the combos into one large combo file. Let's say we have multiple files (I will be using another file from my combo list project on Github).
Code:
cat *.txt >combined.txt
And then count the lines in combined.txt and below is both commands, the cat command takes all the txt files and puts them in combined.txt and then we count the lines in combined.txt.
 
[Image: hTXbd4K.png]
Removing Duplicates
It's easy to remove the duplicates using sort.
Code:
sort -u combined.txt -o combined.txt
[Image: rmJjDPi.png]
 
As you can see above we removed some duplicates from the list. The original line count in combined.txt was 108,811 and now after the unique sort we have 108,797.
This post is by a banned member (socalgurl) - Unhide
socalgurl  
Registered
0
Rep
10
Likes
Posts: 10
Threads: 0
Joined: Mar 2019
Vouches: 0
Credits: 0
#2
thanks for this

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
or
Sign in
Already have an account? Sign in here.


Forum Jump:


Users browsing this thread: 1 Guest(s)