<?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 Dante on Medium]]></title>
        <description><![CDATA[Stories by Dante on Medium]]></description>
        <link>https://medium.com/@danieldantebarnes?source=rss-878df4247a4b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ZAlS5_VTMH3GnWad</url>
            <title>Stories by Dante on Medium</title>
            <link>https://medium.com/@danieldantebarnes?source=rss-878df4247a4b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 16:29:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@danieldantebarnes/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[Fixing the “Kerberos SessionError: KRB_AP_ERR_SKEW(Clock skew too great)” Issue While Kerberoasting]]></title>
            <link>https://medium.com/@danieldantebarnes/fixing-the-kerberos-sessionerror-krb-ap-err-skew-clock-skew-too-great-issue-while-kerberoasting-b60b0fe20069?source=rss-878df4247a4b------2</link>
            <guid isPermaLink="false">https://medium.com/p/b60b0fe20069</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[kerberoasting]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[active-directory]]></category>
            <dc:creator><![CDATA[Dante]]></dc:creator>
            <pubDate>Wed, 10 Jan 2024 12:23:38 GMT</pubDate>
            <atom:updated>2024-01-10T12:23:38.372Z</atom:updated>
            <content:encoded><![CDATA[<p>So there I was, learning to Kerberoast an Active Directory. The wind at my back, the sun on my face, and my hacker hoodie affixed atop my noggin just so. I typed out the command that SHOULD have delivered a password hash to me when this happened:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eRZmVfcphNLT9-5PWA1PBQ.png" /><figcaption>My disappointment is immeasurable and my day is ruined</figcaption></figure><p>If you’re here, you’re likely experiencing a similar issue. Don’t worry. After some trial and error, I was able to figure out how to fix this. Follow the steps below on Kali Linux:</p><ol><li>If you are not currently running as the root user, switch to the root user by running the “<strong>su</strong>” command</li><li>Run “<strong>timedatectl set-ntp off</strong>” to disable the Network Time Protocol from auto-updating</li><li>Run “<strong>rdate -n [IP of Target]</strong>” to match your date and time with the date and time of the your target machine</li><li>Run your Kerberoast command (which should be <strong>GetUserSPNs.py [Domain Name].local/[username]:[password] -dc-ip [Domain Controller IP] -request</strong>)</li><li>Profit</li></ol><p>I tried these same steps as a non-root user, and it didn’t work. Hope this helps. Happy Hacking.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b60b0fe20069" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Get a HackTheBox Invite Code]]></title>
            <link>https://medium.com/@danieldantebarnes/how-to-get-a-hackthebox-invite-code-743826db4926?source=rss-878df4247a4b------2</link>
            <guid isPermaLink="false">https://medium.com/p/743826db4926</guid>
            <category><![CDATA[hackthebox-writeup]]></category>
            <category><![CDATA[hackthebox-walkthrough]]></category>
            <category><![CDATA[hackthebox]]></category>
            <dc:creator><![CDATA[Dante]]></dc:creator>
            <pubDate>Tue, 06 Oct 2020 15:26:13 GMT</pubDate>
            <atom:updated>2020-10-06T15:33:18.822Z</atom:updated>
            <content:encoded><![CDATA[<p>So you want to learn to hack things. You’ve talked to a few folks, or maybe you heard about it on another website or Youtube video, but you’ve been told that HackTheBox is a great resource for people like you. You excitedly head toward hackthebox.eu, click the “Join Now” button and…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*B48BfDlg8qe55Rc1OEODBA.png" /><figcaption>Dude…</figcaption></figure><p>Part of you is frustrated, and the other part of you feels like you should have expected something like this. You throw your hands up, concede that you’ll never be a hacker, and resign yourself to Luddism and shame.</p><p>But if that were true, you wouldn’t be here. If you’re anything like me, you need some help to get through this. I understand. Let’s give it a shot.</p><p>First, let’s click that “Click Here!” button under the “Want some help?” prompt.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*_OCZ-QuWZk9GoGVxwN0JeQ.png" /><figcaption>Console? What?</figcaption></figure><p>Okay so not a great amount of help. Let’s try another idea. If you’re anything like me, you’ve right-clicked on websites and seen the “Page Source” or “Inspect” options in the dropdown.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*VLTyzZDf9U1NhEEvGogECg.png" /><figcaption>Much option. Many dropdown. Wow.</figcaption></figure><p>Let’s try the “Inspect” option at the very bottom. Alternatively, you can use the key combination shown on the right (Ctrl+Shift+I [which is an uppercase “i” for “Inspect”]).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*AsvQ8VL9JFDDfGwyaV6qXw.png" /><figcaption>*keanu reeves voice* Whoa…</figcaption></figure><p>Okay interesting. Now yours will likely look different from mine, but I’ve made some modifications to my web browser’s inspect tool. You can do it too if you so choose. It’s easier to follow along if your tool is on the bottom of the screen like mine is (the dark mode is a personal choice). In Chrome (the browser I’m using), you can do this by clicking the three dots next to the “X” in the upper right corner and selecting the “Dock to bottom” option in the “Dock side” portion at the top of the dropdown.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/424/1*NYSomkuLdgsdPP54PAGPlA.png" /><figcaption>See? Easy peasy.</figcaption></figure><p>Now looking at the contents of this Inspect tool can be intimidating, but let’s soldier forward. Look at the top left portion. It says “Console” doesn’t it?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/487/1*vSAmMD3Gj4jCF5UpYn4-cg.png" /><figcaption>Definitely says “Console” yup…</figcaption></figure><p>Great. Let’s click on it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*LW-uHGp-4nkT8vLgCnhRYg.png" /><figcaption>Skull and crossbones. Big Hacker Energy.</figcaption></figure><p>Excellent. We’re getting somewhere. The picture is cute, but look at the instructions at the bottom. Apparently, there’s an “interesting javascript file” somewhere on this page. Javascript files end in “.js”, so let’s go back to the “Elements” tab and look for some of those.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*-Psl784ozVYP3XNs4WkcIw.png" /><figcaption>The suspect files are in gray.</figcaption></figure><p>So it looks like we’ve got 3 different Javascript files:</p><p>· htb-frontend.min.js</p><p>· inviteapi.min.js</p><p>· calm.js</p><p>Let’s check them one at a time. To do this, go to the “Sources” tab on the top row. It’s right next to the “Console” tab we clicked before.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*dmK5_P_nPkShduwo-bw8Eg.png" /><figcaption>Letters! Wait, that’s not what we’re looking for…</figcaption></figure><p>Your screen will likely look something like this. Click the folder titled “js” to see all of the Javascript files on this page. Then click on the “inviteapi.min.js” file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*fLMcodtQTeUcCmtffrmo_A.png" /><figcaption>What in the crispy, deep-fried hell?</figcaption></figure><p>Clearly, this is very hard to read. To fix this, click on the double curly braces “{}” at the bottom of the window. This will format the .js file in a way that is easy to read.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*d5yTCKLtsEODFGDmLnVd4w.png" /><figcaption>Alexa, play “Amazing Grace”</figcaption></figure><p>Better right? Scroll down to the last line of the code (it should be Line 25) and let’s look at something.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*7Yup_dcSpGjSL43_gvGxKw.png" /><figcaption>Orange AF.</figcaption></figure><p>The note at the top of this code hinted that this code might be obfuscated, meaning that even if you are used to reading Javascript, this will be hard to interpret. Nevertheless, the elements on the right in orange are functions, and one of them is called “makeInviteCode”. This could be useful to us.</p><p>Navigate back to the Console tab and type in “makeInviteCode” next to the blue arrow at the bottom. Once you’ve done that, hit “Enter” on your keyboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*DZWrzLCGnY_291u6LPpgtw.png" /><figcaption>“makeInviteCode” will likely auto-complete for you. Lucky you, right?</figcaption></figure><p>Check out those results. We see a type value of “POST” and a url value reading “/api/invite/how/to/generate”. That could be useful to us, but it requires us to use the command terminal on our own computer. For a Windows machine, type in “cmd.exe” on your search bar and open the “Command Prompt” app. For Mac users, you’ll need to open an application called “Terminal”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*lSbjGcWbtoB9p4J0z_bVFQ.png" /><figcaption>Results of searching “cmd.exe” on Windows 10</figcaption></figure><p>In our terminal window, we’re going to use a command called “curl”. This command allows us to send information to or retrieve information from a server. Further details on this command and how to use it can be found here:</p><p><a href="https://www.tutorialspoint.com/unix_commands/curl.htm">https://www.tutorialspoint.com/unix_commands/curl.htm</a></p><p>In your terminal, you can also type “curl -h” to open the help page. For our purposes, though, we only need to do one simple thing. The type field in the “makeInviteCode” page told us this needs to be a POST command. You can make the curl command POST information to the server by using the “-X” option, followed by the POST argument. After that, you put the target url, which was specified within the url field of the “makeInviteCode” page. Your command should look like this then:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*7EfxFqJezDYZzhlROvdSsA.png" /><figcaption>This is in Windows, but Mac and Linux will look exactly the same.</figcaption></figure><p>Hit enter, and you should see the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*BsMrpvCvzBqzjbx8qIK9tA.png" /><figcaption>Gobbledygook. As we all suspected…</figcaption></figure><p>So what we have here is some data, an encryption type indicated by “enctype”, and a hint. It’s telling us to check the encryption type so we can decrypt the data. In this case, it is ROT13, which is a type of encryption. Don’t worry if your encryption type is BASE64 as the decryption method is basically the same either way.</p><p>If your encryption type is BASE64, go to base64decode.org, and paste from your data field (everything between the quotation marks after the second “data” and before the “enctype”).</p><p>If your encryption type is ROT 13, go to rot13.org, and paste from your data field. It will automatically decrypt it for you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/479/1*ShuexiBtI8MMBje-RQII5w.png" /><figcaption>You love to see it…</figcaption></figure><p>Alright! We’ve decrypted something! Now it’s saying we need to make another post request, but this time to api/invite/generate. So let’s go back to our terminal and run our curl command again, but this time at https://www.hackthebox.eu/api/invite/generate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*Cxur43kDvxFU8LGq_j4FLw.png" /><figcaption>Command should look like this</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*G1jcAPzfyCegjfCY5DV-QQ.png" /><figcaption>Output should be something like this</figcaption></figure><p>So this one is slightly different because it says “encoded”, but it doesn’t give us the encoding type. Fortunately, there is a hint within the code itself. That equals sign (“=”) at the end of the string is indicative of BASE64 encoding. With this in mind, navigate to base64decode.org, paste your string, and receive your prize.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*QZeDbD0JUEEQVqL8DaeSwg.png" /><figcaption>Our Invite Code!</figcaption></figure><p>And there you have it. Plug that invite code into the “Invite Code” field on hackthebox.eu/invite, and you’re in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*MgIn8jkkJD3b__LS9cqHcg.png" /><figcaption>*hacker voice* I’m in…</figcaption></figure><p>I hope this was educational for you. Take notes and tell a friend to give it a whack.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=743826db4926" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>