Linux

Python for Security | Linux Password Cracker



1. Use python to write our own tool to crack password like john the ripper.

Password : Your encrypted password is in hash format. The password should be minimum 15-20 characters long including special characters, digits, lower case alphabetic and more. Usually password format is set to $id$salt$hashed, The $id is the algorithm prefix used On GNU/Linux as follows

$1$ is MD5
$2a$ is Blowfish
$2y$ is Blowfish
$5$ is SHA-256
$6$ is SHA-512
$y$ is yescrypt

2. If you don’t want to see the following warnings:
DeprecationWarning: ‘crypt’ is deprecated and slated for removal in Python 3.13

you can use the following way to import crypt:

import warnings
with warnings.catch_warnings():
warnings.filterwarnings(“ignore”,category=DeprecationWarning)
import crypt

[ad_2]

source

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button