Docsity

Cybersecurity Lecture, Notes de Sciences sociales et politiques

Toggle sidebar
bg1
Lecture: Kali Linux Fundamentals - Your Command Centre for
Reconnaissance
Good morning, everyone. In our last session, we introduced the foundational concepts of
security assessment. Let's quickly recap those key definitions.
What is Foot printing?
• Information gathering is also known as foot printing. It is the process of gathering
all available information about the target.
• This target could be anything from a server, a web or mobile application, a network,
an entire organization, or even the human factors involved.
What is Reconnaissance?
• Reconnaissance is a military term which means actively seeking an enemy's
intentions by gathering information about their composition and capabilities via
direct surveillance.
Essentially, these two terms represent the first and most critical phase of any ethical
hacking or penetration testing engagement. You must first know your target.
We also discussed the two main types of foot printing: Active and Passive. Passive Foot
printing, for example, is about gathering information without directly interacting with the
target, which is useful when you don't want to be detected.
Now, the question is,
how
do we perform this information gathering? Our most powerful
tool for this is the Kali Linux terminal. Today, we're going to get hands-on and learn the
basic commands that are the absolute foundation for everything we will do later. Mastering
these is the key to becoming proficient.
1. The Terminal: Your Command Centre
Think of the graphical interface (the desktop and icons) as ordering from a menu. It's easy,
but your options are limited. The terminal, or Command Line Interface (CLI), is like walking
into the kitchen and speaking directly to the chef. You have complete control and can make
much more specific and powerful requests.
In Linux, everything is treated as a file, and the terminal is our primary way to navigate and
interact with the system.
2. Navigational Commands: Finding Your Way Around
Before you can gather information about a target, you must be able to navigate your own
system. These commands help you understand where you are and what's around you.
pwd (Print Working Directory)
This is your "you are here" map marker. It tells you the full path of the directory you are
currently in.
pf3
pf4

Aperçu partiel du texte

Télécharge Cybersecurity Lecture et plus Notes au format PDF de Sciences sociales et politiques sur Docsity uniquement!

Lecture: Kali Linux Fundamentals - Your Command Centre for

Reconnaissance

Good morning, everyone. In our last session, we introduced the foundational concepts of security assessment. Let's quickly recap those key definitions. What is Foot printing?

  • Information gathering is also known as foot printing. It is the process of gathering all available information about the target.
  • This target could be anything from a server, a web or mobile application, a network, an entire organization, or even the human factors involved. What is Reconnaissance?
  • Reconnaissance is a military term which means actively seeking an enemy's intentions by gathering information about their composition and capabilities via direct surveillance. Essentially, these two terms represent the first and most critical phase of any ethical hacking or penetration testing engagement. You must first know your target. We also discussed the two main types of foot printing: Active and Passive. Passive Foot printing, for example, is about gathering information without directly interacting with the target, which is useful when you don't want to be detected.

Now, the question is, how do we perform this information gathering? Our most powerful

tool for this is the Kali Linux terminal. Today, we're going to get hands-on and learn the basic commands that are the absolute foundation for everything we will do later. Mastering these is the key to becoming proficient.

1. The Terminal: Your Command Centre Think of the graphical interface (the desktop and icons) as ordering from a menu. It's easy, but your options are limited. The terminal , or Command Line Interface (CLI), is like walking into the kitchen and speaking directly to the chef. You have complete control and can make much more specific and powerful requests. In Linux, everything is treated as a file, and the terminal is our primary way to navigate and interact with the system. 2. Navigational Commands: Finding Your Way Around Before you can gather information about a target, you must be able to navigate your own system. These commands help you understand where you are and what's around you. pwd (Print Working Directory) This is your "you are here" map marker. It tells you the full path of the directory you are currently in.

  • Theory: The Linux file system is a hierarchy starting from the root directory (/). pwd shows your exact location within that structure.
  • Practical Example: Bash

Open a terminal and type:

pwd The output will likely be /home/yourusername or /root. This is your home directory. ls (List) This command lists the files and directories in your current location.

  • Theory: ls uses options, called flags , to modify its behavior. Flags are added after the command, usually with a hyphen.
  • Practical Examples: o ls: Shows visible files and folders. o ls - l: The - l flag provides a long listing , showing permissions, owner, size, and modification date. o ls - a: The - a flag shows all files, including hidden ones (which start with a dot, like .bash_history). o ls - la: You can combine flags to get a long listing of all files. cd (Change Directory) This is how you move between directories.
  • Theory: You provide cd with the path you want to go to. There are also shortcuts.
  • Practical Examples: o cd Documents: Moves into the Documents directory (Note: Linux is case- sensitive !). o cd ..: Moves up one directory level. o cd ~ or just cd: Instantly takes you back to your home directory. o cd /: Takes you to the absolute root directory of the system. 3. System Information Commands: Basic Recon on Yourself These commands help you gather information about the machine you are operating from. This is a crucial first step before looking at a target. whoami & id
  • whoami: Tells you the username you are currently logged in as.

Shows you a list of the previous commands you have typed. This is great for remembering a complex command you used earlier. Things to Remember & Keynotes

  1. The Terminal is Your Primary Tool: All powerful reconnaissance and hacking tools are run from the command line. Get comfortable here.
  2. Linux is Case-Sensitive: Desktop and desktop are two different directories.
  3. Master Navigation: You must be able to move around the file system effortlessly with pwd, ls, and cd.
  4. Know Your System: Practice using whoami, ifconfig, and uname - a to understand the machine you're on.
  5. When in Doubt, man it Out: The man command is your best friend for learning. Use it for every new command you encounter.
  6. Practice Makes Permanent: The only way to learn these commands is to use them. Open a terminal and try every command we discussed today. By mastering these fundamentals, you are building the foundation needed to perform the complex reconnaissance and footprinting tasks that are central to a security professional's work.