Science, asked by rishiraj12349, 4 months ago

what type of algorithm is used in hacking with python?​

Answers

Answered by mkprasanna15
2

Answer:

Ethical Hacking with Python

As a Computer Science Engineer who encrypts the world, one should know how Hacking activities are done. And we must stand front in protecting our world from cybercriminals.

Being able to gain access to a system that you’re not supposed to have access to is known as Hacking. For example, login into an email account without authorization is considered hacking that account. Gaining access to a remote computer without authorization is hacking that computer. So you can see that there are a large number of ways to hack into a system and the word hacking can refer to a number of things but the main concept is the same. Gaining access or being able to do things that you’re not supposed to be able to do, is considered hacking.

Ethical hacking:

To crack passwords or to steal data? No, it is much more than that. Ethical hacking is to scan vulnerabilities and to find potential threats on a computer or networks. An ethical hacker finds the weak points or loopholes in a computer, web applications or network and reports them to the organization. So, let’s explore more about Ethical Hacking

import hashlib

print("**************PASSWORD CRACKER ******************")

# To check if the password

# found or not.

pass_found = 0

input_hash = input("Enter the hashed password:")

pass_doc = input("\nEnter passwords filename including path(root / home/):")

try:

# trying to open the password file.

pass_file = open(pass_doc, 'r')

except:

print("Error:")

print(pass_doc, "is not found.\nPlease give the path of file correctly.")

quit()

# comparing the input_hash with the hashes

# of the words in password file,

# and finding password.

for word in pass_file:

# encoding the word into utf-8 format

enc_word = word.encode('utf-8')

# Hasing a word into md5 hash

hash_word = hashlib.md5(enc_word.strip())

# digesting that hash into a hexa decimal value

digest = hash_word.hexdigest()

if digest == input_hash:

# comparing hashes

print("Password found.\nThe password is:", word)

pass_found = 1

break

# if password is not found.

if not pass_found:

print("Password is not found in the", pass_doc, "file")

print('\n')

print("***************** Thank

Answered by hegadeparinita
1

Answer:

i think this answer will be usefull to you

Explanation:

plz mark as brainleast

Attachments:
Similar questions