0% found this document useful (0 votes)
27 views4 pages

Cryptography Demo1

This document provides an introduction to cryptography with practical demonstrations on cracking passwords using John the Ripper. It includes step-by-step solutions for cracking a Linux password, a password-protected zip file, and an MD5 hash. The document outlines the necessary commands and expected outputs for each problem statement.

Uploaded by

rthara637
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)
27 views4 pages

Cryptography Demo1

This document provides an introduction to cryptography with practical demonstrations on cracking passwords using John the Ripper. It includes step-by-step solutions for cracking a Linux password, a password-protected zip file, and an MD5 hash. The document outlines the necessary commands and expected outputs for each problem statement.

Uploaded by

rthara637
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

CRYPTOGRAPHY

Module 1: Introduction to
Cryptography
Module 1 – Introduction to Cryptography

Demo 1 – Cracking passwords using John the Ripper


Problem Statement 1

Crack Linux Password using John the Ripper.

Solution

Command:

john /etc/shadow

The /etc/shadow file stored the actual passwords

Output:

Problem Statement 2

Crack password of a zip file using John the Ripper.

Solution

Step 1: Create a password protected zip file. You can skip this step if you already have a password protected
zip file

Command:

touch a.txt

zip -e a.zip a.txt

The -e option is used to add password to the zip file. Enter a password when prompted.

Output:

©Brain4ce Education Solutions Pvt. Ltd Page 1


Module 1 – Introduction to Cryptography

Step 2: Generate password hash from the zip file.

Command:

zip2john a.zip > pass.hashes

Output:

Step 2: Crack the password.

Command:

john pass.hashes

Output:

©Brain4ce Education Solutions Pvt. Ltd Page 2


Module 1 – Introduction to Cryptography

The password is 1234.

Problem Statement 3

Crack md5 hash stored in a text file.

Solution

Syntax:

john --format=raw-md5 <filename>

Command:

john --format=raw-md5 md5.txt

Output:

The password is computer.

© Brain4ce Education Solutions Pvt. Ltd.

©Brain4ce Education Solutions Pvt. Ltd Page 3

You might also like