<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Ashour Blog</title><link>https://mostafa-ashour.github.io/</link><description>Recent content on Ashour Blog</description><generator>Hugo</generator><language>en-us</language><copyright>&lt;a href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank" rel="noopener"&gt;CC BY-NC 4.0&lt;/a&gt;</copyright><lastBuildDate>Sun, 26 Apr 2026 19:29:11 +0300</lastBuildDate><atom:link href="https://mostafa-ashour.github.io/index.xml" rel="self" type="application/rss+xml"/><item><title>Powershell</title><link>https://mostafa-ashour.github.io/posts/2026/04/powershell/</link><pubDate>Sun, 26 Apr 2026 19:29:11 +0300</pubDate><guid>https://mostafa-ashour.github.io/posts/2026/04/powershell/</guid><description>&lt;h1 id="cmd-vs-powershell"&gt;CMD Vs. PowerShell&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;It&amp;rsquo;s time to look at Windows&amp;rsquo; modern successor to CMD, &lt;a href="https://learn.microsoft.com/en-us/powershell/scripting/overview?view=powershell-7.2"&gt;PowerShell&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="differences"&gt;Differences&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;PowerShell and CMD are included natively on any Windows host.&lt;/li&gt;
&lt;li&gt;Therefore, Why would I use one over the other?&lt;/li&gt;
&lt;li&gt;Observe the following table to know the differences/comparison between PowerShell &amp;amp; CMD.&lt;/li&gt;
&lt;/ul&gt;
&lt;table&gt;
	&lt;thead&gt;
			&lt;tr&gt;
					&lt;th&gt;&lt;strong&gt;Feature&lt;/strong&gt;&lt;/th&gt;
					&lt;th&gt;&lt;strong&gt;CMD&lt;/strong&gt;&lt;/th&gt;
					&lt;th&gt;&lt;strong&gt;PowerShell&lt;/strong&gt;&lt;/th&gt;
			&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
			&lt;tr&gt;
					&lt;td&gt;Language&lt;/td&gt;
					&lt;td&gt;Batch and basic CMD commands only.&lt;/td&gt;
					&lt;td&gt;PowerShell can interpret Batch, CMD, PS cmdlets, and aliases.&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;Command utilization&lt;/td&gt;
					&lt;td&gt;The output from one command cannot be passed into another directly as a structured object, due to the limitation of handling the text output.&lt;/td&gt;
					&lt;td&gt;The output from one command can be passed into another directly as a structured object resulting in more sophisticated commands.&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;Command Output&lt;/td&gt;
					&lt;td&gt;Text only.&lt;/td&gt;
					&lt;td&gt;PowerShell outputs in object formatting.&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;Parallel Execution&lt;/td&gt;
					&lt;td&gt;CMD must finish one command before running another.&lt;/td&gt;
					&lt;td&gt;PowerShell can multi-thread commands to run in parallel.&lt;/td&gt;
			&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;ul&gt;
&lt;li&gt;PowerShell is more than a command-line interface (CLI); it&amp;rsquo;s also a versatile scripting language designed for extensibility and integration with various tools.&lt;/li&gt;
&lt;li&gt;Unlike CMD, the traditional Windows CLI, PowerShell is &lt;a href="https://github.com/PowerShell/PowerShell"&gt;open-source project&lt;/a&gt; and cross-platform, supporting both Windows and Linux systems.&lt;/li&gt;
&lt;li&gt;Built on the &lt;code&gt;.NET&lt;/code&gt; framework, it leverages an object-based model for interaction and output, moving beyond simple text-based methods.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="why-choose-powershell-over-cmdexe"&gt;Why Choose PowerShell Over cmd.exe?&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;Why does PowerShell matter for IT admins, Offensive &amp;amp; Defensive Infosec pros&lt;/code&gt;?&lt;/p&gt;</description></item><item><title>CMD</title><link>https://mostafa-ashour.github.io/posts/2026/04/cmd/</link><pubDate>Sun, 26 Apr 2026 19:28:58 +0300</pubDate><guid>https://mostafa-ashour.github.io/posts/2026/04/cmd/</guid><description>&lt;h1 id="command-prompt-basics"&gt;Command Prompt Basics&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;To begin developing command-line skills, we&amp;rsquo;ll start with &lt;code&gt;cmd.exe&lt;/code&gt; (the Command Prompt) which includes:
&lt;ul&gt;
&lt;li&gt;What &lt;code&gt;cmd.exe&lt;/code&gt; is.&lt;/li&gt;
&lt;li&gt;How to access it.&lt;/li&gt;
&lt;li&gt;How the shell functions.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="cmdexe"&gt;CMD.exe&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;The Command Prompt (&lt;a href="https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/cmd"&gt;cmd.exe&lt;/a&gt; or CMD) is the default command-line interpreter for Windows OS, evolved from DOS&amp;rsquo;s &lt;code&gt;COMMAND.COM&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Found in nearly all Windows OSs versions, it allows users to execute commands directly, performing tasks like password changes or network interface status checks.
- This also reduces system resources, as graphical-based programs require more CPU and memory.&lt;/p&gt;</description></item><item><title>Detecting Network Abnormalities</title><link>https://mostafa-ashour.github.io/posts/2026/04/detecting-network-abnormalities/</link><pubDate>Fri, 24 Apr 2026 01:51:12 +0300</pubDate><guid>https://mostafa-ashour.github.io/posts/2026/04/detecting-network-abnormalities/</guid><description>&lt;h1 id="fragmentation-attacks"&gt;Fragmentation Attacks&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Related PCAP File(s)—&lt;code&gt;nmap_frag_fw_bypass.pcapng&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;When investigating network anomalies, start by examining the IP layer&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The IP layer is:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Responsible for transferring data packets between network points (from one hop to another).&lt;/li&gt;
&lt;li&gt;Using source and destination IP addresses to facilitate communication between hosts (inter-hosts communication).&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;IP addresses can be found within the IP header of each packet when analyzing network traffic.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Keep in mind that the IP layer itself doesn&amp;rsquo;t detect lost, dropped, or altered/tampered packets.&lt;/p&gt;</description></item><item><title>Link Layer Attacks</title><link>https://mostafa-ashour.github.io/posts/2026/04/link-layer-attacks/</link><pubDate>Fri, 24 Apr 2026 01:51:12 +0300</pubDate><guid>https://mostafa-ashour.github.io/posts/2026/04/link-layer-attacks/</guid><description>&lt;h1 id="arp-spoofing--abnormality-detection"&gt;ARP Spoofing &amp;amp; Abnormality Detection&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Related PCAP File(s)—&lt;code&gt;ARP_Spoof.pcapng&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Attackers have long misused the &lt;code&gt;Address Resolution Protocol (ARP)&lt;/code&gt; to carry out man-in-the-middle and denial-of-service attacks.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Because of this common abuse, ARP is a key area/point to examine when analyzing network traffic, and it&amp;rsquo;s often the first protocol we check.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Many ARP attacks are broadcast to the entire network rather than targeting individual computers, which makes them easier to find using packet sniffing.&lt;/p&gt;</description></item><item><title>Zeek</title><link>https://mostafa-ashour.github.io/posts/2026/04/zeek/</link><pubDate>Fri, 17 Apr 2026 14:34:26 +0200</pubDate><guid>https://mostafa-ashour.github.io/posts/2026/04/zeek/</guid><description>&lt;h1 id="zeek-fundamentals"&gt;Zeek Fundamentals&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Zeek is an open-source network traffic analyzer used to detect suspicious or malicious activity by scrutinizing network traffic.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Beyond security, it aids in troubleshooting network issues and performing network measurements.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Once deployed, Zeek provides defensive cybersecurity teams with extensive log files detailing network activity, including connection records and application-layer transcripts (e.g., DNS, HTTP).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Zeek also offers built-in functions for analyzing and detecting network activities.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Zeek&amp;rsquo;s powerful scripting language allows users to create custom scripts, similar to Suricata rules, enabling adaptable network analysis and intrusion detection.&lt;/p&gt;</description></item><item><title>Suricata</title><link>https://mostafa-ashour.github.io/posts/2026/04/suricata/</link><pubDate>Fri, 17 Apr 2026 14:34:19 +0200</pubDate><guid>https://mostafa-ashour.github.io/posts/2026/04/suricata/</guid><description>&lt;h1 id="suricata-fundamentals"&gt;Suricata Fundamentals&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Suricata is a robust, open-source network security engine for IDS, IPS, and NSM.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Developed and maintained by the OISF, it showcases the power of community-led, non-profit projects.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Suricata dissect/analyze all network traffic to find potential malicious activity.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;It can broadly:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Assess the network&amp;rsquo;s health/condition.&lt;/li&gt;
&lt;li&gt;Also investigate specific application-level interactions.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Suricata uses a detailed set of rules to guide its analysis, helping it identify possible threats.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;It is designed for high-speed performance on standard and specialized hardware, making it a very efficient tool.&lt;/p&gt;</description></item><item><title>Snort</title><link>https://mostafa-ashour.github.io/posts/2026/04/snort/</link><pubDate>Fri, 17 Apr 2026 14:34:05 +0200</pubDate><guid>https://mostafa-ashour.github.io/posts/2026/04/snort/</guid><description>&lt;h1 id="snort-fundamentals"&gt;Snort Fundamentals&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;Snort is an open-source intrusion detection system (IDS) and intrusion prevention system (IPS) that can also function as a packet logger/sniffer, similar to Suricata.&lt;/li&gt;
&lt;li&gt;It inspects network traffic to identify and log all activity, providing a comprehensive view and detailed logs of application layer transactions.&lt;/li&gt;
&lt;li&gt;Snort requires rule sets to define inspection parameters and identify specific items of interest.&lt;/li&gt;
&lt;li&gt;It is designed to operate efficiently on both general-purpose and custom hardware.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="snort-operation-modes"&gt;Snort Operation Modes&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Snort typically operates in the following modes:
&lt;ul&gt;
&lt;li&gt;Inline IDS/IPS.&lt;/li&gt;
&lt;li&gt;Passive IDS.&lt;/li&gt;
&lt;li&gt;Network-based IDS.&lt;/li&gt;
&lt;li&gt;Host-based IDS (however, Snort is not ideally a host-based IDS. We would recommend opting for more specialized tools for this.)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;According to &lt;a href="https://docs.snort.org/start/inspection"&gt;Snort&amp;rsquo;s documentation&lt;/a&gt;&lt;/strong&gt;:&lt;/p&gt;</description></item><item><title>About</title><link>https://mostafa-ashour.github.io/about/</link><pubDate>Fri, 17 Apr 2026 13:57:08 +0200</pubDate><guid>https://mostafa-ashour.github.io/about/</guid><description>&lt;p&gt;Hi, I&amp;rsquo;m Mostafa Ashour 👋
I&amp;rsquo;m a senior student at the Faculty of Computers and Artificial Intelligence, Cairo University, with a strong interest in cybersecurity.&lt;/p&gt;
&lt;p&gt;This blog is a hand-crafted repository of everything I&amp;rsquo;m learning—
not always perfect, but always honest. I’m documenting my journey through the stack as I explore and grow in cybersecurity.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Senior @ FCAI-CU&lt;/li&gt;
&lt;li&gt;Aspiring Cybersecurity Engineer.&lt;/li&gt;
&lt;li&gt;SOC Analyst (in progress).&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="-connect-with-me"&gt;🌐 Connect with me&lt;/h3&gt;
&lt;p&gt;I&amp;rsquo;m always open to connecting, collaborating, or discussing cybersecurity.
Feel free to reach out 👇&lt;/p&gt;</description></item></channel></rss>