<?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 Ruchira Jayawardhana on Medium]]></title>
        <description><![CDATA[Stories by Ruchira Jayawardhana on Medium]]></description>
        <link>https://medium.com/@ruchira99.rj?source=rss-f827f387a6ca------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*GJ3dMKqjkBArX18J</url>
            <title>Stories by Ruchira Jayawardhana on Medium</title>
            <link>https://medium.com/@ruchira99.rj?source=rss-f827f387a6ca------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 03:27:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ruchira99.rj/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[Building an ISO/IEC 27001:2022 Toolkit for a Healthcare Laboratory: A Practical Consultant Approach]]></title>
            <link>https://medium.com/@ruchira99.rj/building-an-iso-iec-27001-2022-toolkit-for-a-healthcare-laboratory-a-practical-consultant-approach-a0fa6621f721?source=rss-f827f387a6ca------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0fa6621f721</guid>
            <category><![CDATA[security-awareness]]></category>
            <category><![CDATA[mi]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[healthcare]]></category>
            <category><![CDATA[iso-27001]]></category>
            <dc:creator><![CDATA[Ruchira Jayawardhana]]></dc:creator>
            <pubDate>Tue, 29 Sep 2026 15:19:05 GMT</pubDate>
            <atom:updated>2026-09-29T15:19:05.052Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/547/1*aWWvRA6B7kn7XLcf60gNCA.jpeg" /></figure><p>How risk management, governance, people, technology and continual improvement come together in a healthcare-focused ISMS</p><p>Information security in healthcare is not only about firewalls, antivirus software or encryption. Healthcare organisations depend on information every day to deliver services, communicate results and make operational decisions. If that information becomes unavailable, inaccurate or exposed to unauthorised people, the impact can extend beyond IT and affect patients, employees, business partners and the organisation itself.</p><p>As part of an academic information-security consultancy project, I developed an <strong>ISO/IEC 27001:2022 implementation toolkit for MediCore Diagnostics (Pvt) Ltd</strong>, a fictional diagnostic-laboratory organisation. The purpose of the project was not simply to describe ISO/IEC 27001, but to translate the standard into practical documents, processes, tools and management decisions that an organisation could actually use.</p><p>This article explains the main lessons from designing that toolkit and shows how ISO/IEC 27001 can be approached as a working management system rather than a compliance checklist.</p><h3>Understanding ISO/IEC 27001 as a Management System</h3><p>ISO/IEC 27001:2022 is an international standard that specifies requirements for establishing, implementing, maintaining and continually improving an <strong>Information Security Management System, or ISMS</strong> [1].</p><p>One of the most important lessons from working with the standard is that ISO/IEC 27001 is <strong>not a technical product checklist</strong>.</p><p>It does not simply say that every organisation must purchase the same firewall, install the same antivirus product or use the same security software. Instead, the organisation must understand its own business environment, identify information-security risks, determine appropriate treatment and demonstrate that selected controls are implemented and reviewed.</p><p>For a healthcare organisation, this risk-based approach is particularly useful because different systems have different priorities. A public website, a Laboratory Information System and a backup repository do not have identical security requirements.</p><p>The organisation must therefore understand what it is protecting before deciding how it should be protected.</p><h3>Starting with Context and Scope</h3><p>A successful ISMS begins with understanding the organisation.</p><p>For the MediCore case study, the first stage involved identifying internal and external issues, interested parties and the boundaries of the ISMS.</p><p>The proposed scope included the central data centre, four branch laboratories, the Laboratory Information System, patient portal, billing system and supporting infrastructure.</p><p>This step may sound simple, but scope has a major influence on everything that follows. The risk assessment, asset inventory, controls, audit programme and certification activities all depend on clearly knowing what the ISMS covers.</p><p>A poorly defined scope can create confusion over responsibilities and can leave important systems outside the security-management process.</p><p>ISO/IEC 27001 therefore treats organisational context and scope as fundamental requirements rather than administrative formalities [1].</p><h3>Assets Come Before Risks</h3><p>A key practical lesson was that meaningful risk assessment requires a clear understanding of organisational assets.</p><p>For MediCore, an <strong>Asset Registry</strong> was developed containing systems, information, infrastructure, devices and physical resources.</p><p>Examples included the Laboratory Information System, patient-result records, branch workstations, network infrastructure, backup repositories, identity-management services and the cloud-hosted patient portal.</p><p>Each asset was assigned an owner, classification and confidentiality, integrity and availability priorities.</p><p>This creates accountability.</p><p>If an organisation cannot clearly identify an important information asset and who is responsible for it, managing the associated risk becomes much more difficult.</p><p>The Asset Registry therefore became one of the foundational tools in the toolkit.</p><h3>Moving from Assets to Risk</h3><p>Once assets had been identified, the next step was to examine realistic threats and vulnerabilities.</p><p>For example, the Laboratory Information System could be affected by ransomware. A branch workstation could be exploited because of delayed patching. A courier device could be lost. A patient-portal account could be compromised through stolen credentials.</p><p>For the MediCore case study, risk was evaluated using a simple likelihood-and-impact model:</p><p><strong>Risk Score = Likelihood × Impact</strong></p><p>The scoring method itself was an organisational design decision rather than a fixed ISO requirement. ISO/IEC 27001 requires organisations to establish consistent risk criteria, but it does not mandate one universal numerical matrix [1].</p><p>This is an important distinction when implementing standards. Organisations should not confuse their internal methodology with a requirement explicitly imposed by ISO.</p><p>The resulting Risk Register included inherent risk, existing controls, treatment decisions, control mappings, responsible owners, deadlines and residual risk after treatment.</p><p>That turned the risk assessment from a theoretical exercise into an actionable management tool.</p><h3>The Statement of Applicability Is More Than a Spreadsheet</h3><p>One of the most important ISO/IEC 27001 documents is the <strong>Statement of Applicability, commonly called the SOA</strong>.</p><p>ISO/IEC 27002:2022 provides a reference set of <strong>93 information-security controls</strong> organised into four themes: organisational, people, physical and technological controls [2].</p><p>The MediCore SOA reviewed all 93 Annex A controls and recorded whether each control was applicable, why it was applicable or excluded, its implementation status, responsible owner, related risks and supporting evidence.</p><p>The most important lesson is that the SOA should not be created once and forgotten.</p><p>Technology changes. Suppliers change. Risks change. Legal obligations change. New incidents reveal weaknesses that were not previously visible.</p><p>The SOA should therefore remain a living ISMS document and evolve with the organisation.</p><h3>Security Is Not Only a Technology Problem</h3><p>Another major lesson from the project was the importance of balancing technical controls with <strong>people, physical and organisational controls</strong>.</p><p>Multi-factor authentication, encryption, backups and monitoring are important, but they cannot compensate for every weakness.</p><p>A technically secure system can still be compromised if employees disclose credentials, patient information is left visible at a reception desk, access rights are not removed after employment ends or a supplier handles sensitive information incorrectly.</p><p>For that reason, the MediCore implementation programme also included staff security awareness, confidentiality requirements, physical-access controls, supplier-security procedures, incident reporting and management responsibilities.</p><p>This reflects the broader structure of ISO/IEC 27002:2022, where controls are distributed across organisational, people, physical and technological themes rather than concentrated entirely in IT [2].</p><h3>Healthcare Adds Another Layer of Responsibility</h3><p>Healthcare organisations operate in an environment where information security and privacy are closely connected.</p><p>For a fictional organisation such as MediCore, patient information would require particularly careful handling because confidentiality failures could affect individuals as well as the organisation.</p><p>Sri Lanka’s Personal Data Protection Act provides the country’s legal framework for personal-data protection. Important provisions relating to processing of personal data and controllers/processors are scheduled to commence on <strong>1 January 2027</strong>, making preparation particularly relevant for organisations handling personal information [3].</p><p>An ISMS can support privacy compliance through areas such as access control, encryption, supplier security, incident management, information classification and logging.</p><p>However, ISO/IEC 27001 certification should not be treated as automatic proof of legal compliance. Legal requirements still need to be independently identified and addressed.</p><h3>The ISMS Must Reach the Boardroom</h3><p>A major improvement in the MediCore toolkit was the inclusion of a dedicated <strong>management and boardroom document</strong>.</p><p>Technical teams often explain cybersecurity in terms of vulnerabilities, patches and controls. Board members need a different view.</p><p>They need to understand business risk, financial exposure, required investment, residual risk and decisions that require management authority.</p><p>The MediCore case therefore included an indicative implementation budget, risk-based ROI approach and quarterly KPI dashboard.</p><p>The proposed board dashboard included areas such as vulnerability-remediation performance, MFA coverage, staff-awareness completion, access reviews, backup testing, open audit findings and overdue risk-treatment actions.</p><p>The purpose of these measurements is not simply to create more reports. They allow senior management to see whether the ISMS is actually working and where additional resources or decisions may be required.</p><h3>Certification Is a Milestone, Not the Finish Line</h3><p>One of the easiest mistakes in an ISO/IEC 27001 programme is treating certification as the final objective.</p><p>It is not.</p><p>ISO/IEC 27001 is based on continual improvement. After implementation, the organisation must continue monitoring performance, conducting internal audits, reviewing risks, holding management reviews and addressing nonconformities [1].</p><p>For MediCore, the implementation programme therefore continued beyond control deployment into monitoring, internal auditing, management review and corrective action.</p><p>The planned journey covered approximately 36 weeks from initiation to certification readiness, but the timeline was deliberately treated as a project target rather than an ISO requirement.</p><p>After certification, the ISMS would continue operating as part of normal organisational governance.</p><h3>Using Other Frameworks Alongside ISO/IEC 27001</h3><p>ISO/IEC 27001 does not need to operate in isolation.</p><p>For example, the <strong>NIST Cybersecurity Framework 2.0</strong> can complement an ISMS by providing a simple cybersecurity structure around six functions: <strong>Govern, Identify, Protect, Detect, Respond and Recover</strong> [4]. NIST states that CSF 2.0 can help organisations understand, assess, prioritise and communicate cybersecurity risk. <a href="https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.1299.pdf?utm_source=chatgpt.com">NIST Publications</a></p><p>For a healthcare organisation, additional healthcare-specific standards and guidance may also become relevant depending on its services, accreditation and interoperability requirements.</p><p>The important principle is to avoid treating standards as competing documents when they can support different aspects of the same governance programme.</p><h3>What I Learned from Building the Toolkit</h3><p>Developing the MediCore toolkit demonstrated that ISO/IEC 27001 implementation involves much more than writing policies.</p><p>A practical ISMS connects assets to risks, risks to treatment decisions, treatment decisions to controls, controls to evidence, and evidence to monitoring and management review.</p><p>The Asset Registry identifies what matters.</p><p>The Risk Register explains what could go wrong.</p><p>The Statement of Applicability explains which controls are required and why.</p><p>The Implementation Plan converts those decisions into activities.</p><p>The audit process checks whether they are actually working.</p><p>Management review ensures that senior leadership remains responsible for the system.</p><p>When these elements are connected, ISO/IEC 27001 becomes a functioning management system rather than a collection of separate documents.</p><h3>Conclusion</h3><p>For healthcare organisations, protecting information requires a combination of governance, risk management, technology, physical protection and human awareness.</p><p>ISO/IEC 27001:2022 provides a structured foundation for bringing these areas together.</p><p>The MediCore Diagnostics project demonstrated how the standard can be translated into a practical toolkit containing an Asset Registry, Risk Register, Statement of Applicability, implementation roadmap, operational checklists, management reporting and awareness materials.</p><p>The strongest lesson from the project is simple:</p><p><strong>Information security becomes effective when it is treated as an ongoing organisational process, not a one-time technical project.</strong></p><h3>References</h3><p><strong>[1]</strong> International Organization for Standardization and International Electrotechnical Commission, <em>ISO/IEC 27001:2022 — Information security, cybersecurity and privacy protection — Information security management systems — Requirements</em>, 2022. <a href="https://www.iso.org/standard/27001?utm_source=chatgpt.com">ISO</a></p><p><strong>[2]</strong> International Organization for Standardization and International Electrotechnical Commission, <em>ISO/IEC 27002:2022 — Information security, cybersecurity and privacy protection — Information security controls</em>, 2022.</p><p><strong>[3]</strong> Data Protection Authority of Sri Lanka, <em>Personal Data Protection Act and related implementation instruments</em>, including Extraordinary Gazette №2498/16, 2026.</p><p><strong>[4]</strong> National Institute of Standards and Technology, <em>The NIST Cybersecurity Framework (CSF) 2.0</em>, 2024. <a href="https://www.nist.gov/news-events/news/2024/02/nist-releases-version-20-landmark-cybersecurity-framework?utm_source=chatgpt.com">NIST</a></p><h3>Author Note</h3><p><strong>Ruchira Jayawardhana</strong><br>Cyber Security Undergraduate<br>IE3102 — Enterprise Standards for Information Security</p><p><em>MediCore Diagnostics (Pvt) Ltd is a fictional organisation developed for academic purposes. The implementation decisions, risks, costs and organisational details discussed in this article form part of an academic consultancy case study.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0fa6621f721" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OverTheWire Natas]]></title>
            <link>https://medium.com/@ruchira99.rj/overthewire-natas-23715aa8246c?source=rss-f827f387a6ca------2</link>
            <guid isPermaLink="false">https://medium.com/p/23715aa8246c</guid>
            <dc:creator><![CDATA[Ruchira Jayawardhana]]></dc:creator>
            <pubDate>Sun, 16 Mar 2025 16:44:45 GMT</pubDate>
            <atom:updated>2025-03-16T16:44:45.552Z</atom:updated>
            <content:encoded><![CDATA[<p>Natas teaches the basics of serverside web-security.</p><p>Each level of natas consists of its own website located at <a href="http://natasx.natas.labs.overthewire.org,/"><strong>http://natasX.natas.labs.overthewire.org</strong>,</a> where X is the level number. There is <strong>no SSH login</strong>. To access a level, enter the username for that level (e.g. natas0 for level 0) and its password.</p><p>Each level has access to the password of the next level. Your job is to somehow obtain that next password and level up. <strong>All passwords are also stored in /etc/natas_webpass/</strong>. E.g. the password for natas5 is stored in the file /etc/natas_webpass/natas5 and only readable by natas4 and natas5.</p><h3>Natas Level 0</h3><p><strong><em>URL: </em></strong><a href="http://natas0.natas.labs.overthewire.org/"><strong><em>http://natas0.natas.labs.overthewire.org</em></strong></a></p><p><strong><em>Username: </em></strong><strong><em>natas0</em></strong></p><p><strong><em>Password: </em></strong><strong><em>natas0</em></strong></p><p>🔹 <strong>Solution:</strong></p><ul><li>The login requires basic authentication. The password is visible in the login prompt.</li><li>Use the provided username and password to log in.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/473/0*dj2GawMnc20iNgCX.png" /></figure><ul><li>After logging in, you see a page with text: <em>“You can find the password for the next level on this page.”</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*JjURevjJiSxlV4S2.png" /></figure><ul><li>Then right click on the page to view the source:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*9fDXAeRVH2wjukkA.png" /></figure><ul><li>The password is right the in the comments.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*TYWOZKTk2OiFrqDW.png" /></figure><h3>Natas Level 0 → Level 1</h3><p><strong><em>URL: </em></strong><a href="http://natas1.natas.labs.overthewire.org/"><strong><em>http://natas1.natas.labs.overthewire.org</em></strong></a></p><p><strong><em>Username: </em></strong><strong><em>natas1</em></strong></p><p>🔹 <strong>Solution:</strong></p><ul><li>The login requires basic authentication. The password is visible in the login prompt.</li><li>Use the provided username and password to log in.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/470/0*hm3B9UebKW8vuIU0.png" /></figure><ul><li>The page says: <em>“You can find the password for the next level on this page, but Right-clicking has been blocked!”</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*pRju-qhIU91iVkTC.png" /></figure><ul><li><strong>View Page Source (</strong><strong>Ctrl+U)</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*QtDROVrDyOKuwEAT.png" /></figure><ul><li>Look for comments (&lt;!-- ... --&gt;).</li><li>The password is right the in the comments.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*nD1p-nXdwHQS6Etz.png" /></figure><h3>Natas Level 1 → Level 2</h3><p><strong><em>URL: </em></strong><a href="http://natas2.natas.labs.overthewire.org/"><strong><em>http://natas2.natas.labs.overthewire.org</em></strong></a></p><p><strong><em>Username: </em></strong><strong><em>natas2</em></strong></p><p>🔹 <strong>Solution:</strong></p><ul><li>The login requires basic authentication. The password is visible in the login prompt.</li><li>Use the provided username and password to log in.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/0*zQrWazkEEWmFCIHv.png" /></figure><ul><li>The page says: <em>“There is nothing on this page”</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*hVCV0qf-16kkIiyq.png" /></figure><ul><li><strong>View Page Source (</strong><strong>Ctrl+U)</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*f823HTPIZOXH6OAq.png" /></figure><ul><li>A hidden directory is mentioned: /files/</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/338/0*cqWnGBcgtbanXzgo.png" /></figure><ul><li>Visit <a href="http://natas2.natas.labs.overthewire.org/files/">http://natas2.natas.labs.overthewire.org/files/</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/639/0*an--kp_ovKsLvHSx.png" /></figure><ul><li>Open users.txt, which contains the password.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*TEaaSa3NLqwtBG_1.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/507/0*SSoUSCN2FfCl8UKK.png" /></figure><h3>Natas Level 2 → Level 3</h3><p><strong><em>URL: </em></strong><a href="http://natas3.natas.labs.overthewire.org/"><strong><em>http://natas3.natas.labs.overthewire.org</em></strong></a></p><p><strong><em>Username: </em></strong><strong><em>natas3</em></strong></p><p>🔹 <strong>Solution:</strong></p><ul><li>The login requires basic authentication. The password is visible in the login prompt.</li><li>Use the provided username and password to log in.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/469/0*BgJuI5KbEVf5zsIo.png" /></figure><ul><li>The page says: <em>“There is nothing on this page”</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*QewXJ_6DwHPEamMB.png" /></figure><ul><li><strong>View Page Source (</strong><strong>Ctrl+U)</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*q1NJAzIxOJHaRPFT.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*noT1CYrcenlHHGwj.png" /></figure><ul><li>The robots.txt file looks interesting and well that solves the challenge:</li><li>A hidden directory /s3cr3t/ is mentioned.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*FUdJR6Ojkcv4Ocsd.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/351/0*i2GapqJFW9k3BVRn.png" /></figure><ul><li>Visit <a href="http://natas3.natas.labs.overthewire.org/s3cr3t/">http://natas3.natas.labs.overthewire.org/s3cr3t/</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*qkpzcnYpd9fYdl0x.png" /></figure><ul><li>Open users.txt to get the password.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*z0JD9KoIlwsPNhMP.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/489/0*EF63f-KEtQJNwd1w.png" /></figure><h3>Natas Level 3 → Level 4</h3><p><strong><em>URL: </em></strong><a href="http://natas4.natas.labs.overthewire.org/"><strong><em>http://natas4.natas.labs.overthewire.org</em></strong></a></p><p><strong><em>Username: </em></strong><strong><em>natas4</em></strong></p><p>🔹 <strong>Solution:</strong></p><ul><li>The login requires basic authentication. The password is visible in the login prompt.</li><li>Use the provided username and password to log in.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/485/0*xVCZS2L51kuM_c2b.png" /></figure><ul><li>The page says <em>“Access disallowed. You are visiting from “” while authorized users should come only from “http://natas5.natas.labs.overthewire.org/””</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*Bj-cZNLu6ZUJguGC.png" /></figure><ul><li>When you view the source it gives you a hint to visit the site from a particular page. It was mean a referrer ?</li><li>So i quickly open Burp Suite and change the referrer to <a href="http://natas5.natas.labs.overthewire.org/">http://natas5.natas.labs.overthewire.org/</a></li><li>The Referer header must come from natas4.natas.labs.overthewire.org.</li><li>Modify the header using <strong>cURL</strong> or <strong>Burp Suite</strong>:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*-YSjjdP18wQaf6SJ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*vTByMNSTuKROVsce.png" /></figure><ul><li>And when you Send this modified request,</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*HQSabZApnViWXfg3.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*Dm-9tssJcvBrgZWW.png" /></figure><ul><li>The response contains the password.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/0*l4l6xWRejCZDRTzJ.png" /></figure><h3>Natas Level 4 → Level 5</h3><p><strong><em>URL: </em></strong><a href="http://natas5.natas.labs.overthewire.org/"><strong><em>http://natas5.natas.labs.overthewire.org</em></strong></a></p><p><strong><em>Username: </em></strong><strong><em>natas5</em></strong></p><p>🔹 <strong>Solution:</strong></p><ul><li>The login requires basic authentication. The password is visible in the login prompt.</li><li>Use the provided username and password to log in.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/468/0*TJYwsrECTUN-TbA6.png" /></figure><ul><li>Lets use burp to look at the request. If you notice, although the encoded password is sent over the wire, there is a cookie names ‘loggedin’ is set to ‘0’.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*Er3OIeBK_fj5fUxu.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*EwhjH_0KTgmPwMg2.png" /></figure><ul><li>And when you Send this modified request,</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*MnG5Pj9NencM8Wyz.png" /></figure><ul><li>The response contains the password.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*YUqYR6hqwFEFDF-d.png" /></figure><h3>Natas Level 5 → Level 6</h3><p><strong><em>URL: </em></strong><a href="http://natas6.natas.labs.overthewire.org/"><strong><em>http://natas6.natas.labs.overthewire.org</em></strong></a></p><p><strong><em>Username: </em></strong><strong><em>natas6</em></strong></p><p>🔹 <strong>Solution:</strong></p><ul><li>The login requires basic authentication. The password is visible in the login prompt.</li><li>Use the provided username and password to log in.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/473/0*kSAAxw__9JE9D5gO.png" /></figure><ul><li>The page says,</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*bXHl8H3fRL7TKi91.png" /></figure><ul><li>Once you login you will see an option to view the source code.</li><li>Lets look at the source and see what it reveals.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*pf-GsmR84wce9bzA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*o7qSwnRj9_Nn3yaT.png" /></figure><ul><li>Visit <a href="http://natas6.natas.labs.overthewire.org/includes/secret.inc">http://natas6.natas.labs.overthewire.org/includes/secret.inc</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*lljujhu4bIeGvjDD.png" /></figure><ul><li>Seems like the password might in the secret.inc file and that path seems relative to the current directory. Lets browse to that but that page is empty. Lets check its source and there you go !</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*tZitVOw8aWOkNjWP.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*Ccd4mXXaqNwIfWy5.png" /></figure><ul><li>Using this secret to login we get the creds for next level.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*L_gPsqnjEDEx1HO_.png" /></figure><ul><li>Submit this value in the form to get the password</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*0qTdrXNU-vbbrWRy.png" /></figure><h3>Natas Level 6 → Level 7</h3><p><strong><em>URL: </em></strong><a href="http://natas7.natas.labs.overthewire.org/"><strong><em>http://natas7.natas.labs.overthewire.org</em></strong></a></p><p><strong><em>Username: </em></strong><strong><em>natas7</em></strong></p><p>🔹 <strong>Solution:</strong></p><ul><li>The login requires basic authentication. The password is visible in the login prompt.</li><li>Use the provided username and password to log in.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*w_T3bHhZsKlI0Pyd.png" /></figure><ul><li>The page says,</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*v9sOxA1fTDOYjY6O.png" /></figure><ul><li>Lets look at the page source:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*UE1_2qlNfPy5-mVF.png" /></figure><ul><li>Try visiting /index.php?page=...</li><li>Go to <a href="http://natas7.natas.labs.overthewire.org/?page=%2Fetc%2Fnatas_webpass%2Fnatas8">http://natas7.natas.labs.overthewire.org/?page=/etc/natas_webpass/natas8</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*C4v4R02j0AJGK7k9.png" /></figure><ul><li>Submit this value in the form to get the password</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*GPb8AB1OaWSeuJHn.png" /></figure><h3>Natas Level 7 → Level 8</h3><p><strong><em>URL: </em></strong><a href="http://natas8.natas.labs.overthewire.org/"><strong><em>http://natas8.natas.labs.overthewire.org</em></strong></a></p><p><strong><em>Username: </em></strong><strong><em>natas8</em></strong></p><p>🔹 <strong>Solution:</strong></p><ul><li>The login requires basic authentication. The password is visible in the login prompt.</li><li>Use the provided username and password to log in.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/476/0*E20mfFNJjb6V728d.png" /></figure><ul><li>The page says,</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*DQ1QJsU4EOLEoxYS.png" /></figure><ul><li>Check the <strong>source code</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*4yKJ26NAKxThtKmJ.png" /></figure><ul><li>Looks like it uses php passthrough without any kind of sanitation. Looks like some kind or *nix system.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/342/0*D5cZrktvKH_uo1Xx.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/0*dAywSAGhKn9ydkfQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/307/0*HACyHNekEptmqJjG.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*6hnMRNZXGtNIftxM.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/357/0*slvVfpUdj326ZFns.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*cedCDpC3Ncnq2gcV.png" /></figure><ul><li>Submit this value in the form to get the password</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*3oaoZvcYeWmwLbzT.png" /></figure><h3>Natas Level 8 → Level 9</h3><p><strong><em>URL: </em></strong><a href="http://natas9.natas.labs.overthewire.org/"><strong><em>http://natas9.natas.labs.overthewire.org</em></strong></a></p><p><strong><em>Username: </em></strong><strong><em>natas9</em></strong></p><p>🔹 <strong>Solution:</strong></p><ul><li>The login requires basic authentication. The password is visible in the login prompt.</li><li>Use the provided username and password to log in.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/486/0*Igzx8G55rb62IH5s.png" /></figure><ul><li>The page says,</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*3bwCRhFp6IYFb49T.png" /></figure><ul><li>Lets look at the source code provided:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*8UhWn1gNo-bd685l.png" /></figure><ul><li>Looks like it uses php passthrough without any kind of sanitation. Looks like some kind or *nix system.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*yqj2XNXdgQvDx8oT.png" /></figure><ul><li>Submit this value in the form to get the password</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*h5ErjFGhoTmgBqLF.png" /></figure><h3>Natas Level 9 → Level 10</h3><p><strong><em>URL: </em></strong><a href="http://natas10.natas.labs.overthewire.org/"><strong><em>http://natas10.natas.labs.overthewire.org</em></strong></a></p><p><strong><em>Username: </em></strong><strong><em>natas10</em></strong></p><p>🔹 <strong>Solution:</strong></p><ul><li>The login requires basic authentication. The password is visible in the login prompt.</li><li>Use the provided username and password to log in.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/489/0*nluP_srlCuVhcL6E.png" /></figure><ul><li>The page says,</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*Rx5HrNjeXRORq8oZ.png" /></figure><ul><li>Lets look at the source code provided:</li><li>Looking at the source code of the page looks like the input is validated where some characters are not allowed.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*mOC-DouajsjZuZL1.png" /></figure><ul><li>But we know the location of the credentials from our previous challenge. So lets use grep to find from that directory in addition to dictionary.txt</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*bSMxtQWTyLT8dRjt.png" /></figure><ul><li>And i get the password</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*rOVHT8SL57e2eQWi.png" /></figure><p>The password for <strong>natas11 </strong>is <strong>UJdqkK1pTu6VLt9UHWAgRZz6sVUZ3lEk .</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=23715aa8246c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Over The Wire : Bandit Game]]></title>
            <link>https://medium.com/@ruchira99.rj/over-the-wire-bandit-game-615fbb842c8a?source=rss-f827f387a6ca------2</link>
            <guid isPermaLink="false">https://medium.com/p/615fbb842c8a</guid>
            <dc:creator><![CDATA[Ruchira Jayawardhana]]></dc:creator>
            <pubDate>Sun, 09 Mar 2025 17:36:26 GMT</pubDate>
            <atom:updated>2025-03-09T17:36:26.185Z</atom:updated>
            <content:encoded><![CDATA[<h3>Over The Wire : Bandit Game</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/0*OLk5S-jZlH0xECM-" /></figure><h4><strong>Over The Wire: Bandit</strong> is a <strong>beginner-friendly wargame</strong> designed to teach <strong>Linux command-line skills and basic cybersecurity concepts</strong> through a series of levels.</h4><h3>OverTheWire:Bandit Level 0</h3><h3>Level Goal</h3><p>The goal of this level is for you to log into the game using SSH. The host to which you need to connect is <strong>bandit.labs.overthewire.org</strong>, on port 2220. The username is <strong>bandit0</strong> and the password is <strong>bandit0</strong>. Once logged in, go to the <a href="https://overthewire.org/wargames/bandit/bandit1.html">Level 1</a> page to find out how to beat Level 1.</p><h3>Solution</h3><p>Open Terminal</p><p>To login into Level 0 we have to make use of SSH command.</p><p>To start a SSH session type the command :<br>ssh &lt;username&gt;@&lt;hostname&gt; -p &lt;port&gt; and press Enter</p><ul><li>Username : bandit0</li><li>Hostname : bandit.labs.overthewire.org</li><li>Port : 2220</li><li>Password : bandit0</li></ul><p><strong>Note :</strong> If asked to accept any fingerprint type “yes” and press Enter</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/0*x_6HQ3__0ATSywZ8.png" /></figure><p>When asked for password enter <strong>bandit0 </strong>and press Enter.</p><p>If login was successful you will see an banner that looks as follows :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/667/0*1hh-erFSW19Oognk.png" /></figure><p>To quit the SSH session type exit or use the keyboard shortcut Ctrl + D</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/0*MlpLRiqsUTMt9Yxa.png" /></figure><h3>OverTheWire: Bandit Level 0 → Level 1</h3><h3>Level Goal</h3><p>The password for the next level is stored in a file called <strong>readme</strong> located in the home directory. Use this password to log into bandit1 using SSH. Whenever you find a password for a level, use SSH (on port 2220) to log into that level and continue the game.</p><h3>Commands you may need to solve this level</h3><blockquote><em>ls, cd, cat, file, du, find</em></blockquote><p>&gt; ls -&gt; list directory contents<br>&gt; cd -&gt; change working directory<br>&gt; cat -&gt; concatenate files and print on the standard output<br>&gt; file -&gt; determine file type<br>&gt; du -&gt; estimate file space usage<br>&gt; find -&gt; search for files in a directory hierarchy</p><h3>Solution</h3><p>View the files that are present in the current working directory using the ls command<br><em>(The “pwd” command can be used to view the current working directory)</em></p><p>We see there is an file named readme to view the contents of this file we can use the cat command.</p><p>We have found the password for the next level !!</p><p>To access next level logout of the current session. This can be done by typing exit or use Ctrl + D</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*OCRcI9Gp8isspkhd.png" /></figure><p>Use password found above to login as bandit1 and access next level</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*TaeRolQN_38gJaD9.png" /></figure><h3>OverTheWire: Bandit Level 1 → Level 2</h3><h3>Level Goal</h3><p>The password for the next level is stored in a file called — located in the home directory</p><h3>Commands you may need to solve this level</h3><blockquote><em>ls, cd, cat, file, du, find</em></blockquote><p><strong><em>Note :</em></strong><em> All commands don’t have to be used to complete level</em></p><h3>Solution</h3><p>View the files that are present in the current working directory using the ls command</p><p>We can view the content of file named -using the cat command</p><p><strong>Note :</strong> Directly specifying the filename as shown in the previous level is not going to work as - in Linux refers to Standard Input/ Standard Output (STDIN/ STDOUT). We have to use the concept of redirection or specify the absolute path to the file to access it.</p><p>We have found the password for the next level !!</p><p>To access next level logout of the current session. This can be done by typing exit or use Ctrl + D</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/0*SRplz5l6eiUabxq8.png" /></figure><p>Use password found above of user bandit2 to access next level</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/0*FvkB88YUqWmSnv48.png" /></figure><h3>OverTheWire: Bandit Level 2 → Level 3</h3><h3>Level Goal</h3><p>The password for the next level is stored in a file called <strong>spaces in this filename</strong> located in the home directory</p><h3>Commands you may need to solve this level</h3><blockquote><em>ls, cd, cat, file, du, find</em></blockquote><blockquote><em>&gt; ls -&gt; list directory contents<br>&gt; cd -&gt; change working directory<br>&gt; cat -&gt; concatenate files and print on the standard output<br>&gt; file -&gt; determine file type<br>&gt; du -&gt; estimate file space usage<br>&gt; find -&gt; search for files in a directory hierarchy</em></blockquote><blockquote><strong><em>Note :</em></strong><em> All commands don’t have to be used to complete level</em></blockquote><h3>Solution</h3><p>View the files that are present in the current working directory using the ls command</p><p>View the content of the file named spaces in this filename using the cat command</p><p><strong>Note :</strong> We command directly open this file as there are spaces in the filename. The spaces in the name can be escaped using \ , another approach is to enclosing the filename in &quot;..&quot; (quotes)</p><p><strong>Note :</strong> The name of any file on the system can be auto completed using the Tab key.</p><p>We have found the password for the next level !!</p><p>To access next level logout of the current session. This can be done by typing exit or use Ctrl + D</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/0*BcMsQ_aIv9GT4ZnJ.png" /></figure><p>Use password found above to login as bandit1 and access next level</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/0*xkjuoha4LKLLJFTt.png" /></figure><h3>OverTheWire: Bandit Level 3 → Level 4</h3><h3>Level Goal</h3><blockquote><em>The password for the next level is stored in a hidden file in the </em><strong><em>inhere</em></strong><em> directory.</em></blockquote><h3>Commands you may need to solve this level</h3><blockquote><em>ls, cd, cat, file, du, find</em></blockquote><blockquote><em>&gt; ls -&gt; list directory contents<br>&gt; cd -&gt; change working directory<br>&gt; cat -&gt; concatenate files and print on the standard output<br>&gt; file -&gt; determine file type<br>&gt; du -&gt; estimate file space usage<br>&gt; find -&gt; search for files in a directory hierarchy</em></blockquote><blockquote><strong><em>Note :</em></strong><em> All commands don’t have to be used to complete level</em></blockquote><h3>Solution</h3><p>View the files that are present in the current working directory using the ls command</p><p>Move into the inhere/ directory. This can be done using the cd command</p><p>View files that are in the directory using the ls command. Since we know the file is hidden we have to use the -a flag to view hidden files.</p><p>(For more information on the ls command and its various flags refer to man ls or ls --help )</p><p>View the content of .hidden file using the cat command</p><p>We have found the password for the next level !!</p><p>To access next level logout of the current session. This can be done by typing exit or use Ctrl + D</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*KRk7d6pUfMoAUaYW.png" /></figure><p>Use password found above to login as bandit1 and access next level</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*ztfqpNMQ9_POWPOF.png" /></figure><h3>OverTheWire: Bandit Level 4 → Level 5</h3><h3>Level Goal</h3><blockquote><em>The password for the next level is stored in the only human-readable file in the </em><strong><em>inhere</em></strong><em> directory.<br>Tip: if your terminal is messed up, try the “reset” command.</em></blockquote><h3>Commands you may need to solve this level</h3><blockquote><em>ls, cd, cat, file, du, find</em></blockquote><blockquote><em>&gt; ls -&gt; list directory contents<br>&gt; cd -&gt; change working directory<br>&gt; cat -&gt; concatenate files and print on the standard output<br>&gt; file -&gt; determine file type<br>&gt; du -&gt; estimate file space usage<br>&gt; find -&gt; search for files in a directory hierarchy</em></blockquote><blockquote><strong><em>Note :</em></strong><em> All commands don’t have to be used to complete level</em></blockquote><h3>Solution</h3><p>View the files that are present in the current working directory using the ls command</p><p>Move into the inhere/ directory. This can be done using the cd command</p><p>View files that are in the directory using the ls command</p><p>We know we have to find file who’s content is in Human Readable format. This check can be performed using the file command. File command returns the type of data that is found in the file</p><p><strong>Note :</strong> The * here means search all files in the directory. For more information on file globbing refer the attached reference resources</p><p>View the content of -file07 file using the cat command</p><p>We have found the password for the next level !!</p><p>To access next level logout of the current session. This can be done by typing exit or use Ctrl + D</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*iNI4dqblZLzzBsWr.png" /></figure><p>Use password found above to login as bandit1 and access next level</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*0tckWbvQGhNf3rW8.png" /></figure><h3>OverTheWire: Bandit Level 5 → Level 6</h3><h3>Level Goal</h3><p>The password for the next level is stored in a file somewhere under the <strong>inhere</strong> directory and has all of the following properties:</p><ul><li>human-readable</li><li>1033 bytes in size</li><li>not executable</li></ul><h3>Commands you may need to solve this level</h3><blockquote><em>ls, cd, cat, file, du, find</em></blockquote><blockquote><em>&gt; ls -&gt; list directory contents<br>&gt; cd -&gt; change working directory<br>&gt; cat -&gt; concatenate files and print on the standard output<br>&gt; file -&gt; determine file type<br>&gt; du -&gt; estimate file space usage<br>&gt; find -&gt; search for files in a directory hierarchy</em></blockquote><blockquote><strong><em>Note :</em></strong><em> All commands don’t have to be used to complete level</em></blockquote><h3>Solution</h3><p>View the files that are present in the current working directory</p><p>Move into the inhere/ directory using the cd command</p><p>View files that are in the directory</p><p>To search for the file that we require using the properties that are specified in the question we can make use of the find command.</p><p>(Refer man pages to read more on the various options that can be used along with the find command)</p><h3>Command Explanation</h3><ul><li><strong>. :</strong> Search the current working directory only</li><li><strong>-type f :</strong> Look for files only (Exclude Directories)</li><li><strong>-size 1033c :</strong> Look for files that are exactly 1033 bytes in size (Find uses “c” to represent bytes)</li><li><strong>-not -executable :</strong> Find only non executable files</li><li><strong>-exec file {} + : </strong>Execute the file command on all the results returns by find</li></ul><p><strong>Note :</strong> {} is an placeholder for the location where the names of the files found by find is going to be substituted. The “+” sign is used to terminate the statement</p><p>The pipe (|) operator is used to pass the output of one command as the input of another command</p><p>Not that we have found the file lets view its contents</p><p>We have found the password for the next level !!</p><p>To access next level logout of the current session. This can be done by typing exit or use Ctrl + D</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*PUk-EgNE2hSc93eA.png" /></figure><p>Use password found above to login as bandit1 and access next level</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*KkoUyHlxvOIql1c_.png" /></figure><h3>OverTheWire: Bandit Level 6 → Level 7</h3><h3>Level Goal</h3><p>The password for the next level is stored <strong>somewhere on the server</strong> and has all of the following properties:</p><ul><li>owned by user bandit7</li><li>owned by group bandit6</li><li>33 bytes in size</li></ul><h3>Commands you may need to solve this level</h3><blockquote><em>ls, cd, cat, file, du, find, grep</em></blockquote><blockquote><em>&gt; ls -&gt; list directory contents<br>&gt; cd -&gt; change working directory<br>&gt; cat -&gt; concatenate files and print on the standard output<br>&gt; file -&gt; determine file type<br>&gt; du -&gt; estimate file space usage<br>&gt; find -&gt; search for files in a directory hierarchy</em></blockquote><blockquote><strong><em>Note :</em></strong><em> All commands don’t have to be used to complete level</em></blockquote><h3>Solution</h3><p>Since we don’t know where the file is we will have to search the entire server. We know some properties about the file that we can use to try and locate the file. Similar to the previous level we can use the find command for this task</p><h3>Command Explanation</h3><ul><li><strong>/ :</strong> Search the entire server (/ is the root directory on Linux similar to the C:/ Drive on Windows)</li><li><strong>-type f :</strong> Search only for files (Exclude Directories)</li><li><strong>-user bandit7 :</strong> Search for files which are owned by user bandit7</li><li><strong>-group bandit6 :</strong> Search for files that belongs to the group bandit6</li><li><strong>-size 33c :</strong> Look for files that are exactly 33 bytes in size (Find uses “c” to represent size in bytes)</li></ul><p>This command alone is sufficient to get the result that we are looking for but since we are scanning the entire server, we are going to encounter files that we do not have permission to access, and which are going to show errors.</p><p><em>These errors can be filtered out by sending the error stream denoted by number 2 to </em><em>/dev/null. NULL is a special device on Linux which destroys all that data that is sent to it.</em></p><p>Not that we have found the file lets view its contents</p><p>We have found the password for the next level !!</p><p>To access next level logout of the current session. This can be done by typing exit or use Ctrl + D</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*HBB_rrAwBI4vKkwJ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*dBOJKta7DjJ85HCP.png" /></figure><p>Use password found above to login as bandit1 and access next level</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*PvqF_epp-Bibj5S5.png" /></figure><h3>OverTheWire: Bandit Level 7 → Level 8</h3><h3>Level Goal</h3><p>The password for the next level is stored in the file <strong>data.txt</strong> next to the word <strong>millionth</strong></p><h3>Commands you may need to solve this level</h3><blockquote><em>grep, sort, uniq, strings, base64, tr, tar, gzip, bzip2, xxd</em></blockquote><blockquote><em>&gt; grep -&gt; print lines that match patterns<br>&gt; sort -&gt; sort lines of text files<br>&gt; uniq -&gt; report or omit repeated lines<br>&gt; strings -&gt; print the sequences of printable characters in files<br>&gt; base64 -&gt; base64 encode/decode data and print to standard output<br>&gt; tr -&gt; translate or delete characters<br>&gt; tar -&gt; an archiving utility<br>&gt; gzip -&gt; compress or expand files<br>&gt; bzip2 -&gt; a block-sorting file compressor, v1.0.8<br>&gt; xxd -&gt; make a hexdump or do the reverse.</em></blockquote><p><strong><em>Note :</em></strong><em> All commands don’t have to be used to complete level</em></p><h3>Solution</h3><p>View the contents of the current working directory</p><p>Peek at the data that is present in the file. This can be achieved using the head command</p><p>(The -n flag allows us to specify how many lines to print from start of the file. We can use the tail command to look at the last n lines of a file)</p><p>We know the password is next to the word “millionth” in the file. We can look for this pattern by using the grep command</p><p>We have found the password for the next level !!</p><p>To access next level logout of the current session. This can be done by typing exit or use Ctrl + D</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/589/0*dKQgNqsTIAi-GCCe.png" /></figure><p>Use password found above to login as bandit1 and access next level</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*NWP7XzYu4CwuUmXb.png" /></figure><h3>OverTheWire: Bandit Level 8 → Level 9</h3><h3>Level Goal</h3><p>The password for the next level is stored in the file <strong>data.txt</strong> and is the only line of text that occurs only once</p><h3>Commands you may need to solve this level</h3><blockquote><em>grep, sort, uniq, strings, base64, tr, tar, gzip, bzip2, xxd</em></blockquote><blockquote><em>&gt; grep -&gt; print lines that match patterns<br>&gt; sort -&gt; sort lines of text files<br>&gt; uniq -&gt; report or omit repeated lines<br>&gt; strings -&gt; print the sequences of printable characters in files<br>&gt; base64 -&gt; base64 encode/decode data and print to standard output<br>&gt; tr -&gt; translate or delete characters<br>&gt; tar -&gt; an archiving utility<br>&gt; gzip -&gt; compress or expand files<br>&gt; bzip2 -&gt; a block-sorting file compressor, v1.0.8<br>&gt; xxd -&gt; make a hexdump or do the reverse.</em></blockquote><p><strong><em>Note :</em></strong><em> All commands don’t have to be used to complete level</em></p><h3>Solution</h3><p>View the contents of the current working directory</p><p>Peek at the data that is present in the file. This can be achieved using the head command</p><p>Since we know there are repeating lines in the file. We can use uniq command with the -u flag to print the unique line. Uniq command expects the repeating (similar) lines to be next to each other (adjacent) so we need to sort our data before we can find the unique line.</p><p>For sorting we can use the sort command which will sort the data in the file line wise. Finally we can combine all these commands together into an one liner using the | (pipe) operator</p><p><strong>Note :</strong> The cat command is used to read the data from the file which is then passed as input to the next command in line using pipes</p><p>We have found the password for the next level !!</p><p>To access next level logout of the current session. This can be done by typing exit or use Ctrl + D</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/691/0*oYFt021NVK7TRE1O.png" /></figure><p>Use password found above to login as bandit1 and access next level</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*EHguCBHxbjCgsWw9.png" /></figure><h3>OverTheWire: Bandit Level 9 → Level 10</h3><h3>Level Goal</h3><p>The password for the next level is stored in the file <strong>data.txt</strong> in one of the few human-readable strings, preceded by several ‘=’ characters.</p><h3>Commands you may need to solve this level</h3><blockquote><em>grep, sort, uniq, strings, base64, tr, tar, gzip, bzip2, xxd</em></blockquote><blockquote><em>&gt; grep -&gt; print lines that match patterns<br>&gt; sort -&gt; sort lines of text files<br>&gt; uniq -&gt; report or omit repeated lines<br>&gt; strings -&gt; print the sequences of printable characters in files<br>&gt; base64 -&gt; base64 encode/decode data and print to standard output<br>&gt; tr -&gt; translate or delete characters<br>&gt; tar -&gt; an archiving utility<br>&gt; gzip -&gt; compress or expand files<br>&gt; bzip2 -&gt; a block-sorting file compressor, v1.0.8<br>&gt; xxd -&gt; make a hexdump or do the reverse.</em></blockquote><p><strong><em>Note :</em></strong><em> All commands don’t have to be used to complete level</em></p><h3>Solution</h3><p>View the contents of the current working directory</p><p>Peek at the data that is present in the file. This can be achieved using the head command</p><p>Human readable string in an file can be found using the strings command. The -e flag is used to specify the character encoding. We are assuming the human readable line is ASCII text so we use “s” for the encoding type <em>(Refer attached resources for more information)</em></p><p>We also know that the line with the password starts with a few “=” characters. We can look for this pattern in the file using the grep command. We can combine all these commands into an single line using the | (pipe) operator</p><p><strong>Note :</strong> The cat command is used to read the data from the file which is then passed as input to the next command in line using pipes</p><p>We have found the password for the next level !!</p><p>To access next level logout of the current session. This can be done by typing exit or use Ctrl + D</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*Aa1i_nZ1pwWe2I44.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/0*L08myzKhlQt_Q4-H.png" /></figure><p>Use password found above to login as bandit1 and access next level</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*p5OkK4rlRsdkNXMi.png" /></figure><h3>OverTheWire: Bandit Level 10→ Level 11</h3><h3>Level Goal</h3><p>The password for the next level is stored in the file <strong>data.txt</strong>, which contains base64 encoded data</p><h3>Commands you may need to solve this level</h3><blockquote><em>grep, sort, uniq, strings, base64, tr, tar, gzip, bzip2, xxd</em></blockquote><blockquote><em>&gt; grep -&gt; print lines that match patterns<br>&gt; sort -&gt; sort lines of text files<br>&gt; uniq -&gt; report or omit repeated lines<br>&gt; strings -&gt; print the sequences of printable characters in files<br>&gt; base64 -&gt; base64 encode/decode data and print to standard output<br>&gt; tr -&gt; translate or delete characters<br>&gt; tar -&gt; an archiving utility<br>&gt; gzip -&gt; compress or expand files<br>&gt; bzip2 -&gt; a block-sorting file compressor, v1.0.8<br>&gt; xxd -&gt; make a hexdump or do the reverse.</em></blockquote><p><strong><em>Note :</em></strong><em> All commands don’t have to be used to complete level</em></p><h3>Solution</h3><p>View the contents of the current working directory</p><p>View the data that is present in the file</p><p>Looking at the content it looks like an string of random characters but from the question we know that the data is base64 encoded. We can decode this data using the base64 command that is present on *nix systems. The -d flag is used to decode the data</p><p>We have found the password for the next level !!</p><p>To access next level logout of the current session. This can be done by typing exit or use Ctrl + D</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*WgUB80leUtIEMs4m.png" /></figure><p>Use password found above to login as bandit1 and access next level</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*zg63J7CAcNaSkiPW.png" /></figure><h3>OverTheWire: Bandit Level 11→ Level 12</h3><h3>Level Goal</h3><p>The password for the next level is stored in the file <strong>data.txt</strong>, where all lowercase (a-z) and uppercase (A-Z) letters have been rotated by 13 positions</p><h3>Commands you may need to solve this level</h3><blockquote><em>grep, sort, uniq, strings, base64, tr, tar, gzip, bzip2, xxd</em></blockquote><blockquote><em>&gt; grep -&gt; print lines that match patterns<br>&gt; sort -&gt; sort lines of text files<br>&gt; uniq -&gt; report or omit repeated lines<br>&gt; strings -&gt; print the sequences of printable characters in files<br>&gt; base64 -&gt; base64 encode/decode data and print to standard output<br>&gt; tr -&gt; translate or delete characters<br>&gt; tar -&gt; an archiving utility<br>&gt; gzip -&gt; compress or expand files<br>&gt; bzip2 -&gt; a block-sorting file compressor, v1.0.8<br>&gt; xxd -&gt; make a hexdump or do the reverse.</em></blockquote><p><strong><em>Note :</em></strong><em> All commands don’t have to be used to complete level</em></p><h3>Solution</h3><p>View the contents of the current working directory</p><p>View the data that is present in the file</p><p>We know that the characters in the data are rotated by 13 characters. We can get the characters to its original order using the tr command. The tr command is used to translate/ transform data from one form to another.</p><p>We have found the password for the next level !!</p><p>To access next level logout of the current session. This can be done by typing exit or use Ctrl + D</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*_I8FCM6-_r-Lmw5S.png" /></figure><p>Use password found above to login as bandit1 and access next level</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*UQYIbmoKmQvFDRd1.png" /></figure><h3>OverTheWire: Bandit Level 12→ Level 13</h3><h3>Level Goal</h3><p>The password for the next level is stored in the file <strong>data.txt</strong>, which is a hexdump of a file that has been repeatedly compressed. For this level it may be useful to create a directory under /tmp in which you can work. Use mkdir with a hard to guess directory name. Or better, use the command “mktemp -d”. Then copy the datafile using cp, and rename it using mv (read the manpages!)</p><h3>Commands you may need to solve this level</h3><blockquote><em>grep, sort, uniq, strings, base64, tr, tar, gzip, bzip2, xxd, mkdir, cp, mv, file</em></blockquote><blockquote><em>&gt; grep -&gt; print lines that match patterns<br>&gt; sort -&gt; sort lines of text files<br>&gt; uniq -&gt; report or omit repeated lines<br>&gt; strings -&gt; print the sequences of printable characters in files<br>&gt; base64 -&gt; base64 encode/decode data and print to standard output<br>&gt; tr -&gt; translate or delete characters<br>&gt; tar -&gt; an archiving utility<br>&gt; gzip -&gt; compress or expand files<br>&gt; bzip2 -&gt; a block-sorting file compressor, v1.0.8<br>&gt; xxd -&gt; make a hexdump or do the reverse.<br>&gt; mkdir -&gt; make directories<br>&gt; cp -&gt; copy files and directories<br>&gt; mv -&gt; move (rename) files<br>&gt; file -&gt; determine file type</em></blockquote><p><strong><em>Note :</em></strong><em> All commands don’t have to be used to complete level</em></p><h3>Solution</h3><p>You started by listing the files (ls) and viewing data.txt using cat data.txt.</p><p>Instead of readable text, you saw a <strong>hex dump</strong> (binary data in hexadecimal format).</p><p>You used the xxd -r data.txt command to reverse the hex dump into its original binary form (data2.txt).</p><p>You then checked its type using file data2.txt, which identified it as a <strong>compressed file</strong>.</p><p>The file was compressed multiple times using different compression formats (gzip, bzip2, tar).</p><p>You used the following commands repeatedly to extract and rename files:</p><ul><li>mv data2.txt data2.bin.gz → Renamed the file for proper extraction.</li><li>gunzip data2.bin.gz → Decompressed a <strong>gzip</strong> file.</li><li>mv data2.bin data2.bin.bz2 → Renamed the extracted file.</li><li>bunzip2 data2.bin.bz2 → Decompressed a <strong>bzip2</strong> file.</li><li>mv data4.bin data4.bin.gz → Again, renamed and extracted another compressed file.</li><li>gunzip data4.bin.gz → Extracted <strong>gzip</strong> file.</li><li>tar -xf data5.bin.tar → Extracted <strong>tar</strong> archive.</li></ul><p>This process repeated several times as the file contained <strong>nested</strong> compressed archives.</p><p>After multiple extractions, you reached a readable data.txt file.</p><p>Using cat data9.bin, you finally displayed the <strong>password</strong>:</p><p>We have found the password for the next level !!</p><p>To access next level logout of the current session. This can be done by typing exit or use Ctrl + D</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*ZBkwa1mbT1Ac1UfJ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*V7iDFa2OU8BvOaKf.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*5vErgnVJBPL98CtR.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*bB-u7Qv4mYwWvo80.png" /></figure><p>Use password found above to login as bandit1 and access next level</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*_en1aK0JNDNa19Uu.png" /></figure><h3>OverTheWire: Bandit Level 13→ Level 14</h3><h3>Level Goal</h3><p>The password for the next level is stored in <strong>/etc/bandit_pass/bandit14 and can only be read by user bandit14</strong>. For this level, you don’t get the next password, but you get a private SSH key that can be used to log into the next level. <strong>Note:</strong> <strong>localhost</strong> is a hostname that refers to the machine you are working on</p><h3>Commands you may need to solve this level</h3><blockquote><em>ssh, telnet, nc, openssl, s_client, nmap</em></blockquote><h3>Solution</h3><p>View the contents of the current working directory</p><p>We have an SSH private key. We can use the SSH command with the -i flag to use the private key</p><p>(If asked for fingerprint confirmation types “yes”)</p><p>We have logged in as bandit14 we can confirm this by looking at your prompt</p><p>Get the password for the current user</p><p>We have found the password for the next level !!</p><p>To access next level logout of the current session. This can be done by typing exit or use Ctrl + D</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*lMD_wqaUL6bZM7OV.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/539/0*pU5IFyhavjFkaHZc.png" /></figure><p>Use password found above to login as bandit1 and access next level</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*5stXDwwhlopqOZSi.png" /></figure><h3>OverTheWire: Bandit Level 14→ Level 15</h3><h3>Level Goal</h3><p>The password for the next level can be retrieved by submitting the password of the current level to <strong>port 30000 on localhost</strong>.</p><h3>Commands you may need to solve this level</h3><blockquote><em>ssh, telnet, nc, openssl, s_client, nmap</em></blockquote><blockquote><em>&gt; ssh -&gt; OpenSSH remote login client</em></blockquote><blockquote><em>&gt; telnet -&gt; user interface to the TELNET protocol</em></blockquote><blockquote><em>&gt; nc -&gt; TCP/IP swiss army knife</em></blockquote><blockquote><em>&gt; openssl -&gt; OpenSSL command line tool</em></blockquote><blockquote><em>&gt; s_client -&gt; SSL/TLS client program</em></blockquote><blockquote><em>&gt; nmap -&gt; Network exploration tool and security / port scanner</em></blockquote><p><strong><em>Note :</em></strong><em> All commands don’t have to be used to complete level</em></p><h3>Solution</h3><p>From the question we know that there is an service that is running on port 30,000. We can try to connect to the service using netcat command</p><p><em>(For the syntax of netcat and additional usage refer the attached resources)</em></p><p><strong>Note : </strong>nc is an alias for the netcat command and can be used interchangeably</p><p>When we enter an random value we see that we get an message saying the pasword is incorrect</p><p>We know that the current level password is stored in /etc/band_pass/bandit14 we can try to provide that as an value to the service and see if we get the password for the next level</p><p>We have found the password for the next level !!</p><p>To access next level logout of the current session. This can be done by typing exit or use Ctrl + D</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/509/0*btD2ggpmUaGvgfeM.png" /></figure><p>Use password found above to login as bandit1 and access next level</p><h3><a href="https://overthewire.org/wargames/bandit/bandit11.html">Level 15 → Level 16</a></h3><h3>Level Goal</h3><p>The password for the next level can be retrieved by submitting the password of the current level to <strong>port 30001 on localhost</strong> using SSL/TLS encryption.</p><p><strong>Helpful note: Getting “DONE”, “RENEGOTIATING” or “KEYUPDATE”? Read the “CONNECTED COMMANDS” section in the manpage.</strong></p><h3>Commands you may need to solve this level</h3><p>ssh, telnet, nc, ncat, socat, openssl, s_client, nmap, netstat, ss</p><p>Log into this level using new password and connect to server using ssh bandit15@bandit.labs.overthewire.org -p 2220 this command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*n5sc9KFQ_G3sx6N9.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=615fbb842c8a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>