How I Hacked My First Machine Using Telnet - A Beginner's Journey 🎯
Blog #4 — Ethical Hacking Series
A Quick Note Before We Start
If you haven't read my previous blogs, I covered installing Kali Linux in Blog #3. Go check that out first , you'll need Kali before trying anything in this post!
Also, one big tip from me:
use YouTube AND AI tools together. YouTube is amazing when you're confused about a concept watching someone do it visually really helps. Then when you get stuck on a specific step, come back to AI tools like Claude to ask questions. That combo is powerful. Trust me, it saved me many times while writing this blog! 😄
What is Ethical Hacking? ⚖️
Ethical hacking = legal 😁
Hacking someone else without permission = illegal 😐
What You Need 🛠️
Before starting, make sure you have:
- A PC or laptop
- VMware Workstation or VirtualBox (free) - I used VM Ware
- Kali Linux VM (see my Blog #3!)
- Metasploitable 2 - our practice target (more on this below!)
Meet "Meta" - Your Practice Target 🎯
Setting Up Your Hacking Lab 🏗️
Think of it like this , your PC runs two virtual machines at the same time. Kali is YOU (the attacker) and Meta is the TARGET (the victim). Both live inside your PC with no risk to anyone outside.
Step 1 - Import Meta into VMware
- Download and extract Metasploitable 2
- Open VMware → Open the .vmx file
- Set RAM to 512MB and CPU to 1 core (it's lightweight!)
Step 2 - Set Network to NAT for Both VMs
This is critical! Both VMs must be on the same network to talk to each other.
- Right click each VM → Settings → Network Adapter
- Set both to NAT
- If Meta has 2 network adapters - remove the second one!
Step 3 - Boot Both VMs
- Start Meta first → login with
msfadmin / msfadmin - Start Kali second
Step 4 - Find Both IPs
Step 5 - Test Connection
From Kali terminal run ping followed by Meta's IP address. If you get replies your lab is working perfectly! 😌🎉
See my screenshot below! 📸
Your First Nmap Scan 🔍
Hacking Telnet 🔓
What is Port 23?
23/tcp open telnet it means the target has Telnet running and is accepting connections.Connect via Telnet
And just like that... YOU'RE IN! 😁🎉
You are now remotely controlling another machine from Kali!
How Does This Work in the Real World? 🌍
Great question ?
In our lab we already knew Meta's IP. In real world ethical hacking (pentesting) you don't know anything at first.
Here's how professionals do it:
| Reconnaissance - | Find the target's IP via domain name or scanning |
| Scanning - | Run nmap to find open ports |
| Exploitation - | Attack vulnerable services like Telnet |
| Post Exploitation | - Explore what access you have |
Real ethical hackers always have written permission before doing any of this. This is called a penetration test.
Why Learning Linux Commands is So Important 💻
1. Almost Every Hacking Tool Runs on Linux
2. Target Machines Are Usually Linux Too
3. Commands Give You Real Control
4. It Makes You Faster and Smarter
Once you know your commands, everything speeds up. You stop googling basic things and start focusing on the actual hacking.
💡 My Advice for Beginners
Start learning basic Linux commands alongside your hacking journey. You don't need to memorize everything at once , just learn as you go. Every time you use a new command, look up what it does. Over time it becomes second nature.
Here are some basics to start with:
- ifconfig - show network info
- ping - test connection to another machine
- nmap - scan ports on a target
- cd / ls - navigate folders
- cat - read file contents
- whoami - show current user
Trust me 😉 the more commands you know, the more confident you will feel! 😜💪
Key Lessons from This Blog 📚
- Always practice in a safe lab - never on real systems without permission
- Nmap is your best friend - always scan first
- Telnet is dangerous - it has no encryption, never use it on real systems
- Default passwords are a huge risk - always change them!
- YouTube + AI tools = perfect combo for learning
Final Words 💬
This is Blog #4 in my Ethical Hacking series. Follow along for more beginner friendly hacking tutorials!
Comments
Post a Comment