Networking Basics for Ethical Hackers (Beginner to Pro Guide)

Image
  Networking Basics for Ethical Hackers (Beginner to Pro Guide) Introduction: Why Networking Matters in Ethical Hacking Before you become a skilled ethical hacker, you need to understand one thing very clearly: Hacking = Understanding Networks Every attack, every defense, every tool — all work on networks. If you don’t understand how computers talk to each other, you’ll always feel confused using tools like Nmap, Wireshark, or Metasploit. So in this guide, I’ll teach you networking from zero to a strong foundation in the simplest way possible — like a story. Chapter 1: What is a Network? Imagine this: You and your friends are in a classroom passing notes. You = Computer Friend = Another Computer Notes = Data Passing system = Network Network = A group of computers connected to share data Types of Networks: LAN (Local Area Network) → Small (home, school, lab) WAN (Wide Area Network) → Large (Internet) Chapter 2: How Data Travels (The Hidden Journey) When you send a message on WhatsAp...

๐Ÿ’ป Windows CMD Full Tutorial (2025) | Command Prompt for Beginners to Advanced | CMD Commands Explained

 Perfect ๐Ÿ”ฅ Let’s create a “Windows CMD — One Shot Tutorial (Beginner to Advanced 2025)” guide that you can use to learn fully, make notes, or even teach on YouTube.

We’ll go from 0 to expert, covering every practical and powerful CMD concept you’ll actually use in 2025.


๐Ÿง  CMD (Command Prompt) — One Shot Tutorial (Beginner to Advanced 2025)

๐ŸŽฏ Overview

CMD (Command Prompt) is the Windows command-line interpreter — used to automate tasks, manage files, control networking, and access system info.


๐Ÿงฉ 1. Getting Started

๐Ÿ”น Open CMD

  • Search: cmd → Run as administrator

  • Shortcut: Win + R → type cmd → Enter

  • Admin Mode: Ctrl + Shift + Enter

๐Ÿ”น Basic Info

ver                # Show Windows version
help               # List all available commands
help <command>     # Detailed help for a specific command

๐Ÿ—‚️ 2. File & Folder Commands

๐Ÿ“ Navigation

dir                # List files and folders
cd                 # Show current directory
cd <path>          # Change directory
cd ..              # Go up one folder
cls                # Clear screen

๐Ÿงฑ File Operations

mkdir <folder>     # Create folder
rmdir <folder>     # Remove folder (empty)
del <file>         # Delete file
copy <src> <dest>  # Copy file
move <src> <dest>  # Move file
rename <old> <new> # Rename file

๐Ÿงพ View Content

type <file>        # Display file contents
more <file>        # Display one page at a time

⚙️ 3. System & Device Info

systeminfo         # Full system details
hostname           # Show computer name
ipconfig           # Network details
ipconfig /all      # Full network details
tasklist           # All running processes
taskkill /IM <process.exe> /F   # Force close process
driverquery        # List installed drivers
wmic cpu get name  # CPU info
wmic bios get serialnumber

๐ŸŒ 4. Network & Internet Commands

ping <website>             # Test connection
tracert <website>          # Trace route to website
netstat -ano               # View active connections and ports
nslookup <website>         # Get IP of website
netsh wlan show profile    # Show saved Wi-Fi profiles
netsh wlan show profile name=<WiFiName> key=clear  # Show Wi-Fi password

๐Ÿ’ก Pro Tip: netstat -b shows which programs are using which ports (use admin CMD).


๐Ÿงฎ 5. System Control & Utilities

shutdown /s /t 0           # Shutdown immediately
shutdown /r /t 5           # Restart after 5 seconds
chkdsk                     # Check disk errors
sfc /scannow               # Scan and repair system files
taskmgr                    # Open Task Manager
control                    # Open Control Panel
appwiz.cpl                 # Programs & Features

๐Ÿ’ก 6. User Management (Admin Required)

net user                   # Show all users
net user <username> <pass> /add   # Add user
net localgroup administrators <username> /add  # Make admin
net user <username> /delete       # Delete user

๐Ÿง  7. Environment & Variables

set                        # Show all environment variables
set <var>=<value>          # Create variable
echo %<var>%               # Print variable
path                       # Show PATH

Example:

set name=RedMark
echo Hello %name%

๐Ÿ’ป 8. Batch File Basics (.bat Scripts)

You can automate commands using a .bat file.

Example:

@echo off
echo Starting Backup...
xcopy C:\Users\RedMark\Documents D:\Backup /E /I /Y
echo Backup Complete!
pause

Save as backup.bat → Run.


๐Ÿงฐ 9. Advanced Commands (2025 Pro Level)

powercfg /batteryreport /output "battery.html"   # Generate battery health report
getmac                                          # Get MAC address
net share                                        # List network shares
wmic product get name,version                    # Installed apps list
schtasks /create /sc daily /tn "Backup" /tr "C:\backup.bat" /st 21:00

๐Ÿงจ 10. CMD Tricks & Customization

๐ŸŽจ Customize Look

color a     # Green text
color 4e    # Red on gray background
title RedMark CMD PowerShell

⏰ Time & Date

time /t
date /t

๐Ÿช„ Fun Tricks

tree /f               # Show folder structure
echo Hello, World!

⚡ 11. Combining Commands

&&, ||, and |

mkdir Test && cd Test       # Run second only if first succeeds
ping google.com || echo "Failed"
dir | find "txt"            # Filter output

๐Ÿ›ก️ 12. Security & Permissions

attrib +h +s <file>         # Hide and protect file
attrib -h -s <file>         # Unhide
cipher /w:C:\               # Wipe free space securely

๐Ÿงพ 13. Log & Output Handling

dir > output.txt            # Save output to file
echo Hello >> log.txt       # Append text

๐Ÿงฉ 14. Power CMD (For Devs)

assoc .py=Python.File
where python                # Find path of installed program
fc file1.txt file2.txt      # Compare files

๐ŸŽ“ 15. Mastery Projects

  1. Create a System Cleaner Script

  2. Auto Backup Scheduler using Task Scheduler + CMD

  3. Wi-Fi Password Viewer

  4. Disk Space Report Generator

  5. Custom Command Launcher


๐Ÿง  BONUS: CMD vs PowerShell

Feature CMD PowerShell
Syntax Basic Object-oriented
Scripting .bat .ps1
Automation Limited Advanced
Output Text only Objects & JSON

๐Ÿ Conclusion

✅ You now know everything from Beginner → Advanced CMD (2025 Edition)
✅ You can automate, control, and troubleshoot Windows fully using CMD
✅ Next Step: Learn PowerShell for modern scripting + automation


Comments

Popular posts from this blog

Hacking Tools for Penetration Testing – Fsociety in Kali Linux

Fluxion – The Future of MITM WPA Security Research

Login System in Python Source Code