<?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 Crowx01 on Medium]]></title>
        <description><![CDATA[Stories by Crowx01 on Medium]]></description>
        <link>https://medium.com/@mohamed.yosry558?source=rss-052e7fb82834------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*QyjHEgL_4cZbl7ayxQuf-Q.jpeg</url>
            <title>Stories by Crowx01 on Medium</title>
            <link>https://medium.com/@mohamed.yosry558?source=rss-052e7fb82834------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 11:52:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mohamed.yosry558/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[Token-Smart Pentesting: How I Hooked Up a Multi-Model AI Router Inside Claude Code to Boost…]]></title>
            <link>https://medium.com/@mohamed.yosry558/token-smart-pentesting-how-i-hooked-up-a-multi-model-ai-router-inside-claude-code-to-boost-ddb7ccdf2674?source=rss-052e7fb82834------2</link>
            <guid isPermaLink="false">https://medium.com/p/ddb7ccdf2674</guid>
            <dc:creator><![CDATA[Crowx01]]></dc:creator>
            <pubDate>Fri, 25 Sep 2026 15:51:01 GMT</pubDate>
            <atom:updated>2026-09-25T15:51:01.531Z</atom:updated>
            <content:encoded><![CDATA[<h3>Token-Smart Pentesting: How I Hooked Up a Multi-Model AI Router Inside Claude Code to Boost Bug-Bounty Reports</h3><p><em>How I use multiple AI models for bulk processing while keeping Claude focused on the decisions that actually matter.</em></p><h3>The Token-Thirst of Modern Pentesting</h3><p>The first time I let Claude Code run a full bug-bounty workflow end to end, I ran into an obvious problem.</p><p>Claude was doing exactly what I wanted: reading large JavaScript bundles, mapping API surfaces, analyzing responses, reasoning about vulnerabilities, and eventually writing reports.</p><p>But the context filled up <strong>fast</strong>.</p><p>Claude is an excellent decision-maker, but using an expensive reasoning model to ingest megabytes of JavaScript or repeatedly summarize raw logs felt like paying a senior security consultant to run a photocopier.</p><p>That led to a simple question:</p><blockquote><strong><em>What if I offloaded the boring, high-volume work to cheaper or free models and reserved Claude for the work that actually requires judgment?</em></strong></blockquote><p>So I built <strong>PAL</strong>, a multi-model router based on a fork of the zen-mcp-server project.</p><p>PAL sits alongside Claude Code as a small control plane. It receives delegated tasks, selects an appropriate model, sends the task out, and returns the result to Claude.</p><p>The goal isn’t to replace Claude.</p><p>It’s to make Claude’s context <strong>more valuable</strong>.</p><h3>The Core Architecture: Claude Code as the Orchestrator</h3><p>The architecture is intentionally asymmetric.</p><p>Claude Code remains the primary decision-maker. PAL handles delegated workloads, but Claude remains responsible for the security reasoning and final output.</p><p>The basic flow looks like this:</p><pre>                         ┌─────────────────────┐<br>                         │     Claude Code     │<br>                         │    Primary Agent    │<br>                         └──────────┬──────────┘<br>                                    │<br>                            Delegated task<br>                                    │<br>                                    ▼<br>                         ┌─────────────────────┐<br>                         │        PAL          │<br>                         │    Model Router     │<br>                         └──────────┬──────────┘<br>                                    │<br>             ┌──────────────────────┼──────────────────────┐<br>             │                      │                      │<br>             ▼                      ▼                      ▼<br>        ┌─────────┐            ┌─────────┐            ┌─────────┐<br>        │  Groq   │            │Nemotron │            │ Gemini  │<br>        │ Writing │            │ 1M ctx  │            │Flash/Pro│<br>        └─────────┘            └─────────┘            └─────────┘</pre><p>Claude stays responsible for:</p><ul><li>Interpreting my request and breaking it into sub-tasks.</li><li>Sequencing tools such as recon utilities, Burp, and custom scripts.</li><li>Reviewing important tool output.</li><li>Making exploitation decisions.</li><li>Assessing severity and CVSS.</li><li>Enforcing safety boundaries.</li><li>Gathering final evidence.</li><li>Producing the final report.</li></ul><p>Everything that doesn’t require that level of reasoning is a candidate for delegation.</p><h3>PAL: The Multi-Model Router</h3><p>PAL runs as an MCP server alongside Claude Code.</p><p>When Claude identifies a task that doesn’t need its full reasoning capacity, it delegates the task to PAL.</p><p>PAL then routes the task based on the job rather than blindly sending everything to the same model.</p><p>My current routing setup looks roughly like this:</p><p>ModelPrimary role<strong>Groq / GPT-OSS-120B</strong>Report writing, explanations, skeptical validation<strong>NVIDIA Nemotron</strong>Large-file ingestion and long-context analysis<strong>OpenRouter </strong><strong>or-free</strong>General-purpose fallback<strong>Gemini Flash</strong>Fast structured extraction<strong>Gemini 3 Pro</strong>Deep reasoning and adversarial review</p><h3>Groq: The Report Writer</h3><p>Groq is extremely useful for high-volume generation.</p><p>I use it for things like:</p><ul><li>Turning technical findings into readable reports.</li><li>Explaining vulnerabilities.</li><li>Drafting remediation advice.</li><li>Challenging assumptions.</li><li>Producing structured text from already-processed evidence.</li></ul><p>The catch is the rate limit.</p><p>My current setup has an approximately <strong>8,000 tokens-per-minute</strong> ceiling, which becomes important when sending large prompts.</p><p>That constraint actually influenced how I designed the pipeline.</p><h3>Nemotron: The Heavy Lifter</h3><p>Nemotron’s huge context window makes it useful for jobs that would otherwise consume a significant portion of Claude’s context.</p><p>For example:</p><pre>Large JS bundle<br>        ↓<br>     Nemotron<br>        ↓<br>Extract:<br>  - endpoints<br>  - API paths<br>  - parameters<br>  - interesting strings<br>  - authentication references<br>        ↓<br>Distilled result<br>        ↓<br>Claude</pre><p>Instead of giving Claude a multi-megabyte JavaScript bundle and asking it to find everything interesting, I can first have Nemotron perform the bulk extraction.</p><p>Claude then gets the <strong>interesting parts</strong> rather than the entire haystack.</p><h3>Gemini Flash: Fast Structured Extraction</h3><p>Flash is useful when the task is mechanical and well-defined.</p><p>For example:</p><blockquote><em>“Extract every </em><em>Set-Cookie header from this HTTP output.&quot;</em></blockquote><p>Or:</p><blockquote><em>“List every API endpoint found in this OpenAPI specification.”</em></blockquote><p>These aren’t necessarily tasks where I want to spend expensive reasoning tokens.</p><p>They’re extraction jobs.</p><p>Flash handles them quickly, with or-free available as a fallback when rate limits get in the way.</p><h3>Gemini Pro: The Sparring Partner</h3><p>The most interesting role is probably the opposite of bulk processing.</p><p>Sometimes I don’t want another model to <em>write</em> something.</p><p>I want it to <strong>attack the reasoning</strong>.</p><p>For example:</p><blockquote><em>“Here is the evidence and the proposed severity. Try to prove that this severity is wrong.”</em></blockquote><p>Or:</p><blockquote><em>“Does this sequence of requests actually demonstrate account takeover, or am I assuming a missing step?”</em></blockquote><p>That’s where a stronger reasoning model becomes useful.</p><p>Claude produces the reasoning.</p><p>Another model tries to break it.</p><p>That is much more useful than simply asking five models to agree with each other.</p><h3>SessionStart Hooks: Automatically Loading the Toolbox</h3><p>Another part of the system happens before the actual testing begins.</p><p>Every Claude Code session triggers a SessionStart hook that loads three core skills:</p><h3>1. caveman</h3><p>A prose-compression style designed to reduce unnecessary narration while leaving commands, code, and evidence untouched.</p><p>The goal is simple:</p><p><strong>Less narration. More useful context.</strong></p><h3>2. pentesting-agent</h3><p>Methodology playbooks covering areas such as:</p><ul><li>Reconnaissance</li><li>Enumeration</li><li>Exploitation</li><li>Validation</li><li>Reporting</li></ul><h3>3. validator</h3><p>A skeptical QA layer that reviews findings for things like:</p><ul><li>False positives</li><li>Unsupported claims</li><li>Missing evidence</li><li>Reproducibility problems</li><li>Incorrect assumptions</li></ul><p>I also have 40+ vulnerability-specific skills covering areas such as XSS, IDOR, SSRF, SQL injection, and other vulnerability classes.</p><p>Those are loaded on demand rather than consuming the base context every time.</p><p>This is essentially <strong>lazy loading for security methodology</strong>.</p><h3>The UserPromptSubmit Hook</h3><p>There is another important hook.</p><p>Every time I submit a prompt, a UserPromptSubmit hook reasserts the <strong>delegate-first</strong> rule.</p><p>Why?</p><p>Because as the conversation grows, agents can gradually start doing everything themselves.</p><p>The routing discipline can degrade.</p><p>The hook essentially reminds the system:</p><blockquote><em>If this task can be safely and reliably delegated, delegate it.</em></blockquote><p>That sounds trivial, but it makes a difference in long-running sessions.</p><h3>The “Delegate-First” Economics</h3><p>The main idea behind PAL isn’t simply “use free AI.”</p><p>It’s:</p><blockquote><strong><em>Spend high-value context on high-value decisions.</em></strong></blockquote><p>Consider a large JavaScript bundle.</p><p>There are several possible approaches.</p><h3>Approach 1</h3><p>Give the entire bundle to Claude.</p><pre>JS bundle<br>   ↓<br>Claude<br>   ↓<br>Analysis</pre><p>This works, but Claude’s context is now occupied by raw material.</p><h3>Approach 2</h3><p>Delegate the ingestion.</p><pre>JS bundle<br>   ↓<br>Nemotron<br>   ↓<br>Endpoints / parameters / interesting strings<br>   ↓<br>Claude<br>   ↓<br>Security analysis</pre><p>Now Claude receives information that is already structured around the task.</p><p>The distinction is important.</p><p>I’m not asking a weaker model to decide whether something is exploitable.</p><p>I’m asking it to perform a task like:</p><blockquote><em>“Extract these 300 API endpoints.”</em></blockquote><p>Claude can then decide which of those endpoints actually deserve attention.</p><h3>A Real Constraint: Token Limits</h3><p>I don’t track exact per-finding token metrics, so I don’t want to manufacture some impressive “I reduced token usage by 73%” number.</p><p>The practical constraints are much easier to demonstrate.</p><p>For example, I attempted to send four finding files in a single Groq request.</p><p>The combined payload was approximately:</p><p><strong>23,628 tokens</strong></p><p>The request immediately ran into the roughly <strong>8,000 TPM</strong> limitation.</p><p>The solution wasn’t complicated.</p><p>I split the work into isolated per-finding calls.</p><p>Instead of:</p><pre>Finding 1 ─┐<br>Finding 2 ─┤<br>Finding 3 ─┼──&gt; Groq<br>Finding 4 ─┘</pre><p>I moved to:</p><pre>Finding 1 ──&gt; Groq<br>Finding 2 ──&gt; Groq<br>Finding 3 ──&gt; Groq<br>Finding 4 ──&gt; Groq</pre><p>That constraint ended up influencing the architecture itself.</p><p>The router doesn’t just choose <em>which</em> model to use.</p><p>The orchestration layer also has to respect the model’s operational limits.</p><h3>Delegation Creates a New Problem: Evidence Drift</h3><p>There is a catch.</p><p>AI models are very good at summarizing technical information.</p><p>They’re also very good at accidentally changing it.</p><p>That’s dangerous in penetration testing.</p><p>Consider a hostname:</p><pre>api-prod.example.com</pre><p>A model might accidentally write:</p><pre>api.example.com</pre><p>Or an HTTP request containing:</p><pre>Authorization: Bearer &lt;token&gt;</pre><p>might be reformatted incorrectly.</p><p>Or an exploit payload might be subtly modified.</p><p>The resulting report can still <em>look</em> completely correct.</p><p>But the reproduction command no longer works.</p><p>That’s unacceptable.</p><p>So I designed the validation pipeline around one rule:</p><blockquote><strong><em>Delegate the prose. Never delegate the evidence.</em></strong></blockquote><h3>The 4-Step Validation Pipeline</h3><p>Every confirmed vulnerability goes through a structured validation loop.</p><h3>1. Skeptical QA</h3><p>The validator skill reviews the finding.</p><p>It looks for:</p><ul><li>False positives</li><li>Missing evidence</li><li>Unsupported conclusions</li><li>Reproducibility problems</li><li>Incorrect assumptions</li></ul><p>The objective isn’t to make the finding sound better.</p><p>It’s to try to kill it.</p><h3>2. Close the Gaps</h3><p>If the validator identifies a missing control or unanswered question, I perform the additional test.</p><p>For example:</p><ul><li>Test an alternative host header.</li><li>Add a control request.</li><li>Verify the behavior without authentication.</li><li>Confirm whether the behavior is actually user-specific.</li><li>Reproduce the result independently.</li></ul><p>This is where the system goes back to the actual target and gathers more evidence.</p><h3>3. Adversarial Debate</h3><p>The draft is then passed to a stronger model.</p><p>Usually Gemini Pro, with Groq as a fallback.</p><p>The instruction is essentially:</p><blockquote><strong><em>Try to prove this finding is weaker than I claim.</em></strong></blockquote><p>Questions include:</p><ul><li>Is the severity justified?</li><li>Is the exploit chain complete?</li><li>Is the impact demonstrated?</li><li>Is there an alternative explanation?</li><li>Is a required prerequisite missing?</li></ul><p>Agreement isn’t the objective.</p><p>Finding weaknesses is.</p><h3>4. Synthesize and Write</h3><p>Only after the finding survives validation does the system generate the final prose.</p><p>Groq handles much of the writing.</p><p>The final output is then compared against the original evidence.</p><p>The model is allowed to improve the explanation.</p><p>It is <strong>not</strong> allowed to rewrite reality.</p><h3>A Real-World Example</h3><p>This architecture caught a problem that would have been easy to miss during report generation.</p><p>During a recon pass, Groq generated a report for an unauthenticated WebSocket channel on an active target.</p><p>The technical conclusion was correct.</p><p>But two details were wrong.</p><h3>Error #1: Missing WebSocket handshake query string</h3><p>The generated curl reproduction command omitted part of the handshake query string.</p><h3>Error #2: Wrong environment</h3><p>A production hostname was incorrectly described as a staging host.</p><p>Both errors were silent.</p><p>The report looked perfectly reasonable.</p><p>But because I preserve the original evidence byte-for-byte and compare the generated report against it, both mistakes were caught before submission.</p><p>I corrected the commands without having to rewrite the entire report.</p><p>Without that validation step, the report could have reached the triager with broken reproduction instructions.</p><p>That experience reinforced the most important design principle in the system:</p><blockquote><strong><em>The model can rewrite the explanation. It cannot rewrite the evidence.</em></strong></blockquote><h3>Where the System Still Breaks</h3><p>The architecture works, but it isn’t magic.</p><p>There are several failure modes.</p><h3>Free-Tier Rate Limits</h3><p>Free models are useful until they’re not.</p><p>An 8,000-token-per-minute limit can turn a simple report-generation task into an orchestration problem.</p><p>Large requests have to be split.</p><p>Retries have to be handled.</p><p>Fallback models need to exist.</p><h3>Evidence Drift</h3><p>This is probably the most important problem.</p><p>Models can alter:</p><ul><li>Hostnames</li><li>URLs</li><li>Headers</li><li>Tokens</li><li>Parameters</li><li>Payloads</li><li>Commands</li><li>Environment names</li></ul><p>Any delegated artifact that contains exact technical evidence needs verification.</p><h3>More Moving Parts</h3><p>The system now contains:</p><ul><li>Claude Code</li><li>PAL</li><li>MCP configuration</li><li>Routing rules</li><li>Hook scripts</li><li>Skills</li><li>Multiple providers</li><li>Fallback logic</li></ul><p>Every additional component introduces another possible failure point.</p><p>A dead endpoint or broken hook can silently stop delegation.</p><p>That means the infrastructure itself needs maintenance.</p><h3>Authorization Still Comes First</h3><p>The system is designed for <strong>authorized security testing only</strong>.</p><p>That means bug-bounty programs within their defined scope, systems I have permission to test, and other explicitly authorized environments.</p><p>Automation makes it easier to perform security testing at scale.</p><p>It does not make unauthorized testing acceptable.</p><p>The more capable the automation becomes, the more important scope enforcement becomes.</p><h3>Token-Smart, Not Token-Cheap</h3><p>The interesting lesson from this project isn’t that you can connect several free models together.</p><p>It’s that <strong>different models have different economic and technical strengths</strong>.</p><p>Claude doesn’t need to read every byte of every file.</p><p>Nemotron doesn’t need to make the final security decision.</p><p>Flash doesn’t need to determine whether an exploit is real.</p><p>Groq doesn’t need to decide CVSS severity.</p><p>And Gemini Pro doesn’t need to write every paragraph.</p><p>Each model can do the job it’s best suited for.</p><p>The resulting architecture looks less like:</p><pre>One AI does everything</pre><p>and more like:</p><pre>                 ┌──────────────────┐<br>                 │   Claude Code    │<br>                 │   Orchestrator   │<br>                 └────────┬─────────┘<br>                          │<br>                   ┌──────▼──────┐<br>                   │     PAL     │<br>                   │    Router   │<br>                   └──────┬──────┘<br>                          │<br>        ┌─────────────────┼─────────────────┐<br>        │                 │                 │<br>        ▼                 ▼                 ▼<br>   Large-context      Fast extraction   Report writing<br>     analysis             │                 │<br>        │                 │                 │<br>    Nemotron          Gemini Flash         Groq<br>        │<br>        └──────────────┐<br>                       ▼<br>                 Claude reviews<br>                       │<br>                       ▼<br>                Adversarial QA<br>                       │<br>                       ▼<br>                 Final report</pre><p>The objective isn’t to make every task cheaper.</p><p>It’s to make sure the <strong>expensive reasoning happens where it provides the most value</strong>.</p><p>For pentesting, that means keeping Claude focused on things like attack-surface analysis, exploit reasoning, validation, and severity assessment instead of spending its context budget parsing raw files.</p><p>That’s what I mean by <strong>token-smart pentesting</strong>.</p><p>Not fewer tokens at any cost.</p><p><strong>Better tokens, spent on better decisions.</strong></p><h3>What’s Next?</h3><p>The next step is making the router more adaptive.</p><p>Instead of relying entirely on static rules such as:</p><pre>large file → Nemotron<br>writing → Groq<br>structured extraction → Flash<br>deep reasoning → Pro</pre><p>I’d like PAL to consider additional signals:</p><ul><li>Input size</li><li>Task complexity</li><li>Required context length</li><li>Current provider rate limits</li><li>Expected output size</li><li>Previous model performance</li><li>Whether the task contains exact evidence</li><li>Whether the result requires deterministic extraction</li></ul><p>That moves the system closer to an actual <strong>task-aware model scheduler</strong> rather than a simple model switch.</p><p>And that’s probably where multi-model security agents become much more interesting.</p><p><strong>Tags:</strong> Bug Bounty · Penetration Testing · AI · Claude Code · MCP · Cybersecurity · AI Agents</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ddb7ccdf2674" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Security Recommendations Must Respect Business Reality]]></title>
            <link>https://medium.com/@mohamed.yosry558/security-recommendations-must-respect-business-reality-a62d5cbf88a9?source=rss-052e7fb82834------2</link>
            <guid isPermaLink="false">https://medium.com/p/a62d5cbf88a9</guid>
            <dc:creator><![CDATA[Crowx01]]></dc:creator>
            <pubDate>Mon, 15 Jun 2026 13:02:04 GMT</pubDate>
            <atom:updated>2026-06-15T13:02:04.054Z</atom:updated>
            <content:encoded><![CDATA[<p>One of the most common mistakes in network penetration testing is treating every finding as if the environment were built yesterday.</p><p>Many consultants discover a vulnerability, compare it against a security benchmark, and immediately recommend the textbook fix without understanding why the technology exists in the first place.</p><p>Enterprise environments are rarely that simple.</p><p>Organizations depend on legacy systems, proprietary software, industrial equipment, medical devices, manufacturing controllers, and business-critical applications that cannot be upgraded or replaced overnight. In some cases, replacing a vulnerable asset costs hundreds of thousands of dollars or forces a shutdown of critical operations.</p><p>As penetration testers, our job is not simply to identify weaknesses. Our job is to help organizations reduce risk while preserving business functionality.</p><p>A finding is only half the story. The recommendation matters just as much.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*K7AWXrq0vo9uY9if.jpg" /><figcaption>Best Practices Applied to a Network Arch</figcaption></figure><h3>Case Study 1: The Telnet Dilemma</h3><p>During a network penetration test, an Nmap scan reveals an open Telnet service on TCP port 23.</p><p>A junior consultant immediately writes:</p><blockquote><strong><em>Disable Telnet and migrate to SSH.</em></strong></blockquote><p>At first glance, this recommendation seems correct. Telnet transmits all data, including credentials, in plaintext. Any attacker with access to the same network segment can capture the full session with a simple packet capture tool. There is no argument against replacing it where possible.</p><p>However, after performing banner grabbing and device identification, it turns out the service belongs to an older network switch, industrial controller, or embedded management appliance that simply does not support SSH. The vendor stopped releasing updates years ago and the device has no firmware path to add encryption support.</p><p>The recommendation now creates a bigger problem. If the client disables Telnet, they lose their only supported remote administration method. The issue stops being technical and becomes operational.</p><p>A better approach is to understand the business constraint first, then design compensating controls around it.</p><p>Instead of disabling Telnet entirely:</p><ul><li>Move the asset into a dedicated management VLAN, isolated from user-facing segments.</li><li>Restrict Telnet access to specific authorized administration workstations through firewall ACLs.</li><li>Implement centralized authentication through RADIUS or TACACS+ where the device supports it.</li><li>Require administrators to authenticate through a hardened jump server before reaching the device.</li><li>Log all Telnet sessions centrally using a syslog server and alert on access outside normal hours or from unexpected sources.</li><li>Consider out-of-band management through a dedicated console server if persistent remote access must be maintained.</li></ul><p>The goal is not to eliminate the risk entirely. The goal is to reduce the likelihood of exploitation to an acceptable level while keeping the system functional.</p><h3>Case Study 2: Legacy Password Limitations</h3><p>Many older devices lack modern authentication controls.</p><p>Some do not support password complexity requirements. Others have no support for account lockout, password expiration, session timeouts, or multi-factor authentication. This is common in older network appliances, industrial control systems, and embedded devices built before modern security requirements existed.</p><p>The textbook recommendation is:</p><blockquote><strong><em>Enforce strong password policies and enable multi-factor authentication.</em></strong></blockquote><p>But what if the device simply cannot support it?</p><p>Shutting down a business-critical asset over a password limitation is rarely realistic.</p><p>The right approach is to push the security controls up to the surrounding infrastructure rather than forcing them onto a system that cannot support them.</p><p>Practical options include:</p><ul><li>Integrate authentication with Active Directory or LDAP where the device allows external authentication.</li><li>Place all administrative access behind an MFA-protected jump server or bastion host. Even if the device itself does not support MFA, the path to reach it does.</li><li>Use a Privileged Access Management (PAM) solution such as CyberArk, BeyondTrust, or Delinea to manage, rotate, and audit credentials on the device’s behalf.</li><li>Store credentials in a secrets management vault and enforce check-out procedures so that no one holds persistent knowledge of the password.</li><li>Enable centralized logging of all authentication events and alert on failed login attempts or access outside normal working hours.</li></ul><p>The device still has weak native controls. But the controls around it compensate for what it cannot enforce on its own.</p><h3>Case Study 3: The Windows XP Problem</h3><p>Every security professional knows that Windows XP reached end-of-life in April 2014. Microsoft stopped releasing security patches, meaning every vulnerability discovered after that date remains permanently unpatched.</p><p>A penetration tester identifies a Windows XP system, confirms it is running an unpatched SMBv1 service, and writes:</p><blockquote><strong><em>Upgrade to a supported operating system immediately.</em></strong></blockquote><p>Technically correct. Operationally impossible.</p><p>Windows XP persists in real environments for specific and often legitimate reasons. Medical imaging equipment such as MRI and CT scanners frequently runs on Windows XP because the proprietary software controlling the hardware received FDA 510(k) clearance for that specific operating system configuration. Replacing the OS would require the vendor to go through the entire clearance process again. ATM networks, manufacturing controllers, and laboratory instruments share similar constraints.</p><p>The WannaCry ransomware attack in May 2017 made this problem visible on a global scale. WannaCry exploited EternalBlue, a vulnerability in the SMBv1 protocol, and spread across networks within minutes. Organizations with proper network segmentation largely contained the damage. Those without it experienced widespread disruption across thousands of systems. Many of the affected machines were legacy systems that could not be patched.</p><p>That lesson is exactly what compensating controls are designed to address.</p><p>When upgrading is not possible:</p><p>Isolate the system on a dedicated VLAN with no direct access from corporate or user networks.</p><ul><li>Block all inbound and outbound traffic except what the system specifically requires to function.</li><li>Disable SMBv1 entirely if the system does not depend on it for its core purpose.</li><li>Deploy application whitelisting using Windows AppLocker or a compatible third-party solution to block unauthorized executables from running.</li><li>Install an EDR agent if a compatible one exists for the OS version, or use a network-based detection solution to compensate for the absence of endpoint coverage.</li><li>Restrict all administrative access and remove default shares.</li><li>Log all system and network activity and monitor for lateral movement indicators.</li></ul><p>The system remains vulnerable. But the attack surface shrinks dramatically, and the practical risk of exploitation drops to a manageable level.</p><h3>How to Frame This in a Report</h3><p>When writing up findings that involve constraints like these, the structure of the recommendation matters as much as its content.</p><p>A format that works well in practice:</p><ol><li>State the finding and the associated risk clearly, including the CVSS score and what an attacker could realistically achieve.</li><li>State the recommended fix, even if it is not currently feasible. This gives the client a long-term target to work toward.</li><li>Acknowledge the operational constraint explicitly. This shows the client that you understand their environment and are not writing generic output.</li><li>Provide compensating controls as a practical near-term alternative.</li><li>Define the residual risk. After the compensating controls are in place, what exposure remains, and under what conditions could it still be exploited?</li></ol><p>Some organizations, particularly those in regulated industries such as healthcare, finance, or critical infrastructure, will require a formal sign-off on residual risk acceptance. Framing the report this way gives them the documentation they need and demonstrates that your engagement added genuine business value.</p><h3>Security Is About Risk, Not Compliance</h3><p>The most valuable penetration testers are not the ones who follow checklists.</p><p>They are the ones who understand technology, business requirements, operational constraints, and risk management together.</p><p>Anyone can identify a vulnerability and write “upgrade to a supported version.” A skilled consultant understands when that is not realistic and knows how to design compensating controls that achieve the same objective through different means.</p><p>Security is not always about replacing old systems. Sometimes it is about reducing exposure, limiting attack paths, adding layers of defense, and finding practical alternatives that the organization can actually implement.</p><p>The best recommendation is not always the most technically perfect one. It is the one the organization can realistically act on while continuing to operate.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a62d5cbf88a9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Network Configuration Review: A Practical SOP for Security Teams]]></title>
            <link>https://medium.com/@mohamed.yosry558/network-configuration-review-a-practical-sop-for-security-teams-ec0308b67c8e?source=rss-052e7fb82834------2</link>
            <guid isPermaLink="false">https://medium.com/p/ec0308b67c8e</guid>
            <dc:creator><![CDATA[Crowx01]]></dc:creator>
            <pubDate>Wed, 15 Apr 2026 21:42:48 GMT</pubDate>
            <atom:updated>2026-04-15T21:42:48.324Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>A step-by-step standard operating procedure aligned with ISO 27001 for conducting effective network configuration assessments</strong></p><h3>Why We Created This</h3><p>After conducting dozens of network security assessments across enterprise environments in Egypt and the Middle East, my team noticed a gap: there weren’t any practical, vendor-agnostic standard operating procedures (SOPs) for network configuration reviews that actually matched real-world workflows.</p><p>Most frameworks tell you what to check (NIST, CIS benchmarks), but not how to structure the review process, document findings, or report to management.</p><p>So we built one.</p><h4>What’s Inside This SOP</h4><p>This Standard Operating Procedure covers the complete lifecycle of a network configuration review:</p><p>1. Pre-Assessment Planning<br>Scope definition and asset inventory<br>Authorization documentation<br>Backup verification procedures</p><p>2. Technical Review Areas<br>Router/Switch Hardening: SNMP configurations, unused ports, VLAN assignments, banner messages<br>Firewall Rule Analysis: Shadow rules, overly permissive entries, logging configuration, rule optimization<br>Network Segmentation: VLAN isolation, DMZ architecture, inter-VLAN routing controls<br>Access Control: TACACS+/RADIUS integration, local user accounts, privilege levels, console security</p><p>3. Evidence Collection<br>Standardized command templates for Cisco, Juniper, and Palo Alto environments<br>Screenshot documentation standards<br>Configuration file extraction procedures</p><p>4. Reporting &amp; Remediation<br>Risk scoring methodology (Critical/High/Medium/Low)<br>Executive summary template<br>Technical findings format with remediation guidance<br>Tracking spreadsheet for remediation validation</p><h3>Who This Is For</h3><p>Security Consultants conducting client infrastructure assessments<br>Internal Security Teams performing quarterly configuration audits<br>Network Administrators validating hardening baselines<br>Compliance Officers mapping technical controls to ISO 27001 requirements</p><p>ISO 27001 Alignment</p><p>This SOP directly maps to:<br>A.13.1.1 — Network controls<br>A.13.1.2 — Network services security<br>A.13.1.3 — Segregation in networks<br>A.13.2.1 — Information transfer policies</p><p>Download the Resources</p><p>Full SOP Package:<br>Download PDF &amp; Word versions from GitHub: [<a href="https://github.com/Mohamed-Yousryy/Network-Config-Review-SOP.git">https://github.com/Mohamed-Yousryy/Network-Config-Review-SOP.git</a>]<br>Includes editable checklists and reporting templates<br>Open source under MIT License modify for your organization</p><p>The repository contains both the PDF (for immediate use).</p><h4>How to Use This in 3 Steps</h4><p>Step 1: Review the methodology section to understand the assessment flow</p><p>Step 2: Use the checklist (Appendix A) during your technical review it’s organized by device type and risk category</p><p>Step 3: Generate your report using the template (Appendix B) it includes pre written language for common findings that you can customize</p><h4>Real-World Impact</h4><p>In our first quarter using this SOP at Cyberteq, we:<br>- Reduced assessment report writing time by 40% (standardized templates)<br>- Eliminated missing checks (comprehensive checklist coverage)<br>- Improved client satisfaction scores by standardizing deliverable format<br>- Cut onboarding time for junior assessors by providing clear procedural guidance</p><h4>Contributing &amp; Feedback</h4><p>This is a living document. If you use this SOP and have suggestions:<br>Open an issue on the GitHub repository<br>Connect with me on LinkedIn [<a href="https://www.linkedin.com/in/muhammad-youssry/">https://www.linkedin.com/in/muhammad-youssry/</a>]<br>Share how you adapted it for your environment</p><h3><strong>About the Authors</strong></h3><p>This SOP was developed by Muhammad Yousry and Ahmed El Mohandes at Cyberteq, with technical review by Ahmed Adel.</p><p>We conduct network security assessments across banking, telecom, and government sectors in the Middle East.</p><p>Document Reference: SOP-CR-001 | Version 1.0 | 2026</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ec0308b67c8e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CAPen Review: A Well Rounded Web Security Exam That Keeps You on Your Toes]]></title>
            <link>https://medium.com/@mohamed.yosry558/capen-review-a-well-rounded-web-security-exam-that-keeps-you-on-your-toes-aa39a4a5d9fc?source=rss-052e7fb82834------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa39a4a5d9fc</guid>
            <category><![CDATA[web-application-security]]></category>
            <category><![CDATA[the-secops-group]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Crowx01]]></dc:creator>
            <pubDate>Tue, 14 Apr 2026 02:01:05 GMT</pubDate>
            <atom:updated>2026-04-14T14:02:13.867Z</atom:updated>
            <content:encoded><![CDATA[<h3>My honest take on the Certified AppSec Pentester exam the highs, the hard questions, and what to prepare for.</h3><p>I recently sat the <a href="https://pentestingexams.com/product/certified-appsec-pentester/">Certified AppSec Pentester (CAPen)</a> exam from The SecOps Group, and I walked away with a lot to say about it some of it surprising. Let me give you the honest picture.</p><h3>Overall impression: a well distributed challenge</h3><p>The short version: mid-level, but not uniformly so. The difficulty was genuinely spread across three tiers some questions were straightforward warm-ups, most were comfortably intermediate, and then there were three questions that stopped me cold. Hard in the real sense: not “tricky wording” hard, but “you either know this or you don’t” hard.</p><p>That spread actually makes CAPen feel honest. It doesn’t try to trick you with ambiguous language it tests whether you can actually execute across a range of web attack techniques. This aligns with what others in the community have noted: <a href="https://hiddendoorsecurity.com/2024/10/20/capen-certification-and-exam-review/">one reviewer described it as more on the intermediate side, praising the realistic and at times challenging scenarios</a>.</p><h3>What the exam covers</h3><p>The exam spans a solid breadth of web security topics. Expect challenges across:</p><p><strong>XSS, XXE, SQLi, CSRF, file upload vulnerabilities, IDOR, username enumeration, information disclosure, and OSINT.</strong></p><p>It’s essentially the greatest hits of web pentesting nothing exotic, but each topic has enough depth to expose gaps in your fundamentals if you’ve only ever skimmed them. The full official syllabus is listed on the <a href="https://pentestingexams.com/product/certified-appsec-pentester/">CAPen exam page</a>.</p><h3>Time pressure is real</h3><p>The exam window is tighter than you’d expect. A few challenges demanded genuine exploration you can’t brute-force your way through this one by trying every technique until something sticks. You need to read the application, understand its behaviour, and make deliberate moves. Going in without a methodology will cost you time you don’t have.</p><p>As <a href="https://pablochiquis97.github.io/posts/path-CAPen/">another passer put it</a>, the syllabus provided on the official page is more than sufficient to pass but it’s essential to practice in vulnerable lab environments to understand the different scenarios you’ll encounter when exploiting a specific vulnerability.</p><h3>Tips that would have helped me earlier</h3><p><strong>Tip 1: Burp Suite Pro is a force multiplier.</strong> If you have a Burp Suite Pro licence, you’ve already solved roughly 50% of the exam. The scanner and active testing features will carry a significant chunk of the work know your tool inside out before exam day.</p><p><strong>Tip 2: Do the mock exam. Non-negotiable.</strong> The mock isn’t just practice it orients you to the platform’s format, the flag submission flow, and the type of thinking the exam rewards. There’s even a <a href="https://medium.com/@rafiul.pentester/certified-appsec-pentester-capen-mock-exam-writeup-4fe12e48f0b7">detailed mock exam writeup on Medium</a> worth reading through before you sit the real thing. It covers username enumeration via password reset hash manipulation and OSINT on S3 buckets via Burp history exactly the style of problem-solving you’ll need.</p><p><strong>Tip 3: Pay close attention to XSS.</strong> It’s more involved than it first appears. The filter bypass and context analysis required goes well beyond basic reflected payloads. Don’t underestimate it. You’ll want to be comfortable with JavaScript string contexts, angle bracket encoding, and attribute-based injection the <a href="https://portswigger.net/web-security/cross-site-scripting">PortSwigger XSS contexts labs</a> are the best place to drill this.</p><h3>The best prep resource</h3><p>There’s one clear answer: <a href="https://portswigger.net/web-security"><strong>PortSwigger Web Security Academy</strong></a>.</p><p>It maps almost perfectly to what the exam tests. Work through the relevant labs with intention don’t just read the solutions, replicate the attacks until they become instinct. This recommendation comes up in virtually every CAPen review out there, and for good reason. <a href="https://pablochiquis97.github.io/posts/path-CAPen/">One passer combined PortSwigger with the HTB CBBH path</a> and found that combination more than sufficient. Another who had been using PortSwigger since 2021 <a href="https://medium.com/@g3nj1z/certified-appsec-practitioner-cap-review-2024-6094961acb9e">passed the exam and its sibling CAP back to back</a> with minimal additional prep.</p><h3>What comes next?</h3><p>If CAPen leaves you wanting more, The SecOps Group has a natural next step: the <a href="https://medium.com/@p0lyxena/review-appsec-pentesting-expert-capenx-from-the-secops-group-eb5674e4bf8d">Certified AppSec Pentesting eXpert (CAPenX)</a> a 7-hour expert-level exam that demands out of band techniques and a deeper level of application analysis. Worth the climb.</p><h3>Final thoughts</h3><p>CAPen is a genuinely good exam. The variety of vulnerabilities, the multi-tiered difficulty, and the practical format all come together to make it a meaningful validation of web pentesting skills not just a checkbox. The three hard questions in particular felt like the exam had something to prove, and I respected that.</p><p>Thanks to The SecOps Group for putting together an exam that actually challenges you. Solid work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0oyRbMGeNp5VSWmnnIo6fQ.png" /></figure><p><em>Have questions about CAPen or want to compare notes? Find me on Linkedin </em><a href="https://www.linkedin.com/in/muhammad-youssry/">https://www.linkedin.com/in/muhammad-youssry/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa39a4a5d9fc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TLS, CDNs, and Where Your Data Actually Gets Decrypted]]></title>
            <link>https://medium.com/@mohamed.yosry558/tls-cdns-and-where-your-data-actually-gets-decrypted-347bf1e51820?source=rss-052e7fb82834------2</link>
            <guid isPermaLink="false">https://medium.com/p/347bf1e51820</guid>
            <category><![CDATA[network-security]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Crowx01]]></dc:creator>
            <pubDate>Mon, 13 Apr 2026 17:31:01 GMT</pubDate>
            <atom:updated>2026-04-13T17:31:01.304Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>False Assumption</strong></h3><p>Most people assume that HTTPS means their data travels encrypted from their browser all the way to the server they are talking to. That assumption is mostly wrong, and understanding why matters more than most people realize.</p><p>When you connect to a website over HTTPS, TLS handles the encryption. It protects data moving between two points so that anyone sitting in the middle cannot read or change it. The problem is that in most real deployments, those two points are not your browser and the actual server. There is something in between.</p><p>Large platforms almost always sit behind a Content Delivery Network. <strong>Cloudflare </strong>is the most well known example. A CDN stands between you and the actual server. Its job is to make websites load faster by responding from a location close to you, store copies of content so the origin server does not have to handle every request, and apply security controls like blocking bots or limiting traffic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/897/0*1iUYZJgMfrn2_CRX.png" /></figure><h3><strong>TLS termination</strong></h3><p>The most common setup is called <strong>TLS termination</strong> at the edge. In simple terms, your browser builds the encrypted connection with the CDN, not the actual server. The CDN opens and reads your request, then decides if it can answer from its own stored copy or if it needs to forward the request to the real server. If it forwards it, it opens a new encrypted connection to the origin. So what feels like one private tunnel is actually two separate ones, with the CDN in the middle reading everything in between.</p><p>This is not a security flaw. It is a design choice. But it does change where trust actually sits. The CDN is not just passing traffic through without looking at it. It reads the data, which is exactly what allows it to do things like cache content, block attacks, and apply filtering rules. You cannot do any of that without being able to read the traffic first.</p><h3><strong>End to End Encryption</strong></h3><p>A slightly more secure version of this keeps the connection between the CDN and the origin server encrypted as well. The CDN still decrypts your request at its end, then sends it to the origin over a new encrypted connection. This protects the data on both parts of the journey but does not change the fact that the CDN can still read everything.</p><h3>TLS passthrough</h3><p>There is another approach called TLS passthrough where the CDN does not decrypt anything at all. The encrypted traffic goes straight through to the origin server, which is the only one that opens it. This means your data stays private between your browser and the actual server the whole time. The downside is that the CDN becomes completely blind. It cannot cache anything, cannot inspect traffic, and cannot block attacks. It is just moving packets from one place to another.</p><p>A common misunderstanding is that CDNs can store and cache encrypted content without decrypting it. They cannot. To decide what to cache, a CDN needs to read things like the page path, headers, and content type. All of that information is inside the encrypted data. Without opening it, the CDN has no idea what it is looking at.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nVgh7CEtpnMq8-Z7.png" /></figure><h3>Best of Both Worlds</h3><p>Some systems try to find a balance by only encrypting the sensitive parts of the data at the application level, while leaving public content like images or scripts available for normal caching. This is a decision made at the application level, not something TLS handles on its own.</p><p>The main takeaway is that HTTPS does not mean only the destination server can read your data. In most real world setups, a third party decrypts it before it ever reaches the origin. Knowing where that happens and who controls that point is what actually defines how secure a system really is, not just whether there is a padlock in the browser.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=347bf1e51820" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SMB Signing Not Required: A Misconfiguration That Enables Network Wide Compromise]]></title>
            <link>https://medium.com/@mohamed.yosry558/smb-signing-not-required-a-misconfiguration-that-enables-network-wide-compromise-f0c55c00ffc1?source=rss-052e7fb82834------2</link>
            <guid isPermaLink="false">https://medium.com/p/f0c55c00ffc1</guid>
            <category><![CDATA[vulnerability-assessment]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Crowx01]]></dc:creator>
            <pubDate>Sat, 11 Apr 2026 15:01:02 GMT</pubDate>
            <atom:updated>2026-04-11T15:01:02.808Z</atom:updated>
            <content:encoded><![CDATA[<h3>Description</h3><p><strong>SMB signing not required</strong> is a security misconfiguration where a server tells the client during the connection setup that signing is supported, but never actually forces the client to use it.</p><h3>Real life Scenario</h3><p>When two machines communicate over SMB, there is a negotiation phase where both sides agree on how the connection will work. The server can indicate that signing is available, but if it does not make it mandatory, the client can simply ignore it and the session continues anyway. The result is an SMB session where messages are not verified and not tied to the identity that originally authenticated. Anyone who can sit between the two machines has room to work.</p><p>The danger here is not that an attacker can freely modify traffic on the wire. The danger is that this configuration removes the one control that would make <a href="https://www.thehacker.recipes/ad/movement/ntlm/relay"><strong>NTLM relay</strong></a> attacks impossible.</p><h3>NTLM Relay Attack</h3><p>NTLM relay usually starts with name resolution poisoning. When a Windows machine tries to reach a hostname that does not exist in DNS, it falls back to broadcasting a query over the network asking if anyone knows where that host is. An attacker on the same network segment responds to that broadcast and pretends to be the host the victim is looking for. The victim then sends an authentication request to the attacker. Instead of trying to crack the captured credentials, the attacker forwards the entire authentication process in real time to another machine on the network. Tools like Responder handle the initial capture while ntlm relay handles the forwarding to the target.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3OHiPyoUYkIMgk6m.png" /></figure><p>If the target machine does not require SMB signing, it accepts the relayed authentication and opens a session. Because signing was never enforced, the attacker can establish a fully authenticated session while pretending to be the victim, without ever knowing their password.</p><p>What the attacker can do from that point depends on how privileged the victim account is. At minimum they get access to file shares that account can reach. With higher privilege accounts, the attacker can run commands remotely, extract stored credentials, or move to other systems inside the network. In an Active Directory environment, if a domain administrator account is the one whose authentication gets relayed, the entire domain can be compromised in a matter of minutes.</p><p>How serious this finding is depends heavily on the environment. On its own it is usually rated medium. But in a corporate network where NTLM is still widely used, the network is flat with no separation between systems, and privileged accounts are regularly triggering outbound connections, it becomes one of the most reliable paths to full compromise. Relay attacks that end with full credential dumps or domain controller access are not rare outcomes in real assessments. They are common.</p><h3>Mitigation</h3><p>The fix at the protocol level is to make SMB signing mandatory on both servers and clients. When signing is enforced, every message must be verified using a key derived from the original authentication. A relayed session does not have that key and fails immediately. This can be pushed across the entire domain through <strong>Group Policy</strong>. Turning off LLMNR and NetBIOS removes the method attackers use to capture authentication in the first place. Restricting NTLM in favor of Kerberos removes the protocol being abused. Proper network segmentation limits how far a successful relay can reach even if the other controls are not yet in place.</p><p>The configuration is well understood and the fixes are straightforward to apply. What keeps it alive in most environments is<strong> legacy system compatibility</strong> and the belief that being inside the network means being safe. In most assessments, that belief does not last long once Responder is running.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f0c55c00ffc1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CPTS Lab Notes: Surviving the Pivot]]></title>
            <link>https://medium.com/@mohamed.yosry558/cpts-lab-notes-surviving-the-pivot-4eb6a1cbfc7a?source=rss-052e7fb82834------2</link>
            <guid isPermaLink="false">https://medium.com/p/4eb6a1cbfc7a</guid>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[metasploit]]></category>
            <category><![CDATA[red-team]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <dc:creator><![CDATA[Crowx01]]></dc:creator>
            <pubDate>Mon, 06 Apr 2026 18:01:01 GMT</pubDate>
            <atom:updated>2026-04-06T18:01:01.613Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey everyone!</p><p>I have been deep in the trenches with the Certified Penetration Testing Specialist modules lately. If you have ever touched network pivoting, you know it can be a headache. I ran into a scenario recently that was honestly pretty fun to solve, so I figured I would document it here for anyone else grinding through the labs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9AALxMa34iHeGp7JFfINsg.jpeg" /></figure><h3>The Setup</h3><p>Imagine this. You have your <strong>Attack Host</strong> (your machine) and you just landed a shell on a <strong>Compromised Host</strong>. That compromised machine is sitting on an internal network that you cannot see directly. Our goal is to peek inside that hidden network and see what else is live.</p><p>Here is how I handled it:</p><ol><li><strong>Crafting the Payload:</strong> I used msfvenom to build a payload. I made sure to point it back to my own IP and a specific port I had open.</li><li><strong>The Transfer:</strong> I moved the file over to the compromised machine. I personally just used SCP because it is quick and reliable.</li><li><strong>The Listener:</strong> Back on my machine, I fired up the Metasploit handler. I chose a reverse tcp payload. One crucial tip here: I set the LHOST to 0.0.0.0. This is a lifesaver because it tells my machine to listen for a connection from anywhere. I also made sure the port matched my payload exactly.</li><li><strong>Executing:</strong> I ran the file on the target, and just like that, I had a meterpreter session.</li></ol><h3>When Things Go Wrong (The Real World)</h3><p>My plan was to use the built in ping sweep module in Metasploit to find other machines. <strong>It totally failed.</strong> It just would not work in this specific environment.</p><p>Instead of giving up, I took a more manual approach. I dropped into a standard machine shell by typing shell. I then used ChatGPT to help me whip up a quick bash script that could ping the subnet manually. It worked perfectly. I got a reply from two other hosts!</p><h3>Leveling Up with SOCKS Proxies</h3><p>Discovery is cool, but I wanted to use my own tools like Nmap or CrackMapExec on that internal network. Since those tools are not on the compromised machine, I had to bring the network to me.</p><p>I used a SOCKS proxy. Specifically, I used the socks_proxy module in Metasploit. I set it to version 4a because that version plays nicely with meterpreter data. I also set the SRVHOST to 0.0.0.0.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZFJD1IY5NesD_ekREEIh0A.jpeg" /></figure><p>Once the proxy was running, I used the autoroute module. This tells Metasploit to send all traffic for that internal subnet through my active session.</p><p><strong>Pro Tip for your Config:</strong> Before you try to run any tools, you have to check a specific file on your Linux machine. Open up /etc/proxychains.conf and look at the very bottom. You must ensure the port listed there is the exact same one you used in your Metasploit module. If you used 9050 in Metasploit, it better say 9050 in that config file!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*oUwgmKFp4MzO1kqCRNUv-A.jpeg" /></figure><h3>Running the Tools</h3><p>Now comes the magic. To use any tool on your machine against the internal network, you just put proxychains in front of it. For example, if I wanted to scan a specific IP for versions, I would type:</p><p>proxychains nmap 172.10.10.1 sV</p><p>(Note: I skipped the usual dash flags here to keep things simple, but you get the idea). This forces the traffic through the tunnel we built.</p><h3>Final Thoughts</h3><p>Pivoting is all about having a backup plan. If the automated modules fail, go manual. If one proxy method is too slow, try port forwarding. The labs are tough, but finding that path through the network is a great feeling.</p><p>Stay curious and happy hacking!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4eb6a1cbfc7a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Insights from My CPTS Journey: A Practical Network Pivoting Scenario]]></title>
            <link>https://medium.com/@mohamed.yosry558/insights-from-my-cpts-journey-a-practical-network-pivoting-scenario-2bde761410ee?source=rss-052e7fb82834------2</link>
            <guid isPermaLink="false">https://medium.com/p/2bde761410ee</guid>
            <category><![CDATA[hackthebox]]></category>
            <category><![CDATA[network-pivoting]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Crowx01]]></dc:creator>
            <pubDate>Sun, 05 Apr 2026 19:44:16 GMT</pubDate>
            <atom:updated>2026-04-05T19:44:16.593Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Hey everyone!</strong></p><p>While I was grinding through the modules for the CPTS certification, I bumped into a really cool scenario that I wanted to share with you all. It is specifically about network pivoting, and it was too good to keep to myself.</p><p>Here is the setup. We have our own machine, which is the “attack host”, and we have another machine that we successfully broke into, our “compromised host”.</p><p>This compromised host is connected to an internal network. Our main goal is to peek inside that network, see what other devices are hiding in there, and figure out what we can scan.</p><p>Here is exactly how the whole process went down:</p><ul><li>First up, we need to craft a payload using msfvenom. We tweak the settings to include the IP address of our attack host and the port where we want to catch the connection.</li><li>Next, we have to move this payload over to the compromised host. You can use whatever file transfer method you prefer, but I just went with SCP.</li><li>Once the file is over there, we open up Metasploit and start the multi handler module. We configure the payload to be reverse tcp, which works on the exact same logic as a normal reverse shell. A super important step here is changing the LHOST to 0.0.0.0. This tells our machine to accept connections from absolutely anywhere. We also make sure the port matches the one we baked into our payload.</li><li>After that is set up, we run the payload file on the compromised host while our Metasploit handler is actively listening on our attack host.</li><li>Boom! We catch the connection and drop right into a meterpreter session.</li><li>From meterpreter, my original plan was to run a post exploitation module called ping sweep. This is usually a great way to discover other live machines on the network.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/988/1*1HdUhkr5u5-hj-_esYsYpg.jpeg" /></figure><p>Now, here is where it gets interesting. Honestly, during my testing, that ping sweep module completely failed to work. It just would not do the job. So, I went over to ChatGPT to look for a quick workaround. I found out that I could escape into a standard machine shell straight from meterpreter just by typing the word shell.</p><p>Once I had my regular shell access, I asked ChatGPT to write a quick bash script for me that would do a manual ping sweep across the subnet. I ran it, and thankfully, it worked! I ended up getting a ping reply from two live hosts.</p><p>Also checkout this link for further info.</p><p><a href="https://www.chaostudy.com/2025/03/05/cpts-pivoting-tunneling-and-port-forwarding/">CPTS-Pivoting, Tunneling, and Port Forwarding - Chaostudy</a></p><p>To be continued…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2bde761410ee" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>