<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by harshith thota on Medium]]></title>
        <description><![CDATA[Stories by harshith thota on Medium]]></description>
        <link>https://medium.com/@thota.harshit?source=rss-5f1657914c3c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*6DF4e4c7LLLdbK7h.jpg</url>
            <title>Stories by harshith thota on Medium</title>
            <link>https://medium.com/@thota.harshit?source=rss-5f1657914c3c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 04:19:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@thota.harshit/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Cracking PDF passwords using Hashcat]]></title>
            <link>https://medium.com/@thota.harshit/cracking-pdf-passwords-using-hashcat-70bc7b8b2fa6?source=rss-5f1657914c3c------2</link>
            <guid isPermaLink="false">https://medium.com/p/70bc7b8b2fa6</guid>
            <category><![CDATA[password-cracking]]></category>
            <category><![CDATA[pdf]]></category>
            <category><![CDATA[hashcat]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[harshith thota]]></dc:creator>
            <pubDate>Wed, 11 Sep 2019 07:31:20 GMT</pubDate>
            <atom:updated>2019-09-11T07:42:35.293Z</atom:updated>
            <content:encoded><![CDATA[<p>I want to share my experience of how I cracked PDF passwords using Hashcat.</p><blockquote><strong>PS: This blog is just for learning purposes. Please do not use this unethically.</strong></blockquote><p><strong>What is Hashcat?</strong></p><p>Hashcat is a password recovery which is designed to crack complex passwords in multiple ways with the highest accuracy and speed.</p><p>There are different modes to crack PDF passwords. Brute force and dictionary attacks are the most common modes that are used to crack the passwords.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/653/1*E-555ys2JPUf3j1V23DKkQ.jpeg" /></figure><p>Before using Hashcat I tried many ways to crack PDF passwords, but it takes a long time to crack the basic numeric password. Time is the most important constraint here. After trying different solutions, I found Hashcat, using which it takes less time and gives more flexibility.</p><p><strong>Installation</strong></p><p>For Linux, use:</p><pre>sudo apt-get install hashcat</pre><p>To run Hashcat in the system, anyone following drivers must be installed:</p><ul><li>AMD GPUs on Linux require “RadeonOpenCompute (ROCm)” Software Platform (1.6.180 or later)</li><li>AMD GPUs on Windows require “AMD Radeon Software Crimson Edition” (15.12 or later)</li><li>Intel CPUs require “OpenCL Runtime for Intel Core and Intel Xeon Processors” (16.1.1 or later)</li><li>Intel GPUs on Linux require “OpenCL 2.0 GPU Driver Package for Linux” (2.0 or later)</li><li>Intel GPUs on Windows require “OpenCL Driver for Intel Iris and Intel HD Graphics”</li><li>NVIDIA GPUs require “NVIDIA Driver” (367.x or later)</li></ul><p>Install any one of the above drivers to run Hashcat.</p><p>If the installation goes successful, you can see the following in command line:</p><pre>harshith@root:~$ hashcat</pre><pre>Usage: Hashcat [options]… hash|hashfile|hccapxfile [dictionary|mask|directory]…</pre><pre>Try — help for more help.</pre><p>To see the list of options</p><pre>harshith@root:~$ Hashcat — help</pre><p><strong>How to crack the PDF password?</strong></p><p>We need to provide the PDF hash to Hashcat, for which we want to crack the password. Hashcat will generate the passwords, calculate the hash of passwords and compares with the inputted hash.</p><p>To crack the pdf password using Hashcat first, we need to extract the hash from the pdf.</p><p>Here is a python program which extracts the hash from the encrypted PDF:</p><pre><a href="https://gist.github.com/harshiththota/fccade5936c8b961e7563f851013526f">https://gist.github.com/harshiththota/fccade5936c8b961e7563f851013526f</a></pre><p>To get PDF hash, run the following command:</p><pre>harshith@root:~$ python pdf2Hashcat.py PDF_FILE</pre><p>Example PDF hash:</p><pre>$pdf$1*2*40*-1*0*16*51726437280452826511473255744374*32*9b09be05c226214fa1178342673d86f273602b95104f2384b6c9b709b2cbc058*32*0000000000000000000000000000000000000000000000000000000000000000</pre><p><strong>How to crack the password using Hashcat with pdf hash</strong></p><p>To crack the PDF password, run the following Hashcat command:</p><pre>harshith@root:~$ Hashcat -m HASHCODE -a 3 PATTERN_REGEX PDF_HASH</pre><p>The above command gives you the structural idea of how to run Hashcat.</p><ul><li>m — Hash Type</li></ul><p><a href="https://hashcat.net/wiki/doku.php?id=example_hashes">Here</a> you can see the list of hash types with hash codes.</p><ul><li>a — Attack Mode</li></ul><p><a href="https://hashcat.net/wiki/doku.php?id=frequently_asked_questions#attack-modes">Here</a> you can see the list of attack modes.</p><ul><li>PATTERN_REGEX — Need to specify the password regex.</li><li>PDF_HASH — Pdf hash to which password that needs to be cracked.</li></ul><p><strong>More options</strong></p><p>If you knew the password’s minimum length, you can use:</p><pre>increment-min=PASSWORD_MIN_LENGTH</pre><p>When you start the Hashcat command, it will show you some status like:</p><pre>Session……….: Hashcat</pre><pre>Status………..: Running</pre><pre>Hash.Name……..: PDF 1.4–1.6 (Acrobat 5–8)</pre><pre>Hash.Target……: $pdf$2*3*128*-316*1*16*ct49d31fbfew4t006bc442214d519b8d…ce6962</pre><pre>Time.Started…..: Wed Sep 11 10:54:58 2019 (3 mins, 31 secs)</pre><pre>Time.Estimated…: Wed Sep 11 11:02:37 2019 (4 mins, 8 secs)</pre><pre>Guess.Mask…….: ?1?2?2?3?5 [5]</pre><pre>Guess.Charset….: -1 ?l?d?u, -2 ?l?d, -3 ?l?d*!$@_, -4 Undefined</pre><pre>Guess.Queue……: 3/15 (20.00%)</pre><pre>Speed.#1………: 158.8 kH/s (0.79ms) @ Accel:64 Loops:8 Thr:64 Vec:1</pre><pre>Recovered……..: 0/1 (0.00%) Digests</pre><pre>Progress………: 80352/80352 (100.00%)</pre><pre>Rejected………: 0/80352 (0.00%)</pre><pre>Restore.Point….: 1296/1296 (100.00%)</pre><pre>Restore.Sub.#1…: Salt:0 Amplifier:61–62 Iteration:64–70</pre><pre>Candidates.#1….: Xar -&gt; Xqx</pre><p>If the password is cracked successfully it will give you the hash along with the password, as shown below:</p><pre>$pdf$2*3*128*-316*1*16*ca9d311fb8006bc442214d519b8daefa*32*fc02b71eccaa7a7wrgerg4201b8d00ab3613100000000000000000000000000000000*32*546afe87292cd61be126ba7469a65a8925eb2ddd53d2dd5db6cb18739b1a91:123456</pre><p>In the above result, 123456 is the password of the hash.</p><p>If you want to store the result in a file then use the option</p><p>o — OUTPUT_FILE</p><p><strong>Pot File</strong></p><p>All the passwords which are cracked using Hashcat will be stored in the pot file.</p><p>To view the pot file:</p><pre>harshith@root:$ cat ~/.Hashcat/Hashcat.potfile</pre><p><strong>Hashcat benchmarking</strong>:</p><pre>harshith@root:$ hashcat -b — force</pre><pre>Benchmark relevant options:<br>===========================<br>* — force<br>* — optimized-kernel-enable</pre><pre>Hashmode: 0 — MD5</pre><pre>Speed.#1………: 459.6 MH/s (51.43ms) @ Accel:64 Loops:64 Thr:256 Vec:4</pre><pre>Hashmode: 100 — SHA1</pre><pre>Speed.#1………: 122.6 MH/s (94.49ms) @ Accel:16 Loops:128 Thr:256 Vec:4</pre><pre>Hashmode: 1400 — SHA2–256</pre><pre>Speed.#1………: 61643.2 kH/s (50.16ms) @ Accel:32 Loops:16 Thr:256 Vec:4</pre><pre>Hashmode: 1700 — SHA2–512</pre><pre>Speed.#1………: 10524.9 kH/s (73.97ms) @ Accel:1 Loops:128 Thr:256 Vec:1</pre><pre>Hashmode: 2500 — WPA-EAPOL-PBKDF2 (Iterations: 4095)</pre><pre>Speed.#1………: 192 H/s (47.90ms) @ Accel:2 Loops:128 Thr:256 Vec:1</pre><pre>Hashmode: 1000 — NTLM</pre><pre>Speed.#1………: 810.1 MH/s (61.49ms) @ Accel:64 Loops:128 Thr:256 Vec:4</pre><pre>Hashmode: 3000 — LM</pre><pre>Speed.#1………: 318.0 MH/s (77.91ms) @ Accel:16 Loops:1024 Thr:64 Vec:1</pre><pre>Hashmode: 5500 — NetNTLMv1 / NetNTLMv1+ESS</pre><pre>Speed.#1………: 449.9 MH/s (54.57ms) @ Accel:4 Loops:1024 Thr:256 Vec:4</pre><p><strong>Conclusion</strong></p><p>Using Hashcat we will be able to crack most of the passwords using less time and with more accuracy. This article gives you a basic understanding of how to break the passwords using Hashcat. You can play around with it, you can find more information about this in the official Hashcat <a href="https://hashcat.net/wiki/">wiki</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=70bc7b8b2fa6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[One year at Finoramic as a Software Engineer]]></title>
            <link>https://medium.com/@thota.harshit/one-year-at-finoramic-as-a-software-engineer-c9a0bffb64cd?source=rss-5f1657914c3c------2</link>
            <guid isPermaLink="false">https://medium.com/p/c9a0bffb64cd</guid>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[product-development]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[harshith thota]]></dc:creator>
            <pubDate>Mon, 11 Mar 2019 14:07:05 GMT</pubDate>
            <atom:updated>2019-03-11T14:07:05.315Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GP1xMGK4mlgQCF1JrkKdpQ.jpeg" /></figure><p>It was a great experience to start my career in a startup. Previously I had done an internship for 3 months in an MNC and later I moved to Finoramic. When I joined this company I was still pursuing the final semester of my B.Tech. Here are a few things which I have learnt over this 1 year which I want to share with you.</p><p>Initially, I joined as an intern here. In the internship period, I went through the overall system and understood how it works. Unlike other companies, there was no training period. Since I knew programming concepts and a bit of Node JS, I directly started working on implementing small features. The reason why I felt comfortable during the internship is because of the way the system is developed. For this, I need to thank everyone in the team for developing such a system and guiding me. This made me think about programming from a different perspective. Coding is not just about solving the problem but its more about writing neat code that is easily understandable and scalable.</p><p>Later after completion of my exams, I was converted to a full-time employee. The advantage of working in a startup is we get the opportunity to develop features end to end. Every time we need to design, develop and test the features. The main thing that is to be kept in mind is taking ownership of the work. The feature is incomplete until it is not live in the production. Every time I was happy and it gave me some confidence when I see those features live.</p><p>Another lesson learnt is speed and accuracy in developing features. One important way where we can achieve this by dividing and developing the features into small parts and making testing much simpler. The main advantage of splitting the features into small cycles is we will complete the basic things first and it will give more confidence to add more things to it. Making the test cycle simpler can decrease the time of testing the code in each and every iteration and increases productivity.</p><p>Many times I was stuck in between in one or the other part. The lesson which I learnt is we should not hesitate to ask about the things which we are not able to understand, multiple times. We should have enough clarity on things which are doing. Doing mistakes is a common thing that happens to every person. But we should learn from those mistakes. It’s a growth mindset.</p><p>Another valuable experience I got is don’t ever start coding directly after listening to the feature. At some of the other point, you will notice that you have gone in the wrong direction. This will not only make you regret but also kills your time. First, document the problem in the sheet in your own words. Go through the entire problem statement and analyse the test cases. You need to design a system which is scalable and robust. After doing these things then start coding.</p><p>One of the important personality ones should possess is a learning attitude. Parallel to working for the company we need to explore new things. We need to keep track of our past achievements and also plan for the next couple of months. This way we can see how much we are progressing in our career.</p><p>I need to thank Sachin for giving this opportunity to work and constantly motivating and giving feedback to us. I hope this will continue.</p><p>P.S.: We are hiring ambitious engineers for our team. Apply here: <a href="https://angel.co/finoramic">https://angel.co/finoramic</a>/jobs</p><p>Thank You.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c9a0bffb64cd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>