Cybersecurity Course - Week 4
Cybersecurity Course - Week 4
Search for
VMware
Workstation
Player
Click this to
download
VMware
Step 1: Search for VMware on google Step 2: Click the download link to start download or follow the instructions
Search for
VMware
Workstation
Player
Click this to
download
VMware
Step 1: Search for Oracle Virtualbox on google Step 2: Click the download link to start download or follow the instructions
Installing Virtual box
Click the
corresponding
OS version to Click Next to
start download proceed
Select OS version. We will select Windows but you can select Mac OS if you use a Mac Click Next
Click Next Click Next. Then click “Install” on the final screen
Operating Systems
Linux Operating System
Linux is an OS that is built on the UNIX platform and provides
more in-depth interaction with the core components of a
computer.
Traditional Linux systems run on bare command-based interface.
However, recent versions now have Graphical User Interface (GUI)
Operating Systems
Linux Operating System
• Linux OS comes in different versions eg Red Hat, Mint, Ubuntu,
SUSE, etc
• For this class, we will use the Ubuntu version built for
Penetration testing and Ethical hacking
• This version is known as Kali Linux Suite
Linux File System Structure
Operating Systems
The Linux Operating System
Kali Linux
• Kali Linux is a Linux distribution designed for digital forensics and
penetration testing. It is maintained and funded by Offensive
Security.
• It is a free operating system, available for free download
• Often deployed using Virtualization Software like VMware or
Virtualbox
The Linux Operating System
• Exploring the Kali Linux Interface
1. Powering up and Login of Kali Linux
2. The Menus - Categories
3. The Terminal – Use and Purpose, Tabs
4. Sudo Overview (Sudo for elevated access, switching to root)
5. File and Folder Management (Directory Commands, Copy,
Remove, Rename, Permissions, etc)
File and System Security
#whereis
• Where is it…
• Sometimes you may which to search for a specific file
• You can use the command #whereis [file]
Tip
• Important when you are trying to use TAB to complete names
• When you are using options -a is different to –A
File and System Security
• Reduce the amount of information
• Ls | more
• Find webscarab | more
Tip
• Important when you are trying to use TAB to complete names
• When you are using options -a is different to –A
Directories
• / = root directory, starting point where the File System begins
• /root = root users directory (superuser)
• Don’t confuse the root users directory with the root directory…
• /bin = holds essential command binary files for normal users – tar ls
/sbin = holds essential command binary files for superusers –
mount ipconfig etc
• /boot = holds data that is required to boot up
• /dev = devices which are available
Directories
• /etc = configuration files
• /etc/passwd = information for each user account (Return later)
• /proc = provides system statistics (runtime only)
• /home = user home directories
• /etc = configuration files – normally text files
• /lib = shared library directories and kernel modules
• /var = variable data – changes whilst system is running
• /var/mail = incoming and outgoing mail
Directories (cont’d)
• /usr = user appliations, source code and config files
• Has subdirectories such as /src /bin /sbin and /lib
Tree command
• A recursive directory listing program
• #tree
• #tree -L
Run Levels
• Linux has several run levels
• 0 Halt
• 1 Single User Mode
• 2-5 Multi User Mode
• 6 Reboot
• Default is 2
• Allows customisation
• Different run levels can have different services running
• Change run level with #init [number]
• Scripts which control the different levels
• /rc0.d/ - for Halt
• /rc1.d/ - for Single User
Directories (cont’d)
Restrict Access
• Remember – Everything is a file!
• How do we secure and place restrictions on our File System?
• We generally need two things:
#Chmod u+x – would add the execute permission for the user
#Chmod ug-rwx – would remove the read, write and execute
SetUserID and SetGroupID
The command:
◦ #chmod +s [file]