Skip to content

Commit

Permalink
Initial release
Browse files Browse the repository at this point in the history
  • Loading branch information
crypt0rr committed Aug 25, 2021
1 parent 18c4d2a commit c86436a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions decrypt0rr.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash
# Key is known and shared by Microsoft - https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-gppref/2c15cbf0-f086-4c74-8b70-1f2fa45dd4be?redirectedfrom=MSDN#endNote2
key='4e9906e8fcb66cc9faf49310620ffee8f496e806cc057990209b09a433b66c1b'
iv='00000000000000000000000000000000'

len=$(( ${#1} % 4 ))
if [[ "$len" -eq 2 ]]; then cpassword="$1=="
elif [[ "$len" -eq 3 ]]; then cpassword="$1="
else cpassword="$1";
fi

password=$(echo -e "$cpassword" | openssl enc -d -a -aes-256-cbc -K "$key" -iv "$iv" | tr -d '\0')
echo "Decrypted password:" "$password"

0 comments on commit c86436a

Please sign in to comment.