CRACKING PASSWORDS WITH HASHCAT | Hashing vs. Encryption

Trying to solve Question 2: Create the XOR ciphertext of the password ‘opens3same’ using the key ‘academy’. (Answer format: \x00\x00\x00.…)

Step 1: python3
Step 2: from pwn import xor
Error1: Traceback (most recent call last):
File “”, line 1, in
ModuleNotFoundError: No module named ‘pwn’

Another Solution: Create Virtual Enviroment
Step 1: python3 -m venv myenv
Step 2: (Activate) source myenv/bin/activate
Step 3: (Upgrade pip) pip install --upgrade pip
Step 4: python3
Step 5: from pwn import xor
Error: Traceback (most recent call last):
File “”, line 1, in
ModuleNotFoundError: No module named ‘pwn’

https://docs.pwntools.com/en/stable/globals.html

Try “pip install pwntools” inside your virtual environment

It will work

“inside your virtual environment” otherwise you will need to pass “–break-system-packages” as stated in the error message.

Let me break in steps.

Step 1: pip install pwntools --break-system-packages
Step 2: python3
Step 3: from pwn import xor

OR

Step 1: python3 -m venv myenv
Step 2: (Activate) source myenv/bin/activate
Step 3: (Upgrade pip) pip install --upgrade pip
Step 4: pip install pwntools
Step 5: python3
Step 6: from pwn import xor

Thank you it works :grinning: :clap: :+1:

1 Like