Files
left4code.neocities.org/courses/hash_forensics/hashid.html
2025-05-05 22:01:42 -04:00

148 lines
5.1 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="description" content="CONTENT">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Left4Code">
<meta name="keywords" content="hashid, Hashid, hashID, hashif, Hashif, identify hash">
<link rel="icon" type="image/x-icon" href="../../favicon/favicon.ico">
<title>Left4Code - (Courses) - {hashID}</title>
<link rel="stylesheet" type="text/css" href='../../style.css'>
</head>
<body>
<header>
<span>Left4Code</span>
</header>
<nav>
<div>
<a href="../../index.html">Home</a>
<a href="../../blog.html">Blog</a>
</div>
</nav>
<div class="container">
<section>
<h1 class="blog-header">hashID</h1>
<h3>--| Posted: 05-06-25</h3>
<h4 class="blog-header">Table of Contents</h4>
<div id="toc_container">
<hr>
<ul class="toc_list">
<li><a href="#>~(1)">1. Background Information</a></li>
<ul>
<li><a href="#>~{1.1}">1.1 Links Used on this Page</a></li>
</ul>
<li><a href="#>~(2)">2. Installing hashID</a></li>
<li><a href="#>~(3)">3. Using hashID</a></li>
<ul>
<li><a href="#>~{3.1}">3.1 Determining Hashes Using Hashid</a></li>
<li><a href="#>~{3.2}">3.2 Outputting Hashes to a File</a></li>
<li><a href="#>~{3.3}">3.3 Hashcat and JtR Output Modes</a></li>
</ul>
<li><a href="#>~(4)">4. Conclusion</a></li>
</div>
<hr>
<h4 id=">~(1)" class="blog-header">1. Background Information</h4>
<p>hashID is a program that uses regular expressions (regex) to determine the type of hash provided from a string, this can be very useful to use when cracking hashes with either John the Ripper or Hashcat</p>
<p>I will show the different options that hashID offers.</p>
<h4 id=">~{1.1}" class="blog-header">1.1 Links Used on This Page</h4>
<pre class="preformatted">
<a href="https://github.com/psypanda/hashID">▶[https://github.com/psypanda/hashID]</a>
◉───╡ hashID Github link.
<a href="https://github.com/psypanda/hashID/releases">▶[https://github.com/psypanda/hashID/releases]</a>
◉───╡ hashID releases section on Github.</pre>
<h4 id=">~(2)" class="blog-header">2. Installing hashID</h4>
<p>Installing hashID is simple and can be installed on any system with python installed. You can install hashID directly using pip by running:</p>
<pre class="preformatted">
pip install hashid</pre>
<p>If you are using Kali or some ubuntu derivative, you can install it using aptitude.</p>
<pre class="preformatted">
sudo apt install hashid </pre>
<p>Additionally, you can clone the repository as shown in the github readme:</p>
<pre class="preformatted">
sudo apt-get install python3 git
git clone https://github.com/psypanda/hashid.git
cd hashid
sudo install -g 0 -o 0 -m 0644 doc/man/hashid.7 /usr/share/man/man7/
sudo gzip /usr/share/man/man7/hashid.7 </pre>
<p>If you would like a release file, you can get them <a href="https://github.com/psypanda/hashID/releases">here</a>.</p>
<p>*You may need to add hashID to your system path if you do not install it from a repository.</p>
<h4 id=">~(3)" class="blog-header">3. Using hashID</h4>
<p>hashID is very simple to use, the simple utilization of hashID is as follows:</p>
<pre class="preformatted">
hashid &lt;hash&gt; </pre>
<p>it's that simple, hashID will print out a list of potential hash algorithms that could have been used to generate the hash.</p>
<h4 id=">~{3.1}" class="blog-header">3.1 Determining Hashes Using Hashid</h4>
<p>Personally, when attempting to determine the hash algorithm used to generate a specific hash, the most common algorithms should be first be considered before the more exotic algorithms, for example, in hashID, a SHA256 hash will give multiple different false positives like Haval-256 and GOST. </p>
<h4 id=">~{3.2}" class="blog-header">3.2 Outputting Hashes to a File</h4>
<p>When using hashID by default, the program will default to standard output, which is the terminal. If you want the output of hashID to be put into a file, you can use the <b><i>-o</i></b> flag.</p>
<pre class="preformatted">
hashid &lt;hash&gt; -o &lt;output_file&gt; </pre>
<h4 id=">~{3.3}" class="blog-header">3.3 Hashcat and JtR Output Modes</h4>
<p>To output the different modes that both Hashcat and JtR support for each hash identifier.</p>
<p>you can use <b><i>-m</i></b> for hashID to output the hash mode number and you can use <b><i>-j</i></b> for the john the ripper identifier</p>
<p>I go over how to utilize the modes feature in the Hashcat tutorial which is after this one.</p>
<h4 id=">~(4)" class="blog-header">4. Conclusion</h4>
<p>hashID is a very simple and useful tool which should be used in combination with Hashcat or John the Ripper to accurately determine hash algorithms for cracking purposes.</p>
</section>
</div>
</body>
</html>