Experiment 1: Install Kali Linux in VirtualBox and demonstrate 10 basic Linux commands 1. Aim: To install Kali Linux in VirtualBox and execute 10 basic Linux commands. 2. Theory: • Kali Linux is a Linux operating system used for ethical hacking and penetration testing. • VirtualBox is software used to run another operating system inside our computer. • Linux commands are used to perform different operations like creating files, folders and viewing information. • Kali Linux provides many security tools. 3. Tools and Software Required: • Oracle VirtualBox • Kali Linux ISO file • Computer or laptop 4. Procedure: 1. Download and install VirtualBox. 2. Download the Kali Linux ISO file. 3. Open VirtualBox and click on New. 4. Create a virtual machine and select Linux (64 - bit). 5. Allocate RAM and hard disk space. 6. Attach the Kali Linux ISO file. 7. Start the virtual machine. 8. Follow the installation instructions. 9. Login to Kali Linux. 10. Open the terminal and execute the following commands. Command Use ls Displays files and folders. pwd Shows the current directory. cd Changes the directory. mkdir Creates a new folder. touch Creates a new file. cat Displays file contents. rm Deletes a file. rm - r Deletes a folder. grep Searches for text in a file. clear Clears the terminal screen. 5. Observation: • Kali Linux was successfully installed. • All 10 Linux commands were executed. • The expected outputs were displayed. 6. Result: Kali Linux was successfully installed in VirtualBox and 10 basic Linux commands were executed. Experiment 2: Encryption and Decryption using Ccrypt 1. Aim: To perform encryption and decryption of text files using the Ccrypt tool. 2. Theory: • Ccrypt is a Linux command - line tool used for file encryption and decryption. • It uses the Blowfish encryption algorithm. • Encryption converts readable text into unreadable text. • Decryption converts encrypted text back into readable text. • The same password is used for encryption and decryption. This is called symmetric encryption. 3. Tools and Software Required: • Kali Linux • Terminal • Ccrypt tool • Text file 4. Procedure: 1. Open Kali Linux terminal. 2. Install Ccrypt using: sudo apt update sudo apt install ccrypt 3. Create a text file: echo "This is a secret message." > sample.txt 4. Encrypt the file: ccrypt sample.txt 5. Enter a password when prompted. 6. The encrypted file is saved as sample.txt.cpt. 7. Decrypt the file using: ccrypt - d sample.txt.cpt 8. Enter the same password. 9. The original text file is recovered. 5. Observation: • The original text was readable. • After encryption, the file became unreadable. • After decryption, the original message was recovered. 6. Result: Encryption and decryption of a text file were successfully performed using Ccrypt. Experiment 3: Perform a Ping Scan using Nmap 1. Aim: To perform a simple ping scan using Nmap on the IP address 93.184.216.34 (example.com) and check whether the host is up. 2. Theory: • Nmap stands for Network Mapper. • It is an open - source tool used for network scanning and security auditing. • It identifies active hosts, open ports and running services. • Ping scanning checks whether a target system is reachable. 3. Tools and Software Required: • Kali Linux • Nmap tool • Terminal • Internet connection 4. Procedure: 1. Open Kali Linux. 2. Open the terminal. 3. Install Nmap if it is not available: sudo apt install nmap 4. Perform a ping scan: nmap - sn 93.184.216.34 5. Check the output. 6. If the host is reachable, it displays Host is up. Other Nmap commands: Command Purpose nmap IP Basic network scan nmap - sn IP Ping scan nmap - O IP OS detection nmap - sV IP Service version detection nmap - sU IP UDP scan 5. Observation: • Nmap performed the ping scan. • The host was reported as up and responsive in the manual's example. • Network information was displayed. 6. Result: Nmap was successfully used to perform a ping scan and check the availability of the target host. Experiment 4: Perform a Basic Maltego Scan 1. Aim: To perform a basic Maltego scan on testsite.org and identify related domains and email IDs. 2. Theory: • Maltego is an OSINT (Open Source Intelligence) tool. • It is used to collect publicly available information. • It identifies relationships between domains, email IDs and IP addresses. • It displays the collected information in a graphical format. 3. Tools and Software Required: • Maltego Community Edition • Windows computer • Internet connection 4. Procedure: 1. Download Maltego from its official website. 2. Install and open Maltego. 3. Register or login. 4. Create a new workspace. 5. Give the workspace a name. 6. Add the domain testsite.org. 7. Select the domain entity. 8. Choose the required search transformations. 9. Start the scan. 10. View the related domains, email IDs and IP addresses. 11. Export the results if required. 5. Observation: • Maltego displayed related entities in a graphical format. • Related domains and email addresses were identified. • Connections between different entities were displayed. 6. Result: A basic OSINT scan was successfully performed using Maltego to identify related domains and email IDs. Experiment 5: Vulnerability Scanning using Nessus and DNS Lookup 1. Aim: To perform a vulnerability scan using Nessus and identify High, Medium and Low severity vulnerabilities. Also perform DNS zone and record lookups. 2. Theory: • Nessus is a vulnerability scanning tool. • It identifies security weaknesses in a computer or network. • It classifies vulnerabilities based on their severity. • DNS stands for Domain Name System. • DNS converts domain names into IP addresses and provides information about mail servers and name servers. Severity levels: Severity Meaning High Serious security risk Medium Moderate security risk Low Minor security risk 3. Tools and Software Required: • Kali Linux or Windows • Nessus Essentials • Internet connection • Terminal • DNS tools (dig / nslookup) 4. Procedure: Part A: Nessus Vulnerability Scan 1. Visit the Tenable Nessus Essentials website. 2. Register and obtain the activation code. 3. Download and install Nessus. 4. Open the browser and visit: https://localhost:8834 5. Complete the initial setup. 6. Enter the activation code. 7. Create a username and password. 8. Wait for the plugins to download and compile. 9. Click on New Scan. 10. Select Basic Network Scan. 11. Enter the authorized target IP address. 12. Save and launch the scan. 13. After completion, open the results. 14. Identify High, Medium and Low severity vulnerabilities. Part B: DNS Lookup 15. Open the terminal. 16. Perform DNS lookup using: nslookup example.com 17. Find DNS records using: dig example.com 18. Check mail server records: dig example.com MX 19. Check name server records: dig example.com NS 5. Observation: • Nessus identified security vulnerabilities. • Vulnerabilities were classified into different severity levels. • DNS lookup displayed domain and IP information. • MX and NS records provided mail server and name server information. 6. Result: A vulnerability scan was successfully performed using Nessus, and DNS records were successfully retrieved using DNS lookup commands. Experiment 6: Create a TCP Reverse Shell using Metasploit 1. Aim: To create a TCP reverse shell using the Metasploit Framework and perform basic actions on a target system in an isolated lab. 2. Theory: • Metasploit is a penetration testing framework. • A reverse shell is a connection in which the target system connects back to the attacker's system. • TCP is a communication protocol used to transfer data between computers. • A reverse shell allows an authorized tester to interact with the target system through a terminal. 3. Tools and Software Required: • Kali Linux • Metasploit Framework • VirtualBox • Authorized target virtual machine • Terminal 4. Procedure: 1. Open Kali Linux. 2. Open the terminal. 3. Start the Metasploit Framework. 4. Configure the reverse TCP handler. 5. Select the appropriate payload for the authorized lab target. 6. Configure the required network addresses and port. 7. Start the listener. 8. Connect the intentionally vulnerable test machine using the lab's prepared test payload. 9. Verify whether the connection is established. 10. Perform basic authorized test actions such as checking the system information. 5. Observation: • Metasploit was successfully opened. • The reverse TCP handler was configured. • The target connected back to the testing machine. • A command session was observed. 6. Result: A TCP reverse shell was successfully demonstrated using the Metasploit Framework in an isolated testing environment. Experiment 7: Perform a DoS Test using Slowloris 1. Aim: To understand and demonstrate a Denial of Service (DoS) test using the Slowloris tool in an authorized lab environment. 2. Theory: • DoS stands for Denial of Service. • It is an attack that makes a website or server unavailable to normal users. • DDoS stands for Distributed Denial of Service. • Slowloris is a tool that performs HTTP DoS by keeping multiple connections open. • It sends incomplete HTTP requests and consumes server resources. 3. Tools and Software Required: • Kali Linux • Slowloris tool • Python • Terminal • Isolated test web server 4. Procedure: 1. Open Kali Linux. 2. Open the terminal. 3. Create a working directory: mkdir slowloris 4. Move into the directory: cd slowloris 5. Obtain the Slowloris testing utility. 6. Configure an isolated test web server. 7. Verify that the test server is working normally. 8. Perform the controlled DoS demonstration only against the authorized local test server. 9. Observe the server connections and response time. 10. Stop the test and check whether the server returns to normal operation. 5. Observation: • Slowloris maintained multiple connections. • Server resources were consumed. • The response of the test server was affected. • Normal service was restored after stopping the test. 6. Result: The working principle of a DoS attack using Slowloris was successfully studied and demonstrated in a controlled lab environment. Experiment 8: Perform SQL Injection Testing using SQLMap 1. Aim: To perform SQL injection testing using the SQLMap tool on a local vulnerable web application. 2. Theory: • SQL stands for Structured Query Language. • SQL Injection is a web application vulnerability. • It occurs when user input is not properly validated before being used in database queries. • SQLMap is an open - source tool used to detect and test SQL injection vulnerabilities. • It helps identify database information and security weaknesses. 3. Tools and Software Required: • Kali Linux • SQLMap • Docker • DVWA (Damn Vulnerable Web Application) • Web browser • Terminal 4. Procedure: 1. Open Kali Linux. 2. Open the terminal. 3. Update the system: sudo apt update 4. Install Docker. 5. Start Docker. 6. Set up the DVWA application locally. 7. Open the DVWA application in the browser. 8. Login to DVWA using its configured credentials. 9. Select the SQL Injection page. 10. Set the security level to Low for the local lab. 11. Enter test input into the vulnerable input field. 12. Observe the application's response. 13. Use SQLMap in the authorized local environment to check for SQL injection vulnerabilities. 14. Record the test results. 5. Observation: • DVWA displayed the SQL Injection page. • The application accepted user input. • SQL injection testing identified the vulnerable input. • The results helped understand database security weaknesses. 6. Result: SQL injection testing was successfully performed using SQLMap on the local DVWA application. Experiment 9: Extract Metadata using FOCA / SearchDiggity 1. Aim: To extract metadata from publicly available documents using FOCA or SearchDiggity and expand the target information list. 2. Theory: • FOCA stands for Fingerprinting Organizations with Collected Archives. • It is an information - gathering tool. • Metadata is hidden information stored inside files. • Metadata may contain author names, usernames, software details and file paths. • SearchDiggity is used to find publicly indexed information using search engines. 3. Tools and Software Required: • Windows operating system • FOCA tool • SearchDiggity tool • Internet connection • PDF, Word and Excel files 4. Procedure: 1. Download and install FOCA on Windows. 2. Open the FOCA application. 3. Create a new project. 4. Enter the authorized target domain. 5. Select a location to save the results. 6. Open the Metadata option in the object explorer. 7. Search for publicly available documents such as PDF, DOC and XLS files. 8. Download the available documents. 9. Analyze the metadata of the downloaded files. 10. Identify information such as author names, usernames, software details and file paths. 11. Use SearchDiggity to find additional publicly indexed information. 12. Record the collected information. 5. Observation: • FOCA identified publicly available documents. • Metadata was extracted from the documents. • Author names and software information were identified. • Additional information was collected using SearchDiggity. 6. Result: Metadata extraction and information gathering were successfully performed using FOCA/SearchDiggity. Experiment 10: Automate Vulnerability Discovery and Match Exploits using Armitage 1. Aim: To automate vulnerability discovery and match suitable exploits using the Armitage tool. 2. Theory: • Armitage is a graphical user interface for the Metasploit Framework. • It is used for penetration testing and vulnerability assessment. • Nmap is used to identify open ports and running services. • Armitage helps identify possible exploits related to discovered services. • It provides a graphical representation of target systems and their vulnerabilities. 3. Tools and Software Required: • Kali Linux • Armitage • Metasploit Framework • Nmap • PostgreSQL • VirtualBox • Metasploitable2 virtual machine 4. Procedure: 1. Open VirtualBox. 2. Start Kali Linux and Metasploitable2 virtual machines. 3. Configure both machines on the same isolated Host - Only network. 4. Check the IP addresses of both machines. 5. Verify network connectivity. 6. Start the PostgreSQL service. 7. Initialize the Metasploit database if required. 8. Open Armitage. 9. Connect Armitage to the Metasploit Framework. 10. Perform an Nmap scan on the authorized target machine. 11. Identify open ports and running services. 12. View the discovered services. 13. Select Find Attacks to identify possible matching exploits. 14. Review the identified vulnerabilities and their corresponding exploits. 5. Observation: • The target machine was successfully discovered. • Nmap identified open ports and services. • Armitage displayed the target in graphical form. • Find Attacks identified possible matching exploits. • The vulnerability information was displayed. 6. Result: Automated vulnerability discovery and exploit matching were successfully demonstrated using Armitage in an isolated lab environment.