website hacking
480 subscribers
78 photos
3 videos
25 files
169 links
Download Telegram
Forwarded from F SOCIETY


Hashcat Tutorial for Beginners

@fsocietyofficial
Forwarded from F SOCIETY
Hashcat is a well-known password cracker. It is designed to break even the most complex passwords. To do this, it enables the cracking of a specific password in multiple ways, combined with versatility and speed.

Password representations are primarily associated with hash keys, such as MD5, SHA, WHIRLPOOL, RipeMD, etc. They are also defined as a one-way function β€” this is a mathematical operation that is easy to perform, but very difficult to reverse engineer.

Hashcat turns readable data into a garbled state (this is a random string of fixed length size). Hashes do not allow someone to decrypt data with a specific key, as standard encryption protocols allow.

Hashcat uses precomputed dictionaries, rainbow tables, and even a brute-force approach to find an effective and efficient way crack passwords. This article provides an introductory tutorial for cracking passwords using the Hashcat software package.


@fsocietyofficial
Forwarded from F SOCIETY
How to Crack Hashes

The simplest way to crack a hash is to try first to guess the password. Each attempt is hashed and then is compared to the actual hashed value to see if they are the same.

Dictionary and brute-force attacks are the most common ways of guessing passwords. These techniques make use of a file that contains words, phrases, common passwords, and other strings that are likely to be used as a viable password.

@fsocietyofficial
Forwarded from F SOCIETY
Forwarded from F SOCIETY
It should be noted that there is no 100% way to prevent dictionary attacks or brute force attacks.

Other approaches that are used to crack passwords are as follows:

Lookup Tables: Hashes are pre-computed from a dictionary and then stored with their corresponding password into a lookup table structure.
Reverse Lookup Tables: This attack allows for a cyber attacker to apply a dictionary or brute-force attack to many hashes at the same time, without having to pre-compute a lookup table.
Rainbow Tables: Rainbow tables are a time-memory technique. They are similar to lookup tables, except that they sacrifice hash cracking speed to make the lookup tables smaller.
Hashing with Salt: With this technique, the hashes are randomized by appending or prepending a random string, called a β€œsalt.” This is applied to the password before hashing.

@fsocietyofficial
Forwarded from F SOCIETY
Cracking Passwords with Hashcat

Hashcat can be downloaded here(https://hashcat.net/hashcat/). It can be used on Kali Linux. It possesses the following features:

πŸ‘‰It is multi-threaded;
πŸ‘‰It is multi-hash and multi-OS based (Linux, Windows and OSX native binaries);
πŸ‘‰It is multi-Algorithm based (MD4, MD5, SHA1, DCC, NTLM, MySQL, etc.);
πŸ‘‰All attack-modes can be extended by specialized rules;
πŸ‘‰It is possible to resume or limit sessions automatically. They recognize recovered hashes from the outfile at startup;
πŸ‘‰It can load the salt list from the external file. This can be used as a brute-force attack variant;
πŸ‘‰The number of threads can be configured and executed based on the lowest priority;
πŸ‘‰It supports both hex-charset and hex-salt files;
πŸ‘‰The 90+ Algorithm can be implemented with performance and optimization in mind.


A small laboratory setup of how to crack a password is presented in the next section. A dictionary attack will be simulated for a set of MD5 hashes initially created and stored in a target file. The β€œrockyou” wordlist found in Kali Linux was used.


@fsocietyofficial
Forwarded from F SOCIETY
How to crack a password via a dictionary attack.

1. Create a dictionary with MBD5 hashes:

To begin this demonstration, we will create multiple hash entries containing several passwords. They will then be outputted to a file called β€œtarget_hashes.” Each command should be executed in the terminal, as demonstrated in the screenshot below:
Forwarded from F SOCIETY
Forwarded from F SOCIETY
The -n option removes the new line added to the end of β€œPassword.” This is important as we don’t want the new line characters to be hashed with our password. The part
β€œtr –d β€˜ -β€˜ β€œremoves any characters that are a space or hyphen from the output.
Forwarded from F SOCIETY
2. Check password hashes:

To do this, we need to type the following command line in the terminal:

cat target_hashes.txt.

This is also illustrated in the screenshot below:
Forwarded from F SOCIETY
Forwarded from F SOCIETY
3. Start Hashcat in Kali Linux:

Hashcat can be started on the Kali console with the following command line:

hashcat -h.

This is illustrated in the screenshot below:
Forwarded from F SOCIETY
Forwarded from F SOCIETY
Some of the most important hashcat options are -m (the hashtype) and -a (attack mode). In general, we need to use both options in most password cracking attempts when using Hashcat.

Hashcat also has specifically designed rules to use on a wordlist file. The character list can be customized to crack the password(s).

Finally, Hashcat provides numerous options for password hashes that can be cracked. This can be seen in the screenshot below:
Forwarded from F SOCIETY
Forwarded from F SOCIETY
4. Choose the wordlist:

Kali Linux has numerous wordlists built right into it. To find them, use the following command line:

locate wordlists.

This is illustrated in the screenshot below:
Forwarded from F SOCIETY
Forwarded from F SOCIETY
Forwarded from F SOCIETY
5. Cracking the hashes:

In the final step, we can now start cracking the hashes contained in the target_hashes.txt file. We will use the following command line, as illustrated below:
Forwarded from F SOCIETY
Forwarded from F SOCIETY
πŸ‘‰-m 0 designates the type of hash we are cracking (MD5);
πŸ‘‰-a 0 designates a dictionary attack;
πŸ‘‰-o cracked.txt is the output file for the cracked passwords;
πŸ‘‰target_hashes.txt is our input file of hashes;
πŸ‘‰/usr/share/wordlists/rockyou.txt
is the absolute path to the wordlist file for this dictionary attack.