Skip to content

Commit c86436a

Browse files
committed
Initial release
1 parent 18c4d2a commit c86436a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

decrypt0rr.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
# 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
3+
key='4e9906e8fcb66cc9faf49310620ffee8f496e806cc057990209b09a433b66c1b'
4+
iv='00000000000000000000000000000000'
5+
6+
len=$(( ${#1} % 4 ))
7+
if [[ "$len" -eq 2 ]]; then cpassword="$1=="
8+
elif [[ "$len" -eq 3 ]]; then cpassword="$1="
9+
else cpassword="$1";
10+
fi
11+
12+
password=$(echo -e "$cpassword" | openssl enc -d -a -aes-256-cbc -K "$key" -iv "$iv" | tr -d '\0')
13+
echo "Decrypted password:" "$password"

0 commit comments

Comments
 (0)